Re: [PHP4BETA] Problems compiling php-4.0b3 with Informix

From: Date: Wed, 17 Nov 1999 09:46:56 +0000
Subject: Re: [PHP4BETA] Problems compiling php-4.0b3 with Informix
Groups: php.version4 
Request: Send a blank email to php-version4+get-6347@lists.php.net to get a copy of this message
Hello Again: I try the last recomendation: * First i configure apache with: ./configure --prefix=/usr/local/apache * Then php with: ./configure --with-informix --with-apache=../apache_1.3.9 --enable-track-vars --with-config-file-path=/etc make make install * And finally, apache with: EXTRA_LIBS="-L/opt/informix/lib -L/opt/informix/lib/esql -lifsql -lifasf -lifgen -lifos -lifgls -lm -ldl -lcrypt -lifglx" ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a and i obtain: Configuring for Apache, Version 1.3.9 + Hint: please use LIBS instead of EXTRA_LIBS next time + using installation path layout: Apache (config.layout) + activated php4 module (modules/php4/libphp4.a) Creating Makefile Creating Configuration.apaci in src Creating Makefile in src + configured for Linux platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules o php4_module uses ConfigStart/End + checking sizeof various data types + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. This is most likely because your C compiler ** is not ANSI. Apache requires an ANSI C Compiler, such ** as gcc. The above error message from your compiler ** will also provide a clue. Aborting! and i can't compile. Without the EXTRA_LIBS line the configuration was ok, but the compilation not. AGGGHHHH!!!!!!! I'm going crazy. My system is a RedHat 6.1, with egcs-1.1.2-24 Some idea? Thanks again. > 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.

« previous php.version4 (#6347) next »