Compile of apache/php/mysql problem with missing symbols from zli b.

From: MacDonell, Dennis (DennisMacDonell@auslig.gov.au)
Date: Mon Jul 08 2002 - 01:56:48 EDT


Hi,

I'm sitting on a sparc20, with a version of Solaris 2.8. I have dragged down
off the free package shelf, bison, flex, mysql, autoconf, etc, and off the
free software shelf apache, php, zlib, etc.

I had tried to compile mysql, but come across a problem, so I decided to use
the package from ibiblio. However, I am still getting a problem with apache
when it goes to include the php4 module. Whilst trying to create httpd it
comes to the problem with trying to find compress and uncompress, which were
referenced in libmysqlclient.a (my_compress.o)

Here is the output from the make
**************************************
gcc -DSOLARIS2=280 -I/export/nelson1/local/system/builds/php-4.1.2.SunOS
-I/export/nelson1/local/system/builds/php-4.1.2.SunOS/main
 -I/export/nelson1/local/system/builds/php-4.1.2.SunOS/main
-I/export/nelson1/local/system/builds/php-4.1.2.SunOS/Zend
-I/export/nelson1/local/system/builds/php-4.1.2.SunOS/Zend
-I/export/nelson1/local/system/builds/php-4.1.2.SunOS/TSRM
-I/export/nelson1/local/system/builds/php-4.1.2.SunOS/TSRM
-I/export/nelson1/local/system/builds/php-4.1.2.SunOS -DUSE_EXPAT
-I./lib/expat-lite -DNO_DL_NEEDED
`./apaci` -lz \
      -o httpd buildmark.o modules.o modules/php4/libphp4.a
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a
lib/expat-lite/libexpat.a -R/usr/ucblib
-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -R/usr/local/mysql/lib
-L/usr/ucb/lib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2
-L/usr/local/mysql/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4
-lmodphp4 -lpam -ldl -lmysqlclient -lcrypt -lresolv -lresolv -lresolv -lm
-ldl -lnsl -lsocket -lsocket -lgcc -lcrypt -lsocket -lnsl -lpthread
Undefined first referenced
 symbol in file
uncompress
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o)
compress
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o)
ld: fatal: Symbol referencing errors. No output written to httpd
collect2: ld returned 1 exit status
gmake[3]: *** [target_static] Error 1
**************************************

I have scratched around trying to work out how to point it at the zlib
stuff. 2.8 comes with /usr/lib/libz.so.1 which happens to be 1.1.3. I tried
using zlib package from ibiblio, it also was 1.1.3, by setting it up in
/usr/local/lib and setting LD_LIBRARY_PATH with /usr/local/lib first (also
only comes with as a shared lib). I also tried getting rid of all the 1.1.3
stuff and compiling zlib from the source, which created a
/usr/local/lib/libz.a. I have tried setting the environment variables
EXTRA_CFLAGS and EXTRA_LDFLAGS in <apache>/src/modules/php4/Makefile using
the example.c flags from the zlib distribution (ie EXTRA_CFLAGS="-O3
-DHAVE_UNISTD_H -DUSE_MMAP" and EXTRA_LDFLAGS="-L. -lz"). All to no avail.

I'm not sure if the changes in the Makefile actually translated to changes
in the compile line. In the line above the -lz is in the wrong place, it
should be following "-o httpd" somewhere. Anyway everything I have tried
doesn't seem to work so I pass it onto the experts.

Hopefully someone can sort me out on this one.

Dennis

######################################
Dennis Macdonell
Systems Administrator
National Mapping Division, Geoscience Australia
mail: PO Box 2, Belconnen, ACT 2617
email: mcdonell@auslig.gov.au
ph: 61 2 6201 4326
fax: 61 2 6201 4377
######################################
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:34 EDT