From:             [EMAIL PROTECTED]
Operating system: FreeBSD 3.4
PHP version:      4.0.4pl1
PHP Bug Type:     Compile Problem
Bug description:  PHP Installs With PNG, Apache Doesn't

I finally got PHP to compile with GD 1.8.3 on my system, but apache won't compile now.

Here is relevant info from an apache make:
<=== src/modules
gcc -c  -I./os/unix -I./include -I/usr/local  -funsigned-char 
-I/usr/local/installs/web_stuff/php-4.0.4pl1 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM 
-I/usr/local/installs/web_stuff/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci` modules.c
gcc -c  -I./os/unix -I./include -I/usr/local  -funsigned-char 
-I/usr/local/installs/web_stuff/php-4.0.4pl1 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM 
-I/usr/local/installs/web_stuff/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci` buildmark.c
gcc  -funsigned-char -I/usr/local/installs/web_stuff/php-4.0.4pl1 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM 
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM 
-I/usr/local/installs/web_stuff/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  main/libmain.a  
./os/unix/libos.a  ap/libap.a  lib/expat-lite/libexpat.a 
-L/usr/local/installs/web_stuff/libpng-1.07/ -lpng -R/usr/local//lib -R/usr/local/lib 
-R/usr/local/lib/mysql -R/usr/local/pgsql//lib  -rdynamic -L/usr/local//lib 
-L/usr/local/lib -L/usr/local/lib/mysql -L/usr/local/pgsql//lib -Lmodules/php4 
-L../modules/php4 -L../../modules/php4 -lmodphp4  -lpam  -lpq -lmysqlclient -lttf 
-lpng -lz -lgd -ljpeg -lm -lcrypt  -L/usr/local//lib -ljpeg   -lcrypt
/usr/local//lib/libgd.a(gd_png.o): In function `gdPngErrorHandler':
gd_png.o(.text+0x25): undefined reference to `png_get_error_ptr'
/usr/local//lib/libgd.a(gd_png.o): In function `gdPngReadData':
gd_png.o(.text+0x67): undefined reference to `png_get_io_ptr'
/usr/local//lib/libgd.a(gd_png.o): In function `gdPngWriteData':
gd_png.o(.text+0x8b): undefined reference to `png_get_io_ptr'
/usr/local//lib/libgd.a(gd_png.o): In function `gdImageCreateFromPngCtx':
gd_png.o(.text+0x105): undefined reference to `png_check_sig'
gd_png.o(.text+0x12e): undefined reference to `png_create_read_struct'
gd_png.o(.text+0x158): undefined reference to `png_create_info_struct'
gd_png.o(.text+0x1a2): undefined reference to `png_set_sig_bytes'
gd_png.o(.text+0x1b2): undefined reference to `png_set_read_fn'
gd_png.o(.text+0x1bd): undefined reference to `png_read_info'
gd_png.o(.text+0x1e0): undefined reference to `png_get_IHDR'
gd_png.o(.text+0x1f1): undefined reference to `png_set_strip_16'
gd_png.o(.text+0x202): undefined reference to `png_set_packing'
gd_png.o(.text+0x222): undefined reference to `png_set_strip_alpha'
gd_png.o(.text+0x26b): undefined reference to `png_get_PLTE'
gd_png.o(.text+0x278): undefined reference to `png_get_valid'
gd_png.o(.text+0x2ad): undefined reference to `png_get_tRNS'
gd_png.o(.text+0x3c2): undefined reference to `png_get_valid'
gd_png.o(.text+0x3e0): undefined reference to `png_get_tRNS'
gd_png.o(.text+0x443): undefined reference to `png_get_valid'
gd_png.o(.text+0x45d): undefined reference to `png_get_tRNS'
gd_png.o(.text+0x53d): undefined reference to `png_set_dither'
gd_png.o(.text+0x54b): undefined reference to `png_read_update_info'
gd_png.o(.text+0x556): undefined reference to `png_get_rowbytes'
gd_png.o(.text+0x58a): undefined reference to `png_destroy_read_struct'
gd_png.o(.text+0x5cb): undefined reference to `png_destroy_read_struct'
gd_png.o(.text+0x5f7): undefined reference to `png_read_image'
gd_png.o(.text+0x601): undefined reference to `png_read_end'
gd_png.o(.text+0x633): undefined reference to `png_destroy_read_struct'
gd_png.o(.text+0x6e6): undefined reference to `png_destroy_read_struct'
/usr/local//lib/libgd.a(gd_png.o): In function `gdImagePngCtx':
gd_png.o(.text+0x821): undefined reference to `png_create_write_struct'
gd_png.o(.text+0x84f): undefined reference to `png_create_info_struct'
gd_png.o(.text+0x8b4): undefined reference to `png_set_write_fn'
gd_png.o(.text+0x9b6): undefined reference to `png_set_IHDR'
gd_png.o(.text+0xa2d): undefined reference to `png_set_tRNS'
gd_png.o(.text+0xaf1): undefined reference to `png_set_PLTE'
gd_png.o(.text+0xb02): undefined reference to `png_write_info'
gd_png.o(.text+0xb0d): undefined reference to `png_set_packing'
gd_png.o(.text+0xbef): undefined reference to `png_write_image'
gd_png.o(.text+0xc00): undefined reference to `png_write_end'
gd_png.o(.text+0xc40): undefined reference to `png_write_image'
gd_png.o(.text+0xc51): undefined reference to `png_write_end'
gd_png.o(.text+0xc67): undefined reference to `png_destroy_write_struct'
*** Error code 1

Stop.
*** Error code 1

Perhaps library variables aren't being passed properly (or something like that)?

Thanks,

Kevin


-- 
Edit Bug report at: http://bugs.php.net/?id=8952&edit=1



-- 
PHP Development 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