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 
PlatformOSSparc-Solaris-9OS Version
Summary0001042: undefined symbol gdImageCreateFromJpeg

$ ./
$ 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/
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/ /tmp/graphviz2/lib/graph/.libs/ /tmp/graphviz2/lib/cdt/.libs/ /tmp/graphviz2/lib/pathplan/.libs/ /tmp/graphviz2/lib/gd/.libs/ -L/opt/freetype-2.1.4/lib /opt/freetype-2.1.4/lib/ -L/opt/libpng-1.2.7/lib -lpng -lm -lz -lgen /tmp/graphviz2/libltdl/.libs/ -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/
gdImageJpeg ../../lib/gvc/.libs/
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
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:
   make clean
   ./configure ....

$ grep JPEG config.status
s,@[email protected],,;t t
s,@[email protected],,;t t

>> ./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.

[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.
STATUS-COMMENTFixed (19 Jan 2005)
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