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 :
> $ ./ltib
Unescaped 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 -V
Summary of my perl5 (revision 5 version 22 subversion 0) configuration:
Platform:
osname=linux, osvers=4.5.0-zeta, archname=x86_64-linux-thread-multi
uname='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=define
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
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=3
d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=16, longdblkind=3
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker 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 /lib
libs=-lpthread -lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -lresolv -lnsl -ldl -lm -lcrypt -lutil -lc
libc=libc-2.23.so <http://libc-2.23.so>, so=so, useshrplib=true,
libperl=libperl.so
gnulibc_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_LAYERS
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS
USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
USE_LOCALE_CTYPE USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
Built under linux
Compiled 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
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib