Hi,

Your problem is likely that the distribution you are using has a new compiler that is more strict than any LTIB was tested against.

I am not actively developing LTIB anymore and I'm only keeping the infrastructure ticking over in case people who have been using it still need it.

If you want to use LTIB, I'd recommend using a Linux host distribution that is a little older.

Regards, Stuart

On 01/06/16 22:09, Rfewt Hjklhjlk wrote:
Hi again,

in menu.c file 'next_id' is defined maybe it should be better to add a 'static inline' instead of 'inline'. I can patch it but I don't know how to apply it. Looking at ltib perl executable I don't really know how to make it.

Help appreciated.

Cheers,


On Wed, Jun 1, 2016 at 8:05 PM, rfewt hjklhjlk <[email protected] <mailto:[email protected]>> wrote:

    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 while
    compiling. Please see below :

    ---

    gcc -O0 -Wall -g -fPIC -c conf.c -o conf.o
    conf.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.y
    flex -L -Pzconf zconf.l
    gcc -O0 -Wall -g -fPIC -c zconf.tab.c -o zconf.tab.o
    In 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 conf
    zconf.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 status
    make: *** [conf] Error 1
    error: 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 seconds

    Failed building lkc
    Died at ./ltib line 1492.
    traceback:
     main::build_host_rpms:1492
      main::host_checks:1554
       main:562


    Started: Wed Jun  1 20:01:51 2016
    Ended:   Wed Jun  1 20:01:52 2016
    Elapsed: 1 seconds

    VERSION          : 13.2.1
    CVS_VERSION      : $Revision: 1.93 $ (Savannah)
    PLATFORM         : host
    GNUTARCH         : x86_64
    TOOLCHAIN        :
    TOOLCHAIN_CFLAGS :

    These packages failed to build:
    lkc

    Build Failed

    ---

    Cheers

    On Wed, Jun 1, 2016 at 12:11 PM, Stuart Hughes <[email protected]
    <mailto:[email protected]>> 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 :

        > $ ./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] <mailto:[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

Reply via email to