> On Wed, 24 Jan 2001, Paul Gardiner wrote:
>
> > It's the second definition of IFX_LIBS further down the script where all
the
> > above need to be specifically specified, including paths if you have
more
> > than one version of Informix. This is required for when building Apache.
The
> > first IFX_LIBS above should be ok. I found by setting this the configure
> > file didn't try to determine them itself which was causing problems.
>
> OK, adapted the script (and the previous output was in fact a
> /home/informix/bin/esql -libs output, not a correct one.
> I had to search for all the lib files mentionned in this output
> (one is in /home/informix2000/lib/ instead of /home/informix2000/lib/esql/
> but found them all, converted -l entries to absolute paths.
>
> > I would suggest trying to compile without postgres support for the time
> > being and add it on later when you know Informix is successful. It looks
> > like thats whats causing the trouble now.
>
> OK left out pgsql. Make'ing php now succeeds (but wihtout pgsql support
..)
At least we're getting somewhere now though. Will have to come back to the
pqsql support later.
> Continued for configuring apache. OK
> Continued for make'ing apache ..
>
> This ends with:
>
>
gcc -DSOLARIS2=260 -I/home/wins/cosslocal/src/other/php-4.0.4pl1 -I/home/wi
ns/cosslocal/src/other/php-4.0.4pl1/main -I/home/wins/cosslocal/src/other/ph
p-4.0.4pl1/main -I/home/wins/cosslocal/src/other/php-4.0.4pl1/Zend -I/home/w
ins/cosslocal/src/other/php-4.0.4pl1/Zend -I/home/wins/cosslocal/src/other/p
hp-4.0.4pl1/TSRM -I/home/wins/cosslocal/src/other/php-4.0.4pl1/TSRM -I/home/
wins/cosslocal/src/other/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL
_NEEDED `./apaci` \
> -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/php4/libphp4.a modules/jserv/libjserv.a main/libmain.a
./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a
/home/informix2000/lib/esql/libifsql.a /home/informix2000/lib/libifasf.a
/home/informix2000/lib/esql/libifgen.a
/home/informix2000/lib/esql/libifos.a
/home/informix2000/lib/esql/libifgls.a -lnsl -lsocket -laio -lm -ldl -
lelf /home/informix2000/lib/esql/checkapi.o
/home/informix2000/lib/esql/libifglx.a -Lmodules/jserv -L../modules/jserv -L
../../modules/jserv -ljserv -R/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-su
n-solaris2.6/2.95.1 -L/usr/ucblib -L/usr/local/lib/gcc-lib/sparc-sun-solari
s2.6/2.95.1 -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4
-lpam -ldl -lresolv -lresolv -lm -ldl -lcrypt -lsocket -lsocket -lgcc -
lsocket -lnsl
> /home/informix2000/lib/esql/libifos.a(osenv.o): In function `ggetenv2':
> osenv.o(.text+0x5ec): undefined reference to `is8bitstr'
> /home/informix2000/lib/esql/libifos.a(osfutil.o): In function
`_ofreadable':
> osfutil.o(.text+0x958): undefined reference to `gcvaccess'
> /home/informix2000/lib/esql/libifos.a(osdnet.o): In function
`_osfullpath':
> osdnet.o(.text+0x6e4): undefined reference to `gcvaccess'
> osdnet.o(.text+0x71c): undefined reference to `gcvchdir'
> osdnet.o(.text+0x774): undefined reference to `gcvchdir'
> collect2: ld returned 1 exit status
> gmake[2]: *** [target_static] Error 1
> gmake[2]: Leaving directory
`/home/wins/cosslocal/src/other/apache_1.3.14/src'
> gmake[1]: *** [build-std] Error 2
> gmake[1]: Leaving directory `/home/wins/cosslocal/src/other/apache_1.3.14'
> gmake: *** [build] Error 2
>
> Seems the problem is now with Informix2000's libs ??
I'm fairly sure the libraries are the problem from past experience. Get them
right and it should build. This is why I said the libraries need specifying
correctly before Apache is built. Thats the fun part ;o) I don't have such a
problem as you as there is just one version of Informix on my system. This
is probably why you are having difficulties. It looks like it's going to be
a matter of playing around with them until it builds correctly.
In the build script I do a set > /tmp/setapache so I can see exactly what
environment vars are set prior to apache being built. Can you look through
this file to make sure everything looks ok?
You could try making sure the LD_LIBRARY_PATH is set for the correct
Informix version and then try setting the IFX_LIBS exactly as the output
from the esql -libs rather than using the absolute ones.
BTW, I'm CC'ing this to the install list for the benefit of others in the
future or someone happens to think one of us is talking bollox and puts us
on the right track ;)
Regards,
- Paul -
>
>
> Pieter
>
> My shell script (part of) now has :
>
> -------
> ...
> # IFX_LIBS set to the output of /home/informix2000/bin/esql -libs
> # and checking which of the -lXXXX is present as a library
> # named libXXXX.a in /home/informix2000/bin/esql/
> # and replacing it with the full path/filename of the library
> IFX_LIBS="/home/informix2000/lib/esql/libifsql.a \
> /home/informix2000/lib/libifasf.a \
> /home/informix2000/lib/esql/libifgen.a \
> /home/informix2000/lib/esql/libifos.a \
> /home/informix2000/lib/esql/libifgls.a \
> -lnsl \
> -lsocket \
> -laio \
> -lm \
> -ldl \
> -lelf \
> /home/informix2000/lib/esql/checkapi.o \
> /home/informix2000/lib/esql/libifglx.a"
>
> # Add any extra libs in here if required
> LIBS="$IFX_LIBS"
>
> export LIBS
>
> set >/tmp/setapache
>
>
> ./configure --prefix=$APACHE_DIR \
> --activate-module=src/modules/php4/libphp4.a \
> --activate-module=src/modules/jserv/libjserv.a
>
> echo "MAKE APACHE"
> gmake
>
> echo "Press RETURN to MAKE INSTALL Apache, or DEL to copy httpd
manually.\n"
>
> read ANS
>
> echo "MAKE INSTALL Apache"
> gmake install
> ...
> ---------------------
>
> _______________
> / Pieter Donche \____________________________________________
> | I.T. Manager e-mail [EMAIL PROTECTED] \
> | Dept. Mathem. & Computer Science tel +32(0)3/820.24.29 |
> | University of Antwerp, room A2.23 fax +32(0)3/820.24.21 |
> | (UIA) Universiteitsplein 1, B 2610 Wilrijk, BELGIUM (EU) |
> |____________________________________________________________|
>
>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]