Summary: Compile of apache/php/mysql problem with missing symbols from zlib.

From: MacDonell, Dennis <DennisMacDonell_at_auslig.gov.au>
Date: Sun Jul 21 2002 - 20:10:52 EDT
Hi, 

I got 2 replies, one was from Steve (ssandau@bath.tmac.com), who pointed out
that there was a new tool to control libraries, namely crle. I used this
tool to set the include path as well as the trusted library path to include
/usr/local. I also made sure that -lz was included by setting
EXTRA_LDFLAGS=-lz in <apache build dir>/src/Makefile. The second part would
have solved the problem I believe, as a version of libz.so (1.1.3) comes
with 2.8. However I forced the build to pickup the one from /usr/local/lib
created from the source. With those changes the make went to completion
Houston.

Dennis

Here is the original question:
> 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.


######################################
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
Received on Sun Jul 21 20:16:56 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:49 EST