PHP 4.0 Bug #10331 Updated: configure: test gd functions lacks inclusion of -lpng, -lz
| From: | elkner at linofee dot org | Date: | Sun, 15 Apr 2001 16:20:58 +0000 |
| Subject: | PHP 4.0 Bug #10331 Updated: configure: test gd functions lacks inclusion of -lpng, -lz | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51615@lists.php.net to get a copy of this message | ||
ID: 10331
User Update by: elkner@linofee.org
Old-Status: Feedback
Status: Open
Bug Type: GD related
Description: configure: test gd functions lacks inclusion of -lpng, -lz
Nope, --with-png-dir does not resolve the problem (that was
my first try). I can't use --with-freetype-dir, since freetype support is not part of the used
gd lib.
Here the params I used:
./configure --prefix=/develop/sl7/proto/opt/php4 --with-apxs --enable-discard-path
--with-config-file-path=/etc --enable-safe-mode --with-exec-dir=/opt/php/bin --with-openssl=/opt/ssl
--enable-calendar --enable-ftp --with-gd=/usr/local --with-ldap --with-mysql --with-oci8=/opt/oracle
--enable-sockets --with-regex=system --enable-sysvsem --enable-sysvshm --with-zlib=/usr/local
--with-xpm-dir=/usr/X11R6 --with-jpeg-dir=/usr --enable-track-vars --with-png-dir=/usr
BTW: What for is the --with-sockets stuff (just for incl. of -lsockets ?)
Previous Comments:
---------------------------------------------------------------------------
[2001-04-15 08:54:59] wez@php.net
Sorry - you also need --with-xpm-dir, and I meant to say GD 2.
---------------------------------------------------------------------------
[2001-04-15 08:52:32] wez@php.net
Support for GD was just added to the latest CVS.
Try a snapshot from snaps.php.net or checkout the latest CVS and configure with:
./configure
"--with-jpeg-dir"
"--with-png-dir"
"--with-freetype-dir"
"--with-gd"
Beware - this will implicitly --enable-gd-native-ttf.
Please let me know how you get on.
--Wez.
---------------------------------------------------------------------------
[2001-04-15 02:07:18] elkner@linofee.org
I'm using shared libgd.so.2.0.0 which supports jpeg, xpm, png and libz. Unfortunately php
configure does NOT include
libpng and libz in its test, so it gets wrong results.
E.g.:
configure:15759: checking whether to include GD support
configure:16388: checking for gdImageString16 in -lgd
configure:16407: gcc -o conftest -g -O2 -DLINUX=2 -DMOD_SSL=206105 -DEAPI -DUSE
_EXPAT -DSHARED_CORE -Wl,-rpath,/opt/ssl/lib -L/opt/ssl/lib -Wl,-rpath,/usr/X11
R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -L/usr/local/
lib conftest.c -lgd -lgd -lX11 -lXpm -ljpeg -lcrypto -lssl -lresolv -lm -ldl -l
crypt -lnsl -lresolv -L/usr/lib -ljpeg -L/usr/X11R6/lib -lXpm -L/usr/X11R6/lib
-lX11 1>&5
/usr/local/lib/libgd.so: undefined reference to `uncompress'
/usr/local/lib/libgd.so: undefined reference to `png_get_rowbytes'
/usr/local/lib/libgd.so: undefined reference to `png_set_strip_16'
/usr/local/lib/libgd.so: undefined reference to `png_create_read_struct'
...
collect2: ld returned 1 exit status
configure: failed program was:
...
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=10331