Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000854graphvizDotpublic2005-03-30 17:022011-04-28 04:03
ReporterGreg Roelofs 
Assigned Toellson 
PlatformOSx86-Linux-Slackware 10.0OS Version
Summary0000854: static builds fail due to incorrect libtool dependencies

Static builds--i.e., configure'd as follows:
    ./configure --prefix=/home/roelofs/graphviz --enable-shared=no --enable-static=yes

--fail to build properly. In particular, libtool generates graph/agxbuf.lo
with non_pic_object=none, which results in no "static" agxbuf.o and a link
failure for dot due to missing agx* symbols:

/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -L/home/roelofs/graphviz/lib -o dot dot.o ../dotneato/common/ ../dotneato/gvrender/ ../dotneato/dotgen/
gcc -g -O2 -Wall -o dot dot.o -L/home/roelofs/graphviz/lib ../dotneato/common/.libs/libcommon.a -L/usr/lib -L/usr/X11R6/lib ../dotneato/gvrender/.libs/libgvrender.a /home/roelofs/source/graphics/graphviz-2.2/dotneato/common/.libs/libcommon.a -lgd -lXpm -lX11 -ljpeg /usr/X11R6/lib/ /usr/lib/ -lpng12 /usr/lib/ -lz ../dotneato/dotgen/.libs/libdotgen.a /home/roelofs/source/graphics/graphviz-2.2/pathplan/.libs/libpathplan.a -lm /home/roelofs/source/graphics/graphviz-2.2/graph/.libs/libgraph.a /home/roelofs/source/graphics/graphviz-2.2/cdt/.libs/libcdt.a
../dotneato/common/.libs/libcommon.a(utils.o)(.text+0xa1c): In function `cleanup':
/home/roelofs/source/graphics/graphviz-2.2/dotneato/common/utils.c:371: undefined reference to `agxbfree'
../dotneato/common/.libs/libcommon.a(utils.o)(.text+0xa81): In function `username':
/home/roelofs/source/graphics/graphviz-2.2/dotneato/common/utils.c:389: undefined reference to `agxbput'

There is a similar problem in the included gd distribution; it affects
gdtables.lo, gd_topal.lo, gd_gif_*.lo, and apparently many of the gdfont*
files. (I gave up and built my own gd before getting that far.)

I don't know enough about libtool to fix either problem, but it would be
spiffy if you could do so. It looks like I may be able to hack dot into
shape simply by hand-editing a few of libgraph's .lo files.

Additional Information

[newt] (I've never really liked libtool; it obfuscates the build process far beyond
what seems reasonable. My personal recommendation would be to drop it in
favor of basic autoconf, but that's just me.
TagsNo tags attached.
VERSION     2.2
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