Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000550graphvizBuild/Installpublic2004-12-28 13:572011-04-28 04:02
ReporterAllen S. Rout 
Assigned Toellson 
PlatformOS*-*-OS Version
Summary0000550: Old libtool relinks improperly.

At the end of make install: (I'm building an AIX RPM)

When it gets to subdirectory 'graph', we get:
 Entering directory `/opt/freeware/src/packages/BUILD/graphviz-2.1.20041228.0530/graph'
test -z "/var/tmp/buildroot/graphviz-2.1.20041228.0530-1/usr/local/lib/graphviz" || /opt/freeware/src/packages/BUILD/graphviz-2.1.20041228.0530/config/install-sh -d "/var/tmp/buildroot/graphviz-2.1.20041228.0530-1/usr/local/lib/graphviz"
 /bin/sh ../libtool --mode=install ../config/install-sh -c '' '/var/tmp/buildroot/graphviz-2.1.20041228.0530-1/usr/local/lib/graphviz/'
libtool: install: warning: relinking `'
(cd /usr/src/packages/BUILD/graphviz-2.1.20041228.0530/graph; /bin/sh ../libtool --tag=CC --mode=relink gcc -g -O2 -Wall -L/usr/local/lib -o -rpath /var/tmp/buildroot/graphviz-2.1.20041228.0530-1/usr/local/lib/graphviz attribs.lo agxbuf.lo edge.lo graph.lo graphio.lo lexer.lo node.lo parser.lo refstr.lo trie.lo ../cdt/ )
generating symbol list for `'
/usr/bin/nm -B -BCpg .libs/attribs.o .libs/agxbuf.o .libs/edge.o .libs/graph.o .libs/graphio.o .libs/lexer.o .libs/node.o .libs/parser.o .libs/refstr.o .libs/trie.o | awk '{ if ((($2 == "T") || ($2 == "D") || ($2 == "B")) && (substr($3,1,1) != ".")) { print $3 } }' | sort -u > .libs/libgraph.exp
gcc -shared -o .libs/ .libs/attribs.o .libs/agxbuf.o .libs/edge.o .libs/graph.o .libs/graphio.o .libs/lexer.o .libs/node.o .libs/parser.o .libs/refstr.o .libs/trie.o -Wl,-blibpath:/usr/local/lib/graphviz:/usr/local/lib:/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3:/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3/../../..:/usr/lib:/lib -L/usr/local/lib /usr/local/lib/graphviz/libcdt.a -lc -Wl,-bE:.libs/libgraph.exp -Wl,-bnoentry ${wl}-berok
gcc: /usr/local/lib/graphviz/libcdt.a: No such file or directory
libtool: install: error: relink `' with the above command before installing it
make[1]: *** [install-pkglibLTLIBRARIES] Error 1
make[1]: Leaving directory `/opt/freeware/src/packages/BUILD/graphviz-2.1.20041228.0530/graph'
make: *** [install-am] Error 2

Note that it's relinking and including /usr/local/lib, but not including

This is a known bug with libtool (or at least lots of package maintainers
know about it: evidently GNU doesnt?) [^] [^]

//[email protected]/msg01982.html">[email protected]/msg01982.html [//[email protected]/msg01982.html" target="_blank">^]

I see you used 1.5.10, but I don't see this bug addressed in the
changelog back to 2001 or so. I'm looking for workaround
Additional Information

[ellson] I don't think I understand.

When you are doing "make install" you want /usr/local/lib/graphviz/ to be using /usr/local/lib/graphviz/
and not the one in [...buildroot...].

Did the install of work OK?

[asr] No; I'm not installing on a machine, I'm installing to a temporary space to
permit RPM to gather together the contents of the package. When it's actually
installed on a machine, the files will be in /usr/local/lib/graphviz. When
you install in the RPM-building process, you want a distinct build root, so
you can distinguish your package from the rest of the system.

... I've since found some other RPM / apt hints that may address this (DESTDIR
instead of PREFIX). So, we'll see how that goes.

[asr] Nope, my hopeful fix didn't help.

As recently as July of this year, folks were passing patches around and
flailing. Bleah. [^]
TagsNo tags attached.
VERSION     2.1.20041228.0530
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

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

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