php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2641 Apache 'make' failure with gd-1.7.3 and mysql-3.22.26a
Submitted: 1999-10-30 10:36 UTC Modified: 1999-10-30 10:45 UTC
From: o dot cook at etoncollege dot org dot uk Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.12 OS: RedHat Linux 6.0
Private report: No CVE-ID: None
 [1999-10-30 10:36 UTC] o dot cook at etoncollege dot org dot uk
I am trying to configure PHP to work with apache and GD. The install is also using openssl and mod_ssl, which may be complicating matters.

The following (note how gd-1.7.3 is not included in the PHP configure) *does* work:

$ tar -zvxf *.gz
$ cd mysql-3.22.26a
$ ./configure
$ make
$ make install
$ cp -r client/.libs lib
$ cd ../openssl-0.9.4
$ ./config
$ make
$ cd ../apache_1.3.9
$ ./configure
$ cd ../php-3.0.12
$ ./configure --with-mysql=../mysql-3.22.26a --with-apache=../apache_1.3.9 --enable-track-vars
$ make
$ make install
$ cd ../mod_ssl-2.4.4-1.3.9
$ ./configure --with-apache=../apache_1.3.9 --with-ssl=../openssl-0.9.4 --prefix=/usr/local/apache --activate-module=src/modules/php3/libphp3.a
$ cd ../apache_1.3.9
$ make
$ make certificate
$ make install

However, switching the php configure line with:

$ ./configure --with-mysql=../mysql-3.22.26a --with-apache=../apache_1.3.9 --with-gd=../stats/gd-1.7.3 --enable-track-vars

causes PHP to 'make' OK, but gives the following error with the final Apache 'make':

gcc  -DLINUX=2 -DMOD_SSL=204105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT
-I./lib/expat-lite `./apaci` -L/usr/src/openssl-0.9.4   \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/ssl/libssl.a modules/php3/libphp3.a main/libmain.a ./os/unix/libos.a
ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a
-Wl,-rpath,/usr/src/stats/gd-1.7.3 -Wl,-rpath,/usr/lib
-Wl,-rpath,/usr/src/php-3.0.12/../mysql-3.22.26a/lib
-L/usr/src/stats/gd-1.7.3 -lgd -L/usr/lib -lttf
-L/usr/src/php-3.0.12/../mysql-3.22.26a/lib -lmysqlclient -Lmodules/php3
-L../modules/php3 -L../../modules/php3 -lmodphp3
-lpam -lm -ldl -lcrypt -lnsl  -lresolv  -lm -lcrypt  -lssl -lcrypto -ldb
/usr/src/stats/gd-1.7.3/libgd.a(gd.o): In function `gdImageColorResolve':
gd.o(.text+0x2f0): multiple definition of `gdImageColorResolve'
modules/php3/libphp3.a(gd.o):/usr/src/php-3.0.12/functions/gd.c:291: first
defined here
/usr/bin/ld: Warning: size of symbol `gdImageColorResolve' changed from 281
to 226 in gd.o
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1

Any info would be gratefully received. I can't see what I'm doing wrong.

Ollie



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-10-30 10:45 UTC] rasmus at cvs dot php dot net
You need the current CVS version of PHP for gd-1.7.x to work, or wait for PHP-3.0.13.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 28 07:00:02 2026 UTC