php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7821 Unresolved symbol with GD
Submitted: 2000-11-14 18:09 UTC Modified: 2001-05-21 01:58 UTC
From: mad at dactar dot ch Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.0.5 OS: HP-UX 10.20
Private report: No CVE-ID:
 [2000-11-14 18:09 UTC] mad at dactar dot ch
Helloo, 

I can't load apache with php compiled with GD 1.8.3
(without GD, apache is loadable)

Configure Option
----------------
../configure \
--with-config-file-path=/PKl01h01/soft/web/cfg \
--without-mysql \
--with-sybase=/PKl01hd2/soft/ase11.5.1 \
--with-pdflib=/PKl01h01/soft/web \
--with-gd=/PKl01h01/soft/web \
--with-jpeg-dir=/PKl01h01/soft/web \
--prefix=/PKl01h01/soft/web \
--with-apxs=/PKl01h01/soft/web/apache/bin/apxs

There's no configuring or compiling error

Here's the error messages when I launch apache : 

/usr/lib/dld.sl: Unresolved symbol: TT_Get_CharMap_ID (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Init_FreeType (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_New_Glyph (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Done_Glyph (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Done_Instance (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Get_Face_Properties (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Close_Face (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Transform_Outline (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Get_CharMap_Count (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Get_Glyph_Bitmap (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Get_Glyph_Outline (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Get_Glyph_Metrics (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Get_CharMap (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Set_Instance_CharSize (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Get_Glyph_Pixmap (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: XpmReadFileToXpmImage (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_New_Instance (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Get_Instance_Metrics (code) from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Load_Glyph (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Open_Face (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Char_Index (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: TT_Set_Instance_Resolutions (code)
from /PKl01h01/soft/web/lib/libgd.sl

Thank you for your answer.

JC

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-15 13:18 UTC] sniper@php.net
Have you compiled GD library with TTF support enabled
in the Makefile ?

Try adding --with-ttf=/path/to/ttf
into the configure line.

--Jani
 [2000-12-15 20:00 UTC] sniper@php.net
No feedback.
 [2001-03-26 05:20 UTC] mad at dactar dot ch
Yes, GD (1.8.4) is compiled with ttf support (LIBS=-lgd -lpng -lz -ljpeg -lm -lttf in GD's Makefile)

For ttf, I've installled freetype available at http://hpux.connect.org.uk/hppd/hpux/Text/freetype-1.3.1

I need GD for graphics support in pdflib

Do you have an idea ?
 [2001-03-26 05:37 UTC] sniper@php.net
1. delete config.cache
2. add --with-ttf=/path/to/ttf into the configure line you used.
3. after configure do 'make clean ; make ; make install'

--Jani




 [2001-03-26 06:40 UTC] mad at dactar dot ch
Okay, with the option "--with-ttf=..." it works better, but I have this when I launch apache : 

./apachectl start
/usr/lib/dld.sl: Unresolved symbol: gdCalloc (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: gdMalloc (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: gdFree (code)  from /PKl01h01/soft/web/lib/libgd.sl
/usr/lib/dld.sl: Unresolved symbol: gdRealloc (code)  from /PKl01h01/soft/web/lib/libgd.sl

an idea ?

Thank you for your answer,
JC
 [2001-03-26 17:39 UTC] sniper@php.net
Which version of GD library are you using?
As I can't find such symbols in my gd libs at all.

(well, in GD 2.0.0BETA there are those gdMalloc, gdCalloc, etc. but not in 1.8.3)

--Jani

 [2001-03-27 11:02 UTC] mad at dactar dot ch
Hi Jani,

I use GD 1.8.4

If I return to GD 1.8.3, I have this message when I launch apache :

/usr/lib/dld.sl: Unresolved symbol: XpmReadFileToXpmImage (code)  from =/PKl01h01/soft/web/lib/libgd.sl

 [2001-03-29 11:09 UTC] sniper@php.net
Try adding --with-xpm-dir=/path/to/libXpm/
into your configure line (without the /lib part!)

--Jani



 [2001-04-28 15:35 UTC] derick@php.net
No feedback. If this problem persists with PHP 4.0.5 which
will be released next week, please reopen this report.

Derick
 [2001-05-15 15:02 UTC] mad at dactar dot ch
Hellow,

Here's the feedback : 

When I add --with-xpm-dir=..., the configure program failed : 

...
checking for libjpeg (needed by gd-1.8+)... yes
checking for jpeg_read_header in -ljpeg... yes
checking for libXpm (needed by gd-1.8+)... yes
checking for XpmFreeXpmImage in -lXpm... no
no
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... no
checking for gdImagePaletteCopy in -lgd... no
checking for gdImageColorClosestHWB in -lgd... no
checking for compress in -lz... no
checking for png_info_init in -lpng... no
checking for gdImageColorResolve in -lgd... no
checking for gdImageCreateFromPng in -lgd... no
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageWBMP in -lgd... no
checking for gdImageCreateFromJpeg in -lgd... no
checking for gdImageCreateFromXpm in -lgd... no
checking whether to include FreeType 1.x support... yes
checking for T1lib support... no
checking whether to include GNU gettext support... no
checking for gmp support... no
checking for Hyperwave support... no
checking for ICAP support... no
checking for iconv support... no
checking for Kerberos support in IMAP... no
checking for SSL support in IMAP... no
checking for IMAP support... no
checking for Informix support... no
checking for Ingres II support... no
checking for InterBase support... no
checking for ircg support... no
checking for Java support... no
checking whether to include LDAP support... no
checking for MCAL support... no
checking for mcrypt support... no
checking for mhash support... no
checking whether to include ming support... no
checking for mnoGoSearch support... no
checking for mSQL support... no
checking for Muscat support... no
checking for MySQL support... no
checking for Oracle-OCI8 support... no
checking for Adabas support... no
checking for SAP DB support... no
checking for Solid support... no
checking for IBM DB2 support... no
checking for Empress support... no
checking for Velocis support... no
checking for a custom ODBC support... no
checking for iODBC support... no
checking for Easysoft ODBC-ODBC Bridge support... no
checking for unixODBC support... no
checking for OpenLink ODBC support... no
checking for DBMaker support... no
checking for Oracle-ORACLE support... no
checking for Ovrimos SQL Server support... no
checking whether to include PCRE support... yes
checking for memmove... (cached) yes
checking whether to include PDFlib support... yes
checking for libz needed by pdflib 3.x... already zlib support
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for png_create_info_struct in -lpng... no
no
checking for TIFFOpen in -ltiff... no
no
checking for PDF_show_boxed in -lpdf... no
configure: error: pdflib extension requires pdflib 3.x.

I'll become crazy :p

An idea ?
Thx :)

 [2001-05-16 01:06 UTC] sniper@php.net
What does it say in config.log about this ?
In the end of it.

And could you please try with latest snapshot from
http://snaps.php.net/ as the configure script for
GD has gone through a face lift.

--Jani

 [2001-05-16 10:28 UTC] mad at dactar dot ch
Okay, with the build php4-200105160045, I've this config message error :

...
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... yes
checking for the location of libpng... yes
checking for png_info_init in -lpng... yes
./configure[6]: no:  not found.
checking for the location of libXpm... yes
checking for XpmFreeXpmImage in -lXpm... no
configure: error: libXpm.(a|so) or libX11.(a|so) not found!

In config.log : 

...
configure:18240: checking for the location of libXpm
configure:18288: checking for XpmFreeXpmImage in -lXpm
configure:18309: gcc -o conftest -O2  -DHPUX10 -DMOD_SSL=208101 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT  -L/PKl01h01/soft/web/lib -L/PKl01h01/soft/web/lib -L/PKl01h01/so
ft/web/src/php/lib -L/PKl01h01/soft/web/src/php/lib conftest.c -lXpm
      -L/PKl01h01/soft/web/lib -lX11
     -lpng -lz -ljpeg -lcrypt -lm  1>&5
/usr/ccs/bin/ld: Can't find library for -lX11
collect2: ld returned 1 exit status
configure: failed program was:
#line 18298 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char XpmFreeXpmImage();

int main() {
XpmFreeXpmImage()
; return 0; }

Any idea ?
Thx :)
JC
 [2001-05-20 18:37 UTC] sniper@php.net
Is there libX11.so or libX11.a in /PKl01h01/soft/web/lib ??

--Jani

 [2001-05-20 18:47 UTC] mad at dactar dot ch
Good question :)

I've putted this library from HP-UX system in my lib directory and now it's works :)

I've just warning message...I will update this event tomorrow when I'll be at work with all details.

Do you have an idea for the bug #10884 ?

Thanks :)

JC


 [2001-05-21 01:58 UTC] sniper@php.net
Solved -> closed.

--Jani

 
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Mon Mar 02 15:02:00 2015 UTC