Hi there,
I am trying to install GD1.8.4 on a DEC Alpha Tru64 v5.1 with PHP4.1.2
and Apache 3.1.19 or 3.1.23
I installed and compiled gd-1.84., zlib-1.1.3, libpng-1.2.1,
freetype-2.0.8. All works fine, gddemo produces nice output
Then I want to include it in PHP:
./configure --with-apache=../apache_1.3.23 --enable-track-vars \
--enable-force-cgi-redirect --enable-discard-path \
--enable-ftp --with-mysql --with-pgsql \
--with-gd=../gd-1.8.4 --enable-gd-native-ttf \
--with-freetype-dir=../freetype-2.0.8 \
--with-zlib-dir=../zlib-1.1.3 \
--with-png-dir=../libpng-1.2.1
configure, make and make install in php work well.
Then I switch to apache dir and do
./configure --activate-module=src/modules/php4/libphp4.a
make
Output of make:
...
gcc -DOSF1 -I/usr/download/php-4.1.2 -I/usr/download/php-4.1.2/main
-I/usr/download/php-4.1.2/main - I/usr/download/php-4.1.2/Zend
-I/usr/download/php-4.1.2/Zend -I/usr/download/php-4.1.2/TSRM -
I/usr/download/php-4.1.2/TSRM -I/usr/download/php-4.1.2 -DUSE_EXPAT
-I./lib/expat-lite - DNO_DL_NEEDED `./apaci` \
-o httpd buildmark.o modules.o modules/php4/libphp4.a
modules/standard/libstandard.a
main/libmain.a ./os/unix/libos.a ap/libap.a
lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/lib -Wl,-
rpath,/usr/download/gd-1.8.4 -Wl,-rpath,/usr/local/pgsql/lib
-L/usr/local/lib -L/usr/download/gd-1.8.4 -
L/usr/local/pgsql/lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4 -lpq -lgd -lfreetype -
lpng -lz -lz -lresolv -lm -lresolv -lm -lm
/usr/bin/ld:
/usr/local/lib/libz.a(inflate.o): inflateInit2_: multiply defined
/usr/local/lib/libz.a(inflate.o): inflate: multiply defined
/usr/local/lib/libz.a(inflate.o): inflateEnd: multiply defined
/usr/local/lib/libz.a(deflate.o): deflateInit2_: multiply defined
/usr/local/lib/libz.a(deflate.o): deflateEnd: multiply defined
/usr/local/lib/libz.a(deflate.o): deflate: multiply defined
/usr/local/lib/libz.a(deflate.o): deflateInit_: multiply defined
/usr/local/lib/libz.a(zutil.o): zlibVersion: multiply defined
/usr/local/lib/libz.a(zutil.o): zError: multiply defined
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/download/apache_1.3.23/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/download/apache_1.3.23'
make: *** [build] Error 2
Had anybody similar problems or does someone know how to find out sth.
about this multiple definition or to get rid of it?
It tried it at least 50 times with various configure options, , various
versions of apache and php(4.0.6) They give the same error.
J�rgen Schoch
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php