Number: 1715
Title: make error: libgvplugin_gd.so: undefined reference
Submitter: Kasia Hayden
Date: Fri Jul 17 00:36:05 2009
Subsys: Dot
Version: 2.24
System: x86-linux-ubuntu9.04
Severity: major
Problem:
I get this error when I run make:


...
../../plugin/gd/.libs/libgvplugin_gd.so: undefined reference to `gdImageCreateFromPng'
../../plugin/gd/.libs/libgvplugin_gd.so: undefined reference to `gdImagePngCtx'
../../plugin/gd/.libs/libgvplugin_gd.so: undefined reference to `gdImagePng'
collect2: ld returned 1 exit status
make[3]: *** [dot_builtins] Error 1
make[3]: Leaving directory `/usr/local/graphviz-2.24.0/cmd/dot'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/graphviz-2.24.0/cmd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/graphviz-2.24.0'
make: *** [all] Error 2

I couldn't find any files or directories with the names gdImageCreateFromPng, gdImagePngCtx or gdImagePng.

I made sure that I had graphviz-gd and all of its dependencies installed, before attempting to configure graphviz. (I did all of this from source, so was able to check that everything installed as expected and with the necessary .h files and config files that graphviz would search for.)

This is what running ./configure produced, which made me expect graphviz would be able to find the needed png.h files in gd that I missed during my first attempt:


...
graphviz-2.24.0 will be compiled with the following:

options: cgraph: No (disabled by default - experimental) codegens: No (disabled by default - deprecated) digcola: Yes expat: Yes fontconfig: Yes freetype: Yes glut: No (missing GL/glut.h) gts: No (gts library not available) ipsepcola: No (disabled by default - C++ portability issues) ltdl: Yes ortho: No (disabled by default - experimental) png: Yes sfdp: No (disabled by default - experimental) shared: Yes static: No (disabled by default)

commands: dot: Yes (always enabled) neato: Yes (always enabled) fdp: Yes (always enabled) circo: Yes (always enabled) twopi: Yes (always enabled) lefty: Yes (always enabled) gvpr: Yes (always enabled) smyrna: No (disabled by default - experimental)

plugin libraries: dot_layout: Yes (always enabled) neato_layout: Yes (always enabled) core: Yes (always enabled) devil: No (missing library) gd: Yes gdiplus: No (disabled by default - Windows only) gdk_pixbuf: No (gdk_pixbuf library not available) ghostscript: No (missing headers) glitz: No (disabled by default - incomplete) gtk: No (gtk library not available) lasi: No (lasi library not available) ming: No (disabled by default - incomplete) pangocairo: No (pangocairo library not available) quartz: No (disabled by default - Mac only) rsvg: No (rsvg library not available) visio: No (disabled by default - experimental) xlib: Yes ...

More system info:


Ubuntu 9.04 i686
Intel(R) Core(TM)2 Duo CPU     T7250  @ 2.00GHz
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_ARCH_CPU=i386
DEB_BUILD_GNU_CPU=i486

Thanks for any direction or suggestions! Kasia
Comments:
Potentially related: When I typed in the "dot -version" command to get my graphviz version I got:

dot - graphviz version 2.24.0 (20090616.2323) Unable to find even the default "-Tdot" renderer. Has the config file been generated by running "dot -c" with installer's priviledges?
Owner: ellson
Status: *