|
From: | Rfewt Hjklhjlk |
Subject: | Re: [Ltib] Incompatibility Perl-5.22 and LTIB ? |
Date: | Wed, 1 Jun 2016 23:09:56 +0200 |
Hi Stuart,Well, thanks to you I noticed I was not using the latest version so I downloaded "netinstall.txt" and I did a new install again.Running ./ltib I got the same brace error so I change the regex like you say and it works fine. But now I have an error whilecompiling. Please see below :---gcc -O0 -Wall -g -fPIC -c conf.c -o conf.oconf.c: In function 'conf_string':conf.c:163:20: warning: variable 'help' set but not used [-Wunused-but-set-variable]const char *def, *help;^conf.c: In function 'conf_sym':conf.c:197:6: warning: variable 'type' set but not used [-Wunused-but-set-variable]int type;^conf.c: In function 'conf_choice':conf.c:272:6: warning: variable 'type' set but not used [-Wunused-but-set-variable]int type;^bison -l -b zconf -p zconf zconf.yflex -L -Pzconf zconf.lgcc -O0 -Wall -g -fPIC -c zconf.tab.c -o zconf.tab.oIn file included from zconf.tab.c:2498:0:lex.zconf.c:3075:16: warning: 'input' defined but not used [-Wunused-function]static int input (void)^gcc conf.o zconf.tab.o -o confzconf.tab.o: In function `menu_re_search':/opt/ltib/usr/src/rpm/BUILD/lkc-1.4/menu.c:416: undefined reference to `next_id'/opt/ltib/usr/src/rpm/BUILD/lkc-1.4/menu.c:427: undefined reference to `next_id'collect2: error: ld returned 1 exit statusmake: *** [conf] Error 1error: Bad exit status from /tmp/ltib/tmp/rpm-tmp.29786 (%build)RPM build errors:Bad exit status from /tmp/ltib/tmp/rpm-tmp.29786 (%build)Build time for lkc: 1 secondsFailed building lkcDied at ./ltib line 1492.traceback:main::build_host_rpms:1492main::host_checks:1554main:562Started: Wed Jun 1 20:01:51 2016Ended: Wed Jun 1 20:01:52 2016Elapsed: 1 secondsVERSION : 13.2.1CVS_VERSION : $Revision: 1.93 $ (Savannah)PLATFORM : hostGNUTARCH : x86_64TOOLCHAIN :TOOLCHAIN_CFLAGS :These packages failed to build:lkcBuild Failed---CheersOn Wed, Jun 1, 2016 at 12:11 PM, Stuart Hughes <address@hidden> wrote:Hi,
Look like you're trying to build on a new platform not supported by LTIB (a perl version that is newer than tested, I don't have that version to try).
What version of LTIB do you have, where did you get it ? (grep for app_version in the file ltib)
Can you cut and paste around line 237 in bin/Ltibutils.pm. I have this (starting at 237):
sub interp_vars
{
my ($defs, $hr, @list) = @_;
local ($_, $1);
foreach (@list) {
while( $hr->{$_} =~ m,(%{?([^}]+)}?),g ) {
my $rep = '';
Looking at it, you could try changing the regex to (e.g. put a \ before the open brace):
while( $hr->{$_} =~ m,(%\{?([^}]+)}?),g ) {
Regards, Stuart
On 31/05/16 19:08, rfewt hjklhjlk wrote:
Hi,
I installed LTIB and when I execute ltib binary I got these error messages :
> $ ./ltibUnescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(%{ <-- HERE ?([^}]+)}?)/ at /home/alfadnf/L3/ltib/bin/Ltibutils.pm line 237.Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /home/alfadnf/L3/ltib/bin/Ltibutils.pm line 362.Compilation failed in require at ./ltib line 39.BEGIN failed--compilation aborted at ./ltib line 39.
I'm using Perl-5.22 please see the details below :
> $ perl -VSummary of my perl5 (revision 5 version 22 subversion 0) configuration:Platform:osname=linux, osvers=4.5.0-zeta, archname=x86_64-linux-thread-multiuname='linux 4.5.0-zeta #9 smp tue may 24 15:54:32 cest 2016 x86_64 intel(r) core(tm) i3 cpu 540 @ 3.07ghz genuineintel gnulinux 'config_args='-de -Dprefix=/usr -Dcccdlflags=-fPIC -Wl,--enable-new-dtags -Dlddlflags=-shared -O2 -march=native -mtune=native -pipe -fPIC -Dinstallprefix=/usr -Dvendorprefix=/usr -Dprivlib=/usr/share/perl5 -Darchlib=/usr/lib64/perl5 -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib64/perl5/vendor_perl -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib64/perl5 -Dscriptdir=/usr/bin -Dlibpth=/usr/local/lib64 /usr/lib64 /lib64 -Doptimize=-O2 -march=native -mtune=native -pipe -fPIC -Duseshrplib -Ubincompat5005 -Uversiononly -Duseperlio -Dusethreads -Duseithreads -Dpager=/usr/bin/less -isr -Darchname=x86_64-linux-thread-multi -Dman1dir=/usr/man/man1 -Dman3dir=/usr/man/man3 -Dcf_by=Slackware -Darchname=x86_64-linux'hint=recommended, useposix=true, d_sigaction=defineuseithreads=define, usemultiplicity=defineuse64bitint=define, use64bitall=define, uselongdouble=undefusemymalloc=n, bincompat5005=undefCompiler:cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',optimize='-O2 -march=native -mtune=native -pipe -fPIC',cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'ccversion='', gccversion='5.3.0', gccosandvers=''intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8alignbytes=8, prototype=defineLinker and Libraries:ld='cc', ldflags =' -fstack-protector-strong -L/usr/local/lib'libpth=/usr/local/lib64 /usr/lib64 /lib64 /usr/local/lib /usr/lib64/gcc/x86_64-slackware-linux/5.3.0/include-fixed /usr/lib /lib/../lib64 /usr/lib/../lib64 /liblibs=-lpthread -lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lcperllibs=-lpthread -lresolv -lnsl -ldl -lm -lcrypt -lutil -lclibc=libc-2.23.so, so=so, useshrplib=true, libperl=libperl.sognulibc_version='2.23'Dynamic Linking:dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'cccdlflags='-fPIC -Wl,--enable-new-dtags', lddlflags='-shared -O2 -march=native -mtune=native -pipe -fPIC -L/usr/local/lib -fstack-protector-strong'
Characteristics of this binary (from libperl):Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERSPERL_DONT_CREATE_GVSVPERL_HASH_FUNC_ONE_AT_A_TIME_HARDPERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAPPERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUVUSE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADSUSE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATEUSE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIMEUSE_PERLIO USE_PERL_ATOF USE_REENTRANT_APIBuilt under linuxCompiled at May 28 2016 19:34:25@INC:/usr/local/lib64/perl5/usr/local/share/perl5/usr/lib64/perl5/vendor_perl/usr/share/perl5/vendor_perl/usr/lib64/perl5/usr/share/perl5
Do you know how to fix this ?
Cheers,
_______________________________________________ LTIB home page: http://ltib.org Ltib mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/ltib
[Prev in Thread] | Current Thread | [Next in Thread] |