Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003
    Location
    France
    Posts
    2

    Unanswered: Problem library on build rpm with spec file

    I used :
    RH 8.0
    Apache 2.0.40
    php 4.2.2
    clientsdk-281-UC1-LINUX

    I have add in spec file --with-informix=$INFORMIXDIR

    #rpmbuild -bb --target i486 php*.spec


    /bin/sh /usr/src/redhat/BUILD/php-4.2.2/build-cgi/libtool --silent --mode=link gcc -I. -I/usr/src/redhat/BUILD/php-4.2.2/ -I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/main -I/usr/src/redhat/BUILD/php-4.2.2 -I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/Zend -I/usr/include/libxml2 -I/usr/include/freetype2/freetype -I/usr/include/imap -I/opt/informix/incl/esql -I/usr/include/mysql -I/usr/local/include -I/usr/include/pspell -I/usr/include/ucd-snmp -I/usr/src/redhat/BUILD/php-4.2.2/main -I/usr/src/redhat/BUILD/php-4.2.2/Zend -I/usr/src/redhat/BUILD/php-4.2.2/TSRM -DUCD_COMPATIBLE -I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/TSRM -O2 -march=i486 -fPIC -L/usr/kerberos/lib -o php -export-dynamic stub.lo libphp4.la
    make[1]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi'


    RPM build errors:

    /usr/bin/ld: cannot find -lifsql
    collect2: ld returned 1 exit status
    make[1]: *** [php] Error 1
    make: *** [all-recursive] Error 1
    error: Bad exit status from /var/tmp/rpm-tmp.38755 (%build)
    Bad exit status from /var/tmp/rpm-tmp.38755 (%build)


    Please help me !

    thank you for advance !

  2. #2
    Join Date
    Sep 2003
    Location
    France
    Posts
    2

    cannot find -lifsql

    I'M FIND !


    GV#cd /usr/src/redhat/SPECS
    GV#ls
    php-4.2.2-8.0.5.spec
    GV#vi php*
    add
    LDFLAGS="-L/usr/kerberos/lib -L/opt/informix/lib/esql -L/opt/informix/lib
    -L/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext/informix"; export LDFLAGS

    --with-informix=yes \

    GV#rpmbuild -bb php*spec

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •