php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21856 make fails with Undefined symbol errors
Submitted: 2003-01-23 21:52 UTC Modified: 2003-01-24 13:22 UTC
From: ghammar at attbi dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.0 OS: Solaris 7
Private report: No CVE-ID: None
 [2003-01-23 21:52 UTC] ghammar at attbi dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-24 09:49 UTC] 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-24 13:22 UTC] ghammar at attbi dot com
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 16 23:00:02 2025 UTC