Ian Marlier wrote:
> I'm trying to build PHP 4.0.6 with GD and some other stuff, but I'm 
> running into two problems -- one I solved, the other I haven't.
> 
> The configure line that I'm using is:
> ./configure --enable-ftp --with-gd=../gd-1.8.4 --with-jpeg-dir=/usr/lib/ 
> --with-png-dir=/usr/lib/ --with-mysql 
> --with-pdflib=/usr/lib/tcl8.2/pdflib/ --with-apache=../apache_1.3.20 
> --with-zlib-dir=/usr/local/lib
> 
> The first issue is that the make of PHP would barf in the middle of the 
> ext/zlib/Makefile build.  I fixed the problem by doing "touch 
> ext/zlib/zlib.lo; touch ext/zlib/zlib_fopen_wrapper.lo" from the source 
> root.

This doesn't really fix the problem. This causes undefined reference 
which should never happen under normal build.

> modules/php4/libphp4.a(internal_functions.o): In function 
> `php_startup_internal_extensions':
> /root/php-4.0.6/main/internal_functions.c:64: undefined reference to 
> `php_zlib_module_entry'
> collect2: ld returned 1 exit status
> make[2]: *** [target_static] Error 1
> make[2]: Leaving directory `/root/apache_1.3.20/src'
> make[1]: *** [build-std] Error 2
> make[1]: Leaving directory `/root/apache_1.3.20'
> make: *** [build] Error 2
> ----

Are you sure you have zlib and PHP find it during configure?
If you have zlib in /usr/local/lib.
Do man ldconfig and fix lib problem, then you should be able to build PHP.

Yasuo Ohgaki


-- 
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]

Reply via email to