PHP 4.0 Bug #8952 Updated: PHP Installs With PNG, Apache Doesn't
| From: | kevin at kevinity dot com | Date: | Sun, 04 Feb 2001 04:22:12 +0000 |
| Subject: | PHP 4.0 Bug #8952 Updated: PHP Installs With PNG, Apache Doesn't | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45705@lists.php.net to get a copy of this message | ||
ID: 8952
User Update by: kevin@kevinity.com
Status: Open
Bug Type: Compile Problem
Description: PHP Installs With PNG, Apache Doesn't
Fixed by changing -lttf -lpng -lz -lgd -ljpeg in the gcc strings to -lgd -lttf -lpng -lz -ljpeg.
Works now. Library problem I suppose.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-27 14:10:18] kevin@kevinity.com
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
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8952