#21856 [Fbk->Csd]: make fails with Undefined symbol errors

From: Date: Fri, 24 Jan 2003 19:22:43 +0000
Subject: #21856 [Fbk->Csd]: make fails with Undefined symbol errors
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31175@lists.php.net to get a copy of this message
ID: 21856 User updated by: ghammar@attbi.com Reported By: ghammar@attbi.com -Status: Feedback +Status: Closed Bug Type: Compile Failure Operating System: Solaris 7 PHP Version: 4.3.0 New Comment: I am trying the latest stable version now. So far, so good. (I have a SPARC2, so it is pretty slow.) Last night, I downloaded the 4.3.0 version again, deleted the original install area, configured it and ran make this morning. It worked as advertized! Not sure why-something must have been corrupted during my 15-20 previous attempts. Thanks for your help. Previous Comments: ------------------------------------------------------------------------ [2003-01-24 09:49:39] iliaa@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Try the unstable snap, it comes with bundled gd 2.0.11 ------------------------------------------------------------------------ [2003-01-23 21:52:30] ghammar@attbi.com I want to build php 4.3.0 with pgsql and gd2 support using the php version of gd2. Configure seems to work w/o any trouble. I don't get any errors, but when I get to the link stage, make fails. The error is: Undefined first referenced symbol in file gdImageJpegCtx ext/gd/gd.lo gdImageCreateFromJpeg ext/gd/gd.lo gdImageCreateFromJpegCtx ext/gd/gd.lo ld: fatal: Symbol referencing errors. No output written to sapi/cli/php collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 I used this configure command: ./configure --with-apxs=/usr/local/apache/bin/apxs --disable-short-tags \ --with-gd --with-freetype-dir=/usr/local --enable-gd-native-ttf \ --enable-gd-imgstrttf --with-jpeg-dir=/usr/local --with-zlib \ --with-png-dir=/usr/local When I search for the missing symbols, I find them in gd.h, but it looks like those are the ones the linker is complaining about. I downloaded gd 2.0.10 to see if I could find the missing symbols and they appear as prototype defs in gd.h. There is no gd.h in my distribution. Should there be? As a last resort, I just downloaded the 4.3.0.tar.gz distro again this evening, wiped out the old area and started fresh. It hasn't made a difference. I also tried all of the posts in the support section, but none of those pointers made any difference. I have a number of other configs that also did not work, if you need those. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21856&edit=1

« previous php.bugs (#31175) next »