If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Problem library on build rpm with spec file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-05-03, 04:59
eliote eliote is offline
Registered User
 
Join Date: Sep 2003
Location: France
Posts: 2
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 !
Reply With Quote
  #2 (permalink)  
Old 12-29-03, 11:48
eliote eliote is offline
Registered User
 
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On