Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001042graphvizBuild/Installpublic2006-01-19 16:592011-04-28 04:03
ReporterMatt selsky 
Assigned Toellson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSSparc-Solaris-9OS Version
Summary0001042: undefined symbol gdImageCreateFromJpeg
Description



<CD>
$ ./autogen.sh
$ make
Making all in dot
make[3]: Entering directory `/tmp/graphviz2/cmd/dot'
/bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2 -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -DNDEBUG -L/usr/local/lib -o dot dot.o ../../lib/gvc/libgvc.la
gcc -g -O2 -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -DNDEBUG -o .libs/dot dot.o -L/usr/local/lib ../../lib/gvc/.libs/libgvc.so /tmp/graphviz2/lib/graph/.libs/libgraph.so /tmp/graphviz2/lib/cdt/.libs/libcdt.so /tmp/graphviz2/lib/pathplan/.libs/libpathplan.so /tmp/graphviz2/lib/gd/.libs/libgvgd.so -L/opt/freetype-2.1.4/lib /opt/freetype-2.1.4/lib/libfreetype.so -L/opt/libpng-1.2.7/lib -lpng -lm -lz -lgen /tmp/graphviz2/libltdl/.libs/libltdl.so -ldl -lsocket -lnsl -R/usr/local/lib/graphviz -R/opt/freetype-2.1.4/lib -R/usr/local/lib
Undefined first referenced
 symbol in file
gdImageCreateFromJpeg ../../lib/gvc/.libs/libgvc.so
gdImageJpeg ../../lib/gvc/.libs/libgvc.so
ld: fatal: Symbol referencing errors. No output written to .libs/dot
collect2: ld returned 1 exit status
make[3]: *** [dot] Error 1
make[3]: Leaving directory `/tmp/graphviz2/cmd/dot'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/graphviz2/cmd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/graphviz2'
make: *** [all] Error 2
</CD>
Additional Information
I'm using the bundled version of GD.

[ellson] Sounds like a problem finding your jpeg libraries. Did you see any warnings during configure?

What does "grep JPEG config.status" give you?



./configure is supposed to deal with missing libjpeg. Do you get this error from a fresh tree:
<CD>
   make clean
   ./configure ....
   make
</CD>


[selsky]
<CD>
$ grep JPEG config.status
s,@[email protected],,;t t
s,@[email protected],,;t t
${ac_dA}HAVE_GD_JPEG${ac_dB}HAVE_GD_JPEG${ac_dC}1${ac_dD}
${ac_uA}HAVE_GD_JPEG${ac_uB}HAVE_GD_JPEG${ac_uC}1${ac_uD}


>> ./configure is supposed to deal with missing libjpeg. Do you get this
>> error from a fresh tree:
>> make clean
>> ./configure ....
>> make


Configure says:

checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
configure: WARNING: Optional jpeg library not available - no jpeglib.h

My generated config.h is wrong.

$ grep JPEG config.h
/* Define if the GD library has the GD_JPEG feature */
#define HAVE_GD_JPEG 1
/* Define if you have the JPEG library */
/* #undef HAVE_LIBJPEG */

HAVE_GD_JPEG should be undefined.
</CD>

[ellson] I think I found the problem. In lib/gd/gdfx.c, which comes from gd-2.0.33,
there is a strange attempt to load an eleanor.jpg which doesn't exist in gd-2.0.33 sources.

At minimum this code needs to be conditional on HAVE_LIBJPEG.

In CVS I've eliminated this code altogether.

TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID863
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (19 Jan 2005)
VERSION     2.7 CVS HEAD
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user695


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker