Subject: pkg/30088: [PATCH] graphics/libgnomecanvase fails to link against all necessary libraries
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <idart@performancedesign.no>
List: pkgsrc-bugs
Date: 04/29/2005 09:03:01
>Number:         30088
>Category:       pkg
>Synopsis:       [PATCH] graphics/libgnomecanvase fails to link against all necessary libraries
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 29 09:03:01 +0000 2005
>Originator:     Idar Tollefsen
>Release:        N/A
>Organization:
Performance Design
>Environment:
Darwin fulcrum.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC  Power Macintosh powerpc
>Description:
When trying to build graphics/libgnomecanvas, I get the following:

/bin/sh ../libtool --mode=link gcc -pipe  -O2 -I/usr/local/include -I/usr/include -I/usr/local/include/freetype2 -L/usr/local/lib -L/usr/lib -L/usr/X11R6/lib -o libgnomecanvas-2.la -rpath /usr/local/lib  -version-info 1000:0:1000   gnome-canvas-shape.lo gnome-canvas-bpath.lo gnome-canvas-path-def.lo gnome-canvas-clipgroup.lo gnome-canvas-line.lo gnome-canvas-pixbuf.lo gnome-canvas-polygon.lo gnome-canvas-rect-ellipse.lo gnome-canvas-text.lo gnome-canvas-rich-text.lo gnome-canvas-util.lo gnome-canvas-widget.lo gnome-canvas.lo libgnomecanvastypes.lo -L/usr/local/lib -lgtk-x11-2.0 -lart_lgpl_2 -lpango-1.0 -lpangoft2-1.0   -lintl
gcc -pipe -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o .libs/libgnomecanvas-2.0.1000.0.dylib  .libs/gnome-canvas-shape.o .libs/gnome-canvas-bpath.o .libs/gnome-canvas-path-def.o .libs/gnome-canvas-clipgroup.o .libs/gnome-canvas-line.o .libs/gnome-canvas-pixbuf.o .libs/gnome-canvas-polygon.o .libs/gnome-canvas-rect-ellipse.o .libs/gnome-canvas-text.o .libs/gnome-canvas-rich-text.o .libs/gnome-canvas-util.o .libs/gnome-canvas-widget.o .libs/gnome-canvas.o .libs/libgnomecanvastypes.o  -L/usr/local/pkgsrc/graphics/libgnomecanvas/work/.buildlink/lib -L/usr/local/pkgsrc/graphics/libgnomecanvas/work/.x11-buildlink/lib /usr/local/pkgsrc/graphics/libgnomecanvas/work/.buildlink/lib/libgtk-x11-2.0.dylib /usr/local/pkgsrc/graphics/libgnomecanvas/work/.buildlink/lib/libart_lgpl_2.dylib /usr/local/pkgsrc/graphics/libgnomecanvas/work/.buildlink/lib/libpango-1.0.dylib /usr/local/pkgsrc/graphics/libgnomecanvas/work/.buildlink/lib/libglib-2.0.dylib /usr/local/pkgsrc/graphics/libgnomecanv
 as/work/.buildlink/lib/libgobject-2.0.dylib /usr/local/pkgsrc/graphics/libgnomecanvas/work/.buildlink/lib/libgmodule-2.0.dylib /usr/local/pkgsrc/graphics/libgnomecanvas/work/.buildlink/lib/libpangoft2-1.0.dylib /usr/local/pkgsrc/graphics/libgnomecanvas/work/.buildlink/lib/libintl.dylib -install_name  /usr/local/lib/libgnomecanvas-2.0.dylib -Wl,-compatibility_version -Wl,1001 -Wl,-current_version -Wl,1001.0
ld: .libs/gnome-canvas-shape.o illegal reference to symbol: _gdk_cap_style_get_type defined in indirectly referenced dynamic library /usr/local/lib/libgdk-x11-2.0.0.dylib
ld: .libs/gnome-canvas-pixbuf.o illegal reference to symbol: _gdk_pixbuf_composite defined in indirectly referenced dynamic library /usr/local/lib/libgdk_pixbuf-2.0.0.dylib
/usr/bin/libtool: internal link edit command failed

>How-To-Repeat:
Try to configure and build graphics/libgnomecanvas.
It's possible that this problem is Darwin/OS X specific.
If it is, try to configure and build graphics/libgnomecanvas
on Darwin/OS X.



>Fix:
Add linking against gdk and gdk-pixbuf by patching the configure
script.

Here's a the patch, a new file (graphics/libgnomecanvas/patch-aa):
------------------------------------------------------------------

--- configure.orig	Mon Mar  7 14:35:54 2005
+++ configure	Thu Apr 28 20:05:16 2005
@@ -22015,7 +22015,7 @@
 
 
 
-CANVAS_MODULES="  gtk+-2.0 >= 2.0.3   libart-2.0 >= 2.3.8   pango >= 1.0.1   pangoft2 >= 1.0.1"
+CANVAS_MODULES="  gtk+-2.0 >= 2.0.3  gdk-2.0 >= 2.0.3  gdk-pixbuf-2.0 >= 2.0.3  libart-2.0 >= 2.3.8   pango >= 1.0.1   pangoft2 >= 1.0.1"
 
   succeeded=no