problems with gd 1.7.3

From: Date: Sat, 19 Feb 2000 07:51:51 +0000
Subject: problems with gd 1.7.3
Groups: php.version4 
Request: Send a blank email to php-version4+get-10482@lists.php.net to get a copy of this message
What am I doing wrong. The task at hand is to compile Apache 1.3.11 with PHP4b3 (from snaps.php.net - php4-200002181845) and gd 1.7.3 I have compiled and installed gd using the following settings in it's Makefile: CFLAGS=-O -DHAVE_LIBTTF LIBS=-lm -lgd -lpng -lz -lttf INCLUDEDIRS=-I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include/freetype LIBDIRS=-L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/local/include/freetype INSTALL_LIB=/usr/local/lib/gd INSTALL_INCLUDE=/usr/local/include/gd INSTALL_BIN=/usr/local/bin then I run PHP's configure with the following parameters, which gives no errors at all. ./configure --with-mysql=../mysql-3.22.25\ --with-config-file-path=/etc\ --enable-force-cgi-redirect\ --with-apache=../apache_1.3.11\ --with-xml\ --enable-track-vars\ --with-ttf=/usr/local\ --with-zlib=../zlib-1.1.3\ --with-gd=../gd-1.7.3 The I run "make" and "make install" next it's apache's turn it configure gets run with these parameters: ./configure -v \ --with-layout=RedHat \ --enable-module=so \ --enable-module=log_agent \ --enable-module=log_referer \ --enable-module=usertrack \ --enable-module=rewrite \ --enable-module=info \ --enable-module=vhost_alias \ --activate-module=src/modules/php4/libphp4.a \ --activate-module=src/modules/perl/libperl.a \ --activate-module=src/modules/dav/libdav.a Thats when the fun part starts. it compiles fine, until it starts on the PHP stuff. then it dies with the following messages: ========== BEGIN ========== <=== src/modules gcc -c -I. -I/usr/lib/perl5/5.00503/i386-linux/CORE -I./os/unix -I./include -I/build/openssl-0.9.4/include -DLINUX=2 -DTARGET=\"httpsd\" -I/build/php-4.0b3 -I/build/php-4.0b3/libzend -I/build/php-4.0b3/libzend -I/build/php-4.0b3 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/include -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DAPACHE_SSL ./apaci modules.c gcc -c -I. -I/usr/lib/perl5/5.00503/i386-linux/CORE -I./os/unix -I./include -I/build/openssl-0.9.4/include -DLINUX=2 -DTARGET=\"httpsd\" -I/build/php-4.0b3 -I/build/php-4.0b3/libzend -I/build/php-4.0b3/libzend -I/build/php-4.0b3 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/include -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DAPACHE_SSL ./apaci buildmark.c gcc -DLINUX=2 -DTARGET=\"httpsd\" -I/build/php-4.0b3 -I/build/php-4.0b3/libzend -I/build/php-4.0b3/libzend -I/build/php-4.0b3 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/include -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DAPACHE_SSL ./apaci -rdynamic \ -o httpsd buildmark.o modules.o modules/perl/libperl.a modules/dav/libdav.a modules/standard/libstandard.a modules/ssl/libssl.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a -Wl,-rpath,/build/mysql-3.22.25/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -ldl -lm -lresolv -lnsl -lcrypt -ldb -L/build/mysql-3.22.25/lib -lmysqlclient -lpam -lm -lcrypt -lndbm -rdynamic -L/usr/local/lib /usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.00503/i386-linux/CORE -lperl -lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt -ldl -L/build/openssl-0.9.4 -lssl -lcrypto modules/php4/libphp4.a(gd.o): In function `php_minit_gd': /home/build/php4-200002181845/ext/gd/gd.c:175: undefined reference to `gdImageDestroy' modules/php4/libphp4.a(gd.o): In function `php_if_imagecreate': /home/build/php4-200002181845/ext/gd/gd.c:389: undefined reference to `gdImageCreate' modules/php4/libphp4.a(gd.o): In function `php_if_imagecreatefrompng': /home/build/php4-200002181845/ext/gd/gd.c:425: undefined reference to `gdImageCreateFromPng' modules/php4/libphp4.a(gd.o): In function `php_if_imagepng': /home/build/php4-200002181845/ext/gd/gd.c:469: undefined reference to `gdImagePng' /home/build/php4-200002181845/ext/gd/gd.c:484: undefined reference to `gdImagePng' modules/php4/libphp4.a(gd.o): In function `php_if_imagecolorallocate': /home/build/php4-200002181845/ext/gd/gd.c:680: undefined reference to `gdImageColorAllocate' modules/php4/libphp4.a(gd.o): In function `php_if_imagecolorat': /home/build/php4-200002181845/ext/gd/gd.c:710: undefined reference to `gdImageBoundsSafe' modules/php4/libphp4.a(gd.o): In function `php_if_imagecolorclosest': /home/build/php4-200002181845/ext/gd/gd.c:754: undefined reference to `gdImageColorClosest' modules/php4/libphp4.a(gd.o): In function `php_if_imagecolordeallocate': /home/build/php4-200002181845/ext/gd/gd.c:784: undefined reference to `gdImageColorDeallocate' modules/php4/libphp4.a(gd.o): In function `php_if_imagecolorresolve': /home/build/php4-200002181845/ext/gd/gd.c:825: undefined reference to `gdImageColorResolve' modules/php4/libphp4.a(gd.o): In function `php_if_imagecolorexact': /home/build/php4-200002181845/ext/gd/gd.c:861: undefined reference to `gdImageColorExact' modules/php4/libphp4.a(gd.o): In function `php_if_imagesetpixel': /home/build/php4-200002181845/ext/gd/gd.c:979: undefined reference to `gdImageSetPixel' modules/php4/libphp4.a(gd.o): In function `php_if_imageline': /home/build/php4-200002181845/ext/gd/gd.c:1021: undefined reference to `gdImageLine' modules/php4/libphp4.a(gd.o): In function `php_if_imagedashedline': /home/build/php4-200002181845/ext/gd/gd.c:1060: undefined reference to `gdImageDashedLine' modules/php4/libphp4.a(gd.o): In function `php_if_imagerectangle': /home/build/php4-200002181845/ext/gd/gd.c:1101: undefined reference to `gdImageRectangle' modules/php4/libphp4.a(gd.o): In function `php_if_imagefilledrectangle': /home/build/php4-200002181845/ext/gd/gd.c:1142: undefined reference to `gdImageFilledRectangle' modules/php4/libphp4.a(gd.o): In function `php_if_imagearc': /home/build/php4-200002181845/ext/gd/gd.c:1193: undefined reference to `gdImageArc' modules/php4/libphp4.a(gd.o): In function `php_if_imagefilltoborder': /home/build/php4-200002181845/ext/gd/gd.c:1232: undefined reference to `gdImageFillToBorder' modules/php4/libphp4.a(gd.o): In function `php_if_imagefill': /home/build/php4-200002181845/ext/gd/gd.c:1269: undefined reference to `gdImageFill' modules/php4/libphp4.a(gd.o): In function `php_if_imagecolortransparent': /home/build/php4-200002181845/ext/gd/gd.c:1334: undefined reference to `gdImageColorTransparent' modules/php4/libphp4.a(gd.o): In function `php_if_imageinterlace': /home/build/php4-200002181845/ext/gd/gd.c:1377: undefined reference to `gdImageInterlace' modules/php4/libphp4.a(gd.o): In function `php_imagepolygon': /home/build/php4-200002181845/ext/gd/gd.c:1461: undefined reference to `gdImageFilledPolygon' /home/build/php4-200002181845/ext/gd/gd.c:1464: undefined reference to `gdImagePolygon' modules/php4/libphp4.a(gd.o): In function `php_find_gd_font': /home/build/php4-200002181845/ext/gd/gd.c:1499: undefined reference to `gdFontSmall' /home/build/php4-200002181845/ext/gd/gd.c:1502: undefined reference to `gdFontMediumBold' /home/build/php4-200002181845/ext/gd/gd.c:1505: undefined reference to `gdFontLarge' /home/build/php4-200002181845/ext/gd/gd.c:1514: undefined reference to `gdFontTiny' /home/build/php4-200002181845/ext/gd/gd.c:1516: undefined reference to `gdFontGiant' modules/php4/libphp4.a(gd.o): In function `php_gdimagecharup': /home/build/php4-200002181845/ext/gd/gd.c:1575: undefined reference to `gdImageSetPixel' modules/php4/libphp4.a(gd.o): In function `php_imagechar': /home/build/php4-200002181845/ext/gd/gd.c:1637: undefined reference to `gdImageChar' /home/build/php4-200002181845/ext/gd/gd.c:1644: undefined reference to `gdImageChar' /home/build/php4-200002181845/ext/gd/gd.c:1652: undefined reference to `gdImageCharUp' modules/php4/libphp4.a(gd.o): In function `php_if_imagecopy': /home/build/php4-200002181845/ext/gd/gd.c:1737: undefined reference to `gdImageCopy' modules/php4/libphp4.a(gd.o): In function `php_if_imagecopyresized': /home/build/php4-200002181845/ext/gd/gd.c:1791: undefined reference to `gdImageCopyResized' collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/home/build/apache_1.3.11/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/home/build/apache_1.3.11' make: *** [build] Error 2 ========== END ========== I am at a total loss as to why PHP "forgets" to resolve these references without making any errors during it's own compilation. Any help on how to get gd-lib to work with php. I need the gd-lib so that I can produce some statistical graphs on our server usage. Rune! con2854@cybercity.dk If among many truth you choose one and follow it blindly, it will become a falsehood and you a fanatic.

« previous php.version4 (#10482) next »