Re: PHP 4.0 Bug #2452: Build --with-informix no longer works since introduction of libtool
| From: | Danny Heijl | Date: | Wed, 06 Oct 1999 20:54:04 +0000 |
| Subject: | Re: PHP 4.0 Bug #2452: Build --with-informix no longer works since introduction of libtool | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-11583@lists.php.net to get a copy of this message | ||
Sorry, but no.
The patches to ltmain.sh and ltconfig fail because the red hat rpms put those
files in /usr/share.
I applied the patches manually after buildconf (to the symlinked files) with the
following result :
...snip...
make[2]: Entering directory `/home/web/php/php4'
/bin/sh ./libtool --mode=link gcc -O2 -mpentium -g -g -Wall
-I/opt/informix/incl/esql -L/home/local/lib -L/opt/informix/lib
-L/opt/informix/lib/esql -o php -export-dynamic stub.o libphp4.la
gcc -O2 -mpentium -g -g -Wall -I/opt/informix/incl/esql -L/home/local/lib
-L/opt/informix/lib -L/opt/informix/lib/esql -o php stub.o .libs/libphp4.a -ldl
-ldl -lm -lresolv -lnsl -lcrypt -lgdbm -lgdbm -lgd -lttf -lgen -lgls -lm -ldl
-lpam -lexpat -lz -Wl,--export-dynamic -Wl,--rpath -Wl,/home/local/lib
-Wl,--rpath -Wl,/home/local/lib
.libs/libphp4.a(ifx.o): In function `ifx_check':
/home/web/php/php4/ext/informix/ifx.ec:216: undefined reference to `SQLSTATE'
/home/web/php/php4/ext/informix/ifx.ec:217: undefined reference to `SQLSTATE'
.libs/libphp4.a(ifx.o): In function `ifx_error':
/home/web/php/php4/ext/informix/ifx.ec:248: undefined reference to `SQLCODE'
/home/web/php/php4/ext/informix/ifx.ec:270: undefined reference to `SQLSTATE'
/home/web/php/php4/ext/informix/ifx.ec:270: undefined reference to `SQLSTATE'
/home/web/php/php4/ext/informix/ifx.ec:270: undefined reference to `SQLSTATE'
/home/web/php/php4/ext/informix/ifx.ec:270: undefined reference to `SQLSTATE'
/home/web/php/php4/ext/informix/ifx.ec:270: undefined reference to `SQLSTATE'
.libs/libphp4.a(ifx.o): In function `_close_ifx_link':
/home/web/php/php4/ext/informix/ifx.ec:291: undefined reference to
`sqli_connect_set'
...etc...
As you can see the .a and .o Informix libraries/object are gone from the gcc
line that links php.
Danny
---
Sascha Schumann wrote:
>
> On Wed, Oct 06, 1999 at 02:29:51PM -0000, Danny.Heijl@cevi.be wrote:
> > From: Danny.Heijl@cevi.be
> > Operating system: RH 6.0 Linux
> > PHP version: 4.0 Latest CVS (06/10/1999)
> > PHP Bug Type: Compile Failure
> > Bug description: Build --with-informix no longer works since introduction of libtool
> >
> > Since the introduction of the use of "libtool" for
> > the compile/link process, I can no longer build CGI PHP4 with Informix because Informix
> > needs additional .a and .o filesto link PHP4.
> >
>
> Does it work now?
>
> *.a and *.o are recognized as regular libtool objects.
>
> --
>
> Regards,
>
> Sascha Schumann
> Consultant