Subject: Re: pkg/32753 ([patch] graphics/graphviz-2.6nb2: Unresolved symbols
To: None <minskim@netbsd.org, gnats-admin@netbsd.org,>
From: Idar Tollefsen <idart@performancedesign.no>
List: pkgsrc-bugs
Date: 03/19/2006 17:35:02
The following reply was made to PR pkg/32753; it has been noted by GNATS.
From: Idar Tollefsen <idart@performancedesign.no>
To: gnats-bugs@netbsd.org
Cc: minskim@netbsd.org
Subject: Re: pkg/32753 ([patch] graphics/graphviz-2.6nb2: Unresolved symbols
on OS X)
Date: Sun, 19 Mar 2006 18:30:20 +0100
This is a multi-part message in MIME format.
--------------090904050003020702090601
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Close, but no cigar. It's missing "_lt_preloaded_symbols":
gcc -pipe -dynamiclib -o .libs/libgvplugin_usershape_gd.1.0.0.dylib
.libs/gvplugin_usershape_gd.o .libs/gvusershape_gd.o
-L/usr/pkg/pkgsrc/graphics/graphviz/work/graphviz-2.6/lib/gd/.libs
-L/usr/pkg/pkgsrc/graphics/graphviz/work/graphviz-2.6/lib/cdt/.libs
-L/usr/pkg/pkgsrc/graphics/graphviz/work/graphviz-2.6/lib/graph/.libs
-L/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib
-L/usr/pkg/pkgsrc/graphics/graphviz/work/.x11-buildlink/lib
../../lib/gd/.libs/libgvgd.dylib
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../..//libiconv.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib/libfontconfig.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib/libfreetype.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib/libexpat.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib/libjpeg.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib/libpng.dylib
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../..//libz.dylib
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../..//libm.dylib
../../lib/cdt/.libs/libcdt.dylib ../../lib/graph/.libs/libgraph.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/graphviz-2.6/lib/cdt/.libs/libcdt.dylib
../../lib/gvc/.libs/libgvc_builtins.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/graphviz-2.6/lib/graph/.libs/libgraph.dylib
-L/usr/pkg/pkgsrc/graphics/graphviz/work/graphviz-2.6/lib/pathplan/.libs
/usr/pkg/pkgsrc/graphics/graphviz/work/graphviz-2.6/lib/pathplan/.libs/libpathplan.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/graphviz-2.6/lib/gd/.libs/libgvgd.dylib
/usr/pkg/pkgsrc/graphics/graphviz/work/.buildlink/lib/libltdl.dylib
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../..//libdl.dylib
-mabi=altivec -maltivec -mtune=G4 -mcpu=7450 -Wl,-x -Wl,-dead_strip
-install_name /usr/pkg/lib/graphviz/libgvplugin_usershape_gd.1.dylib
-Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.0
ld: Undefined symbols:
_lt_preloaded_symbols
/usr/bin/libtool: internal link edit command failed
*** Error code 1
Stop.
bmake: stopped in
/usr/pkg/pkgsrc/graphics/graphviz/work/graphviz-2.6/lib/plugin
*** Error code 1
I've attached a modified version of the patch I suggested earlier. This
one with the same libs added to libgvplugin_usershape_gd's dependencies
as well, as I saw was done with patch-ae. It's otherwise the same patch.
Since it works with these libs added, why was it changed in patch-ae?
--------------090904050003020702090601
Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0";
name="patch-lib:plugin:Makefile.in"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch-lib:plugin:Makefile.in"
--- lib/plugin/Makefile.in.orig 2005-08-28 15:11:26.000000000 +0200
+++ lib/plugin/Makefile.in 2006-03-17 19:20:22.000000000 +0100
@@ -78,7 +78,12 @@
gvlayout_neato_layout.lo
libgvplugin_neato_layout_la_OBJECTS = \
$(am_libgvplugin_neato_layout_la_OBJECTS)
-libgvplugin_usershape_gd_la_DEPENDENCIES =
+libgvplugin_usershape_gd_la_DEPENDENCIES = \
+ @GD_LIBS@ \
+ $(top_builddir)/lib/ast/libast.la \
+ $(top_builddir)/lib/sfio/libsfio.la \
+ $(top_builddir)/lib/agraph/libagraph.la \
+ $(top_builddir)/lib/gvc/libgvc.la
am_libgvplugin_usershape_gd_la_OBJECTS = gvplugin_usershape_gd.lo \
gvusershape_gd.lo
libgvplugin_usershape_gd_la_OBJECTS = \
@@ -399,7 +404,12 @@
gvplugin_usershape_gd.c \
gvusershape_gd.c
-libgvplugin_usershape_gd_la_LIBADD = @GD_LIBS@
+libgvplugin_usershape_gd_la_LIBADD = \
+ @GD_LIBS@ \
+ $(top_builddir)/lib/ast/libast.la \
+ $(top_builddir)/lib/sfio/libsfio.la \
+ $(top_builddir)/lib/agraph/libagraph.la \
+ $(top_builddir)/lib/gvc/libgvc.la
EXTRA_DIST = Makefile.old
all: all-am
--------------090904050003020702090601--