php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15177 Informix Shared Module will not compile
Submitted: 2002-01-23 00:45 UTC Modified: 2002-09-19 05:03 UTC
Votes:5
Avg. Score:4.6 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: zhamm at nc dot rr dot com Assigned:
Status: Closed Package: Informix related
PHP Version: 4.1.1 OS: RH Linux 7.2
Private report: No CVE-ID: None
 [2002-01-23 00:45 UTC] zhamm at nc dot rr dot com
Same problem as with 4.1.0.  Informix will compile statically in PHP, but will not compile as a shared module.  I get the same error as in 4.1.0:

/bin/sh /php/php-4.1.1/libtool --silent --mode=compile gcc -I. -I/php/php-4.1.1/ext/informix -I/php/php-4.1.1/main -I/php/php-4.1.1 -I/usr/include/apache -I/php/php-4.1.1/Zend -I/opt/informix/incl/esql -I/php/php-4.1.1/ext/xml/expat  -DLINUX=22 -DEAPI -DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/php/php-4.1.1/TSRM -g -O2 -prefer-pic  -c ifx.c && touch ifx.slo
/bin/sh /php/php-4.1.1/libtool --silent --mode=link gcc  -I. -I/php/php-4.1.1/ext/informix -I/php/php-4.1.1/main -I/php/php-4.1.1 -I/usr/include/apache -I/php/php-4.1.1/Zend -I/opt/informix/incl/esql -I/php/php-4.1.1/ext/xml/expat  -DLINUX=22 -DEAPI -DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/php/php-4.1.1/TSRM -g -O2 -prefer-pic   -o informix.la -avoid-version -module -rpath /php/php-4.1.1/modules  ifx.lo  -Rext/informix -Lext/informix -R/opt/informix/lib/esql -L/opt/informix/lib/esql -R/opt/informix/lib -L/opt/informix/lib -lifsql -lifasf -lifgen -lifos -lifgls -ldl -lcrypt -lphpifx -lifglx
libtool: link: only absolute run-paths are allowed
make[3]: *** [informix.la] Error 1
make[3]: Leaving directory `/php/php-4.1.1/ext/informix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/php/php-4.1.1/ext/informix'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/php/php-4.1.1/ext'
make: *** [all-recursive] Error 1

Configure was input as
[root@elliott php-4.1.1]# ./configure --with-apxs=/usr/sbin/apxs --without-mysql --enable-shared --with-informix=shared                                                                                                            


Any ideas?


Zack


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-03 05:30 UTC] lauri dot tischler at efore dot fi
The last version where compile with-informix worked was
php4-4.0.4pl1
None after that work, I've tryed them all, including snapshots
 [2002-03-03 05:34 UTC] derick@php.net
Marking as Critical for release 4.2.0
 [2002-03-07 12:12 UTC] truth at ichaos dot com
This might possibly be related to bug number 15803 as this is the last time (php-4.0.4pl1) I was able to compile Informix with IBM DB2 support at the same time as well...
 [2002-04-02 20:36 UTC] zhamm at nc dot rr dot com
This is still broken for php-4.2.0RC1:

libtool: link: only absolute run-paths are allowed
make[3]: *** [informix.la] Error 1

Ran configure with:
 
# ./configure --with-apxs=/usr/sbin/apxs --enable-shared --with-informix=shared --without-mysql --without-xml

Does anyone know how to fix this in libtool?
 [2002-05-07 22:50 UTC] zhamm at nc dot rr dot com
Still busted in 4.2!  I thought this was marked critical for 4.2?  Same exact error for me (same platform):

/bin/sh /home/zhamm/php-4.2.0/libtool --silent --mode=compile gcc -I. -I/home/zhamm/php-4.2.0/ext/informix -I/home/zhamm/php-4.2.0/main -I/home/zhamm/php-4.2.0 -I/home/zhamm/php-4.2.0/Zend -I/opt/informix/incl/esql  -I/home/zhamm/php-4.2.0/TSRM -g -O2 -prefer-pic  -c ifx.c && touch ifx.slo
/bin/sh /home/zhamm/php-4.2.0/libtool --silent --mode=link gcc -I. -I/home/zhamm/php-4.2.0/ext/informix -I/home/zhamm/php-4.2.0/main -I/home/zhamm/php-4.2.0 -I/home/zhamm/php-4.2.0/Zend -I/opt/informix/incl/esql  -I/home/zhamm/php-4.2.0/TSRM -g -O2   -o informix.la -avoid-version -module -rpath /home/zhamm/php-4.2.0/modules  ifx.lo  -Rext/informix -Lext/informix -R/opt/informix/lib/esql -L/opt/informix/lib/esql -R/opt/informix/lib -L/opt/informix/lib -lifsql -lifasf -lifgen -lifos -lifgls -ldl -lcrypt -lphpifx -lifglx
libtool: link: only absolute run-paths are allowed
make[3]: *** [informix.la] Error 1
make[3]: Leaving directory `/home/zhamm/php-4.2.0/ext/informix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/zhamm/php-4.2.0/ext/informix'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/zhamm/php-4.2.0/ext'
make: *** [all-recursive] Error 1
 [2002-05-16 11:24 UTC] mike at secmgmt dot com
OK, I made it compile, but I don't know how to change the 
things that generate the makefiles and such. 
 
I just did the configure, compiled it until it gave an 
error, and then modified the line and manually ran it 
until it worked.  There were 2 problems.  2 libs were 
specified with relative paths, I was in /home/mike/php..., 
and on the line, they were /etc/..., so I changed them to 
/home/mike/etc...  See the /home/mike in the line below.  
I haven't tested weather it actually works, but it 
finished compiling properly after that. 
 
 /bin/sh /home/mike/php-4.2.1/libtool --silent --mode=link 
gcc -I. -I/home/mike/php-4.2.1/ext/informix 
-I/home/mike/php-4.2.1/main -I/home/mike/php-4.2.1 
-I/home/mike/php-4.2.1/Zend -I/opt/informix/incl/esql 
-I/home/mike/php-4.2.1/ext/mysql/libmysql 
-I/home/mike/php-4.2.1/ext/xml/expat  
-I/home/mike/php-4.2.1/TSRM -g -O2   -o informix.la 
-avoid-version -module -rpath /home/mike/php-4.2.1/modules  
ifx.lo  -R/home/mike/php-4.2.1/ext/informix 
-L/home/mike/php-4.2.1/ext/informix 
-R/opt/informix/lib/esql -L/opt/informix/lib/esql 
-R/opt/informix/lib -L/opt/informix/lib -lifsql -lifasf 
-lifgen -lifos -lifgls -ldl -lcrypt -lifglx
 [2002-06-03 09:35 UTC] mfischer@php.net
Please test with CVS HEAD and see if shared compilation works.
 [2002-07-04 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-09-18 21:12 UTC] zhamm at nc dot rr dot com
Yes, it worked.  It is still busted in 4.2.3 though.  Please add this fix to the next release.
 [2002-09-19 05:03 UTC] sniper@php.net
This fix will be in PHP 4.3.0 release. (NOT in any 4.2.x releases IF there will be any more of those)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 12:01:31 2024 UTC