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 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionsuspended 
PlatformOS*-*-OS Version
Summary0000550: Old libtool relinks improperly.
Description



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



When it gets to subdirectory 'graph', we get:
<CD>
 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 'libgraph.la' '/var/tmp/buildroot/graphviz-2.1.20041228.0530-1/usr/local/lib/graphviz/libgraph.la'
libtool: install: warning: relinking `libgraph.la'
(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 libgraph.la -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/libcdt.la )
generating symbol list for `libgraph.la'
/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/libgraph.so.0 .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 `libgraph.la' 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
</CD>






Note that it's relinking and including /usr/local/lib, but not including
[...buildroot...]/usr/local/lib.



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



http://svn.haxx.se/dev/archive-2003-04/0303.shtml [^]



http://lists.debian.org/debian-devel/2003/06/msg00569.html [^]



//www.mail-archive.com/[email protected]/msg01982.html">http://www.mail-archive.com/[email protected]/msg01982.html [//www.mail-archive.com/[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
strategies.
Additional Information

[ellson] I don't think I understand.

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

Did the install of libcdt.so 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.

http://www.monkey.org/openbsd/archive/ports/0407/msg00225.html [^]
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID599
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTInactive
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