Date: 09/25/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6815 Updated: php.ini-optimized disables passing of apache vars"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6852 Updated: Misc. bugs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: bdv <email protected>
Operating system: Solaris 2.6
PHP version: 4.0.2
PHP Bug Type: GD related
Bug description: Apache 1.3.12, php 4.0.2 not link with GD 1.8.3
--> First I build GD library with these lib before:
- Zlib 1.1.2
- Libpng 1.0.2
- jpeg-6b
I Build all the three lib with ./configure, make, make install
and the output is in /usr/local/lib
libz.a
libpng.a
in /usr/local/bin
cjpeg
djpeg
jpegtran
rdjpgcom
wrjpgcom
Some .h in /usr/local/include and so on in 'man'
At the end of this process I build GD Lybrary 1.8.3 with:
make
make install
and the output of this process is:
in /usr/local/lib
libgd.a
in /usr/local/bin
bdftogd
gd2copypal
gd2topng
gdparttopng
gdtopng
pngtogd
pngtogd2
webpng
in /usr/local/include
gd.h
gd_io.h
gdcache.h
gdfontg.h
gdfontl.h
gdfontmb.h
gdfonts.h
gdfontt.h
--> Second I build mcrypt 2.2.7 with:
./configure
make
make install
and I have some lib and .h
/usr/local/lib
libmcrypt.a
libmcrypt.la
libmcrypt.so -> libmcrypt.so.2.0.5
libmcrypt.so.2 -> libmcrypt.so.2.0.5
libmcrypt.so.2.0.5
/usr/local/include
mcrypt.h
--> Third I build and configure apache 1.3.12 with Php 4.0.2
cd apache_1.3.12
./configure
cd php_4.0.2
./configure --with-sybase-ct=/database/sybase --with-apache=/usr/local/sorgenti/apache_1.3.12 --with-gd --with-mcrypt --enable-track-vars
make
make install
cd apache_1.3.12
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
make
And the make not link because the function 'gdImageColorResolve' is contemporaneously into two library:
libgd.a and libphp4.a
What can I do ??????
cp libmodphp4.a libphp4.a
ar r libphp4.a mod_php4.o
ranlib libphp4.a
<=== src/modules/php4
<=== src/modules
cc -c -I./os/unix -I./include -DSOLARIS2=260 -I/usr/local/sorgenti/php-4.0.2 -I/usr/local/sorgenti/php-4.0.main -I/usr/local/sorgenti/php-4.0.2/main -I/usr/local/sorgenti/php-4.0.2/Zend -I/usr/local/sorgenti/php-4.0.2end -I/usr/local/sorgenti/php-4.0.2 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` modules.c
cc -c -I./os/unix -I./include -DSOLARIS2=260 -I/usr/local/sorgenti/php-4.0.2 -I/usr/local/sorgenti/php-4.0.main -I/usr/local/sorgenti/php-4.0.2/main -I/usr/local/sorgenti/php-4.0.2/Zend -I/usr/local/sorgenti/php-4.0.2end -I/usr/local/sorgenti/php-4.0.2 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` buildmark.c
cc -DSOLARIS2=260 -I/usr/local/sorgenti/php-4.0.2 -I/usr/local/sorgenti/php-4.0.2/main -I/usr/local/sorgenti/p-4.0.2/main -I/usr/local/sorgenti/php-4.0.2/Zend -I/usr/local/sorgenti/php-4.0.2/Zend -I/usr/local/sorgenti/p-4.0.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 -R/usr/ucblib -R/usr/local/lib -R/database/sybase/lib L/usr/ucblib -L/usr/local/lib -L/database/sybase/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmphp4 -lpam -ldl -linsck -ltcl -lintl -lcomn -lct -lcs -lmcrypt -lmcrypt -lgd -lresolv -lresolv -lm -ldl -lcrt -lnsl -lsocket -lsocket -lsocket -lnsl
ld: fatal: symbol `gdImageColorResolve' is multiply defined:
(file modules/php4/libphp4.a(gd.o) and file /usr/local/lib/libgd.a(gd.o));
ld: fatal: File processing errors. No output written to httpd
*** Error code 1
make: Fatal error: Command failed for target `target_static'
Current working directory /usr/local/sorgenti/apache_1.3.12/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /usr/local/sorgenti/apache_1.3.12
*** Error code 1
make: Fatal error: Command failed for target `build'
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6815 Updated: php.ini-optimized disables passing of apache vars"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6852 Updated: Misc. bugs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

