php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8952 PHP Installs With PNG, Apache Doesn't
Submitted: 2001-01-27 14:10 UTC Modified: 2001-06-03 18:22 UTC
From: kevin at kevinity dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: FreeBSD 3.4
Private report: No CVE-ID: None
 [2001-01-27 14:10 UTC] kevin at kevinity dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-03 23:22 UTC] kevin at kevinity dot com
Fixed by changing -lttf -lpng -lz -lgd -ljpeg in the gcc strings to -lgd -lttf -lpng -lz -ljpeg. Works now. Library problem I suppose. 
 [2001-06-03 18:22 UTC] sniper@php.net
This should be fixed in PHP 4.0.6. Please try the latest
release candidate from here:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 06:01:29 2024 UTC