Re: [PHP4BETA] Problems compiling php-4.0b3 with Informix
| From: | (Danny Heijl) | Date: | Wed, 17 Nov 1999 08:35:50 +0000 |
| Subject: | Re: [PHP4BETA] Problems compiling php-4.0b3 with Informix | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6344@lists.php.net to get a copy of this message | ||
The Informix libraries are not listed in your gcc line, so something is not
right.
Try to rerun the whole process :
./configure Apache without options except --prefix=....
./configure php4 with Apache
EXTRA_LIBS="-L/opt/informix/lib -L/opt/informix/lib/esql -lifsql -lifasf -li
fgen -lifos -lifgls -lm -ldl -lcrypt -lifglx" ./configure apache with
modphp4
That works fine for me.
I don't like to change configuration files.
Danny.
--
> I try to put the following line:
>
> -L/opt/informix/lib/esql -L/opt/informix/lib -L/opt/informix
>
> In the apache_1.3.9/src/Configuration and Configuration.tmpl,
>previous to the apache configuration phase, after that phase this libs
>are in the following files:
>
> apache_1.3.9/src/Makefile:EXTRA_LIBS=-L/opt/informix/lib/esql
>-L/opt/informix/lib -L/opt/informix
----- Original Message -----
From: Luis Gallego <lgallego@uvigo.es>
Newsgroups: php4.beta
Sent: woensdag 17 november 1999 9:22
Subject: Re: [PHP4BETA] Problems compiling php-4.0b3 with Informix
> Hello again:
>
> I try to put the following line:
>
> -L/opt/informix/lib/esql -L/opt/informix/lib -L/opt/informix
>
> In the apache_1.3.9/src/Configuration and Configuration.tmpl,
> previous to the apache configuration phase, after that phase this libs
> are in the following files:
>
> apache_1.3.9/src/Makefile:EXTRA_LIBS=-L/opt/informix/lib/esql
> -L/opt/informix/lib -L/opt/informix
>
> apache_1.3.9/src/Makefile.config:EXTRA_LIBS=-L/opt/informix/lib/esql
> -L/opt/informix/lib -L/opt/informix
>
> apache_1.3.9/src/Configuration.apaci:EXTRA_LIBS=-L/opt/informix/lib/esql
> -L/opt/informix/lib -L/opt/informix
>
> But when i make it, i obtain the same error messages than before.
>
> Please i need urgent help.
>
> Bye and thanks
> >
> >You can safely ignore the libtool warning.
> >
> >Have you added the Informix libraries to the Apache EXTRA_LIBS ?
> >
> >Danny
> >---
> >
> >----- Original Message -----
> >From: Luis Gallego <lgallego@uvigo.es>
> >Newsgroups: php4.beta
> >Sent: Tuesday, November 16, 1999 7:22 PM
> >Subject: [PHP4BETA] Problems compiling php-4.0b3 with Informix
> >
> > >Dear Friends:
> > >
> > > I'd download the php-4.0b3 from
> > >http://www.php.net/version4/downloads/php-4.0b3.tar.gz
> > >and when i try
> to
> > >compile it with Informix
> > >and with apache 1.3.9 i obtain a lot of errors, this is the process:
> > >
> > > First i configure php with the command line:
> > >
> > > ./configure --with-informix --with-apache=../apache_1.3.9
> > >--enable-track-vars --with-config-file-path=/etc --with-gd
> > >
> > > All go's well until it reaches the ext/informix directory, at
> that
> > >point i obtain:
> > >
> > > /bin/sh ../../libtool --silent --mode=link gcc -g -O2 -g
> > >-I/opt/informix/incl/esql -O2 -L/opt/informix/lib
> > >-L/opt/informix/lib/esql -o
> > > libphpext_informix.la ifx.lo -L/opt/informix/lib
> > >-L/opt/informix/lib/esql -lifsql -lifasf -lifgen -lifos -lifgls -ldl
>
> > >-lcrypt -Lext/informix -lifx -lifglx
> > > ../../libtool: ext/informix: No such file or directory
> > > libtool: link: warning: cannot determine absolute directory name
> of
> > >`ext/informix'
> > > libtool: link: passing it literally to the linker, although it
> might
> > >fail
> > >
> > > But it compiles. Then i go to the apache directory, and configure
> it
> > >with the command line:
> > >
> > > ./configure --prefix=/usr/local/apache
> > >--activate-module=src/modules/php4/libphp4.a
> > >
> > > and finally, when i make it, the errors are:
> > >
> > > gcc -DLINUX=2 -I/home/temp/web/php-4.0b3
> > >-I/home/temp/web/php-4.0b3/libzend -I/home/temp/web/php-4.0b3/libzend
>
> > > -I/home/temp/web/php-4.0b3 -DUSE_HSREGEX -DUSE_EXPAT
> > >-I./lib/expat-lite
./apaci \
> > > -o httpd buildmark.o modules.o modules/standard/libstandard.a
>
> > >modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a
> > > regex/libregex.a lib/expat-lite/libexpat.a -Lmodules/php4
> > >-L../modules/php4 -L../../modules/php4 -lmodphp4 -ldl -lm -lresolv
> > >-lnsl
> > > -lcrypt -lgdbm -lgd -lttf -lpam -lm -lcrypt
> > > modules/php4/libphp4.a(ifx.o): In function `ifx_check':
> > > /home/temp/web/php-4.0b3/ext/informix/ifx.ec:212: undefined
> > >reference to `SQLSTATE'
> > > /home/temp/web/php-4.0b3/ext/informix/ifx.ec:213: undefined
> > >reference to `SQLSTATE'
> > > modules/php4/libphp4.a(ifx.o): In function `ifx_error':
> > > .....
> > > a lot of undefined informix references
> > > ...
> > >
> > > However i can compile without problems with php 4.0b2.
> > >
> > > Somebody knows what happens?
> > >
> > > Thanks.
> > >
> > >
>
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>