#21856 [NEW]: make fails with Undefined symbol errors
| From: | ghammar at attbi dot com | Date: | Fri, 24 Jan 2003 03:52:30 +0000 |
| Subject: | #21856 [NEW]: make fails with Undefined symbol errors | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-31109@lists.php.net to get a copy of this message | ||
From: ghammar@attbi.com
Operating system: Solaris 7
PHP version: 4.3.0
PHP Bug Type: Compile Failure
Bug description: make fails with Undefined symbol errors
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 bug report at http://bugs.php.net/?id=21856&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21856&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21856&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21856&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21856&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21856&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21856&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21856&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21856&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21856&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21856&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21856&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21856&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21856&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21856&r=gnused