pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/30207: [PATCH] graphics/librsvg2 fails to link against all necessary libraries



>Number:         30207
>Category:       pkg
>Synopsis:       [PATCH] graphics/librsvg2 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:   Wed May 11 23:12:00 +0000 2005
>Originator:     Idar Tollefsen
>Release:        N/A
>Organization:
Performance Design
>Environment:
Darwin fulcrum.performancedesign.no 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/librsvg2, I get the following:

gcc -pipe -dynamiclib  -o .libs/librsvg-2.2.9.5.dylib  .libs/rsvg-gz.o 
.libs/librsvg-features.o .libs/rsvg-bpath-util.o .libs/rsvg-css.o 
.libs/rsvg-defs.o .libs/rsvg-paint-server.o .libs/rsvg-path.o 
.libs/rsvg-file-util.o .libs/rsvg-filter.o .libs/rsvg-mask.o 
.libs/rsvg-shapes.o .libs/rsvg-styles.o .libs/rsvg-text.o .libs/rsvg.o 
.libs/rsvg-cond.o .libs/librsvg-enum-types.o  
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libfreetype.dylib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libfontconfig.dylib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libexpat.dylib 
-L/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib 
-L/usr/local/pkgsrc/graphics/librsvg2/work/.x11-buildlink/lib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libgsf-1.dylib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libgobject-2.0.dylib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libbz2.dylib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib
 /libcroco-0.6.dylib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libgdk_pixbuf-2.0.dylib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libgmodule-2.0.dylib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libglib-2.0.dylib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libart_lgpl_2.dylib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libxml2.dylib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libz.dylib 
/usr/lib/libiconv.dylib -lm 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libpangoft2-1.0.dylib 
/usr/local/pkgsrc/graphics/librsvg2/work/.buildlink/lib/libintl.dylib 
/usr/lib/libc.dylib  -install_name  /usr/local/lib/librsvg-2.2.dylib 
-Wl,-compatibility_version -Wl,12 -Wl,-current_version -Wl,12.5
ld: .libs/rsvg-text.o illegal reference to symbol: _pango_context_set_language 
defined in indirectly referenced dynamic library 
/usr/local/lib/libpango-1.0.0.dylib
/usr/bin/libtool: internal link edit command failed
*** Error code 1

>How-To-Repeat:
Try to configure and build graphics/librsvg2.
It's possible that this problem is Darwin/OS X specific.
If it is, try to configure and build graphics/librsvg2
on Darwin/OS X.
>Fix:
Add explicit linking to pango by patching the configure script.

There's allready a patch for graphics/librsvg2's configure script in
graphics/librsvg2/patches/patches-aa. Here's the replacement patch-aa:
-------------------------------------------------------------

--- configure.orig      Wed Jan 19 02:14:43 2005
+++ configure   Wed May 11 21:42:57 2005
@@ -1516,6 +1516,7 @@
 LIBART_REQUIRED=2.3.10
 LIBXML_REQUIRED=2.4.7
 PANGOFT2_REQUIRED=1.2.0
+PANGO_REQUIRED=1.2.0
 POPT_REQUIRED=1.5
 
 
@@ -20889,20 +20890,23 @@
        glib-2.0 >= $GLIB_REQUIRED \
        libart-2.0 >= $LIBART_REQUIRED \
        libxml-2.0 >= $LIBXML_REQUIRED \
-       pangoft2 >= $PANGOFT2_REQUIRED" >&5
+       pangoft2 >= $PANGOFT2_REQUIRED \
+       pango >= $PANGO_REQUIRED" >&5
 echo $ECHO_N "checking for \
        gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED \
        glib-2.0 >= $GLIB_REQUIRED \
        libart-2.0 >= $LIBART_REQUIRED \
        libxml-2.0 >= $LIBXML_REQUIRED \
-       pangoft2 >= $PANGOFT2_REQUIRED... $ECHO_C" >&6
+       pangoft2 >= $PANGOFT2_REQUIRED \
+       pango >= $PANGO_REQUIRED... $ECHO_C" >&6
 
         if $PKG_CONFIG --exists "\
        gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED \
        glib-2.0 >= $GLIB_REQUIRED \
        libart-2.0 >= $LIBART_REQUIRED \
        libxml-2.0 >= $LIBXML_REQUIRED \
-       pangoft2 >= $PANGOFT2_REQUIRED" ; then
+       pangoft2 >= $PANGOFT2_REQUIRED \
+       pango >= $PANGO_REQUIRED" ; then
             echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6
             succeeded=yes
@@ -20914,7 +20918,8 @@
        glib-2.0 >= $GLIB_REQUIRED \
        libart-2.0 >= $LIBART_REQUIRED \
        libxml-2.0 >= $LIBXML_REQUIRED \
-       pangoft2 >= $PANGOFT2_REQUIRED"`
+       pangoft2 >= $PANGOFT2_REQUIRED \
+       pango >= $PANGO_REQUIRED"`
             echo "$as_me:$LINENO: result: $LIBRSVG_CFLAGS" >&5
 echo "${ECHO_T}$LIBRSVG_CFLAGS" >&6
 
@@ -20925,7 +20930,8 @@
        glib-2.0 >= $GLIB_REQUIRED \
        libart-2.0 >= $LIBART_REQUIRED \
        libxml-2.0 >= $LIBXML_REQUIRED \
-       pangoft2 >= $PANGOFT2_REQUIRED"`
+       pangoft2 >= $PANGOFT2_REQUIRED \
+       pango >= $PANGO_REQUIRED"`
             echo "$as_me:$LINENO: result: $LIBRSVG_LIBS" >&5
 echo "${ECHO_T}$LIBRSVG_LIBS" >&6
         else
@@ -20938,7 +20944,8 @@
        glib-2.0 >= $GLIB_REQUIRED \
        libart-2.0 >= $LIBART_REQUIRED \
        libxml-2.0 >= $LIBXML_REQUIRED \
-       pangoft2 >= $PANGOFT2_REQUIRED"`
+       pangoft2 >= $PANGOFT2_REQUIRED \
+       pango >= $PANGO_REQUIRED"`
             echo $LIBRSVG_PKG_ERRORS
         fi
 
@@ -20958,13 +20965,15 @@
        glib-2.0 >= $GLIB_REQUIRED \
        libart-2.0 >= $LIBART_REQUIRED \
        libxml-2.0 >= $LIBXML_REQUIRED \
-       pangoft2 >= $PANGOFT2_REQUIRED) not met; consider adjusting the 
PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard 
prefix so pkg-config can find them." >&5
+       pangoft2 >= $PANGOFT2_REQUIRED \
+       pango >= $PANGO_REQUIRED) not met; consider adjusting the 
PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard 
prefix so pkg-config can find them." >&5
 echo "$as_me: error: Library requirements (\
        gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED \
        glib-2.0 >= $GLIB_REQUIRED \
        libart-2.0 >= $LIBART_REQUIRED \
        libxml-2.0 >= $LIBXML_REQUIRED \
-       pangoft2 >= $PANGOFT2_REQUIRED) not met; consider adjusting the 
PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard 
prefix so pkg-config can find them." >&2;}
+       pangoft2 >= $PANGOFT2_REQUIRED \
+       pango >= $PANGO_REQUIRED) not met; consider adjusting the 
PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard 
prefix so pkg-config can find them." >&2;}
    { (exit 1); exit 1; }; }
   fi
 
@@ -21874,11 +21883,14 @@
      \
                have_gnome_print=no
   fi
+               have_gnome_print=no
 
 
 if test "x$have_gnome_print" = "xyes"; then
    GNOME_PRINT_CFLAGS="$GNOME_PRINT_CFLAGS -DHAVE_GNOME_PRINT=1"
 fi
+GNOME_PRINT_CFLAGS=
+GNOME_PRINT_LIBS=
 
 
 
@@ -23633,6 +23645,7 @@
 if test "x$MOZILLA_CFLAGS" != "x"; then
    build_mozilla_plugin=yes
 fi
+build_mozilla_plugin=no
 
 
 if test "x$build_mozilla_plugin" = "xyes"; then
@@ -24765,6 +24778,7 @@
 s,@LIBART_REQUIRED@,$LIBART_REQUIRED,;t t
 s,@LIBXML_REQUIRED@,$LIBXML_REQUIRED,;t t
 s,@PANGOFT2_REQUIRED@,$PANGOFT2_REQUIRED,;t t
+s,@PANGO_REQUIRED@,$PANGO_REQUIRED,;t t
 s,@POPT_REQUIRED@,$POPT_REQUIRED,;t t
 s,@LIBRSVG_MAJOR_VERSION@,$LIBRSVG_MAJOR_VERSION,;t t
 s,@LIBRSVG_MINOR_VERSION@,$LIBRSVG_MINOR_VERSION,;t t


Or, if you prefer, a diff -ruN (effectively a patch against
the patch pluss checksum):
-------------------------------------------------------------

diff -ruN librsvg2.orig/distinfo librsvg2/distinfo
--- librsvg2.orig/distinfo      Wed May 11 21:36:16 2005
+++ librsvg2/distinfo   Wed May 11 21:45:10 2005
@@ -3,7 +3,7 @@
 SHA1 (librsvg-2.9.5.tar.bz2) = 502338a1b42ec36fbca895b97a166e398e7e3018
 RMD160 (librsvg-2.9.5.tar.bz2) = 5c7d6ad1a543b4880d7c3bb02da7126ed9f5aa5e
 Size (librsvg-2.9.5.tar.bz2) = 392785 bytes
-SHA1 (patch-aa) = b7e6a6989a49125e40c0cdadd0ed032068b0c658
+SHA1 (patch-aa) = 327678e0531c538b37d47c499b6c32f8077b7d72
 SHA1 (patch-ab) = 6f6d376192e6cf2f8c223be2270cbb932173449a
 SHA1 (patch-ac) = 11939435e00f04b58412b3d769297caa9ee585b9
 SHA1 (patch-ad) = e72e1e884a366199be9feeacde05815627393f1f
diff -ruN librsvg2.orig/patches/patch-aa librsvg2/patches/patch-aa
--- librsvg2.orig/patches/patch-aa      Wed May 11 21:36:16 2005
+++ librsvg2/patches/patch-aa   Wed May 11 21:44:05 2005
@@ -1,8 +1,89 @@
-$NetBSD: patch-aa,v 1.7 2005/04/02 13:01:28 jmmv Exp $
-
---- configure.orig     2005-01-19 01:14:43.000000000 +0000
-+++ configure
-@@ -21874,11 +21874,14 @@ echo "${ECHO_T}$GNOME_PRINT_LIBS" >&6
+--- configure.orig     Wed Jan 19 02:14:43 2005
++++ configure  Wed May 11 21:42:57 2005
+@@ -1516,6 +1516,7 @@
+ LIBART_REQUIRED=2.3.10
+ LIBXML_REQUIRED=2.4.7
+ PANGOFT2_REQUIRED=1.2.0
++PANGO_REQUIRED=1.2.0
+ POPT_REQUIRED=1.5
+ 
+ 
+@@ -20889,20 +20890,23 @@
+       glib-2.0 >= $GLIB_REQUIRED \
+       libart-2.0 >= $LIBART_REQUIRED \
+       libxml-2.0 >= $LIBXML_REQUIRED \
+-      pangoft2 >= $PANGOFT2_REQUIRED" >&5
++      pangoft2 >= $PANGOFT2_REQUIRED \
++      pango >= $PANGO_REQUIRED" >&5
+ echo $ECHO_N "checking for \
+       gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED \
+       glib-2.0 >= $GLIB_REQUIRED \
+       libart-2.0 >= $LIBART_REQUIRED \
+       libxml-2.0 >= $LIBXML_REQUIRED \
+-      pangoft2 >= $PANGOFT2_REQUIRED... $ECHO_C" >&6
++      pangoft2 >= $PANGOFT2_REQUIRED \
++      pango >= $PANGO_REQUIRED... $ECHO_C" >&6
+ 
+         if $PKG_CONFIG --exists "\
+       gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED \
+       glib-2.0 >= $GLIB_REQUIRED \
+       libart-2.0 >= $LIBART_REQUIRED \
+       libxml-2.0 >= $LIBXML_REQUIRED \
+-      pangoft2 >= $PANGOFT2_REQUIRED" ; then
++      pangoft2 >= $PANGOFT2_REQUIRED \
++      pango >= $PANGO_REQUIRED" ; then
+             echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+             succeeded=yes
+@@ -20914,7 +20918,8 @@
+       glib-2.0 >= $GLIB_REQUIRED \
+       libart-2.0 >= $LIBART_REQUIRED \
+       libxml-2.0 >= $LIBXML_REQUIRED \
+-      pangoft2 >= $PANGOFT2_REQUIRED"`
++      pangoft2 >= $PANGOFT2_REQUIRED \
++      pango >= $PANGO_REQUIRED"`
+             echo "$as_me:$LINENO: result: $LIBRSVG_CFLAGS" >&5
+ echo "${ECHO_T}$LIBRSVG_CFLAGS" >&6
+ 
+@@ -20925,7 +20930,8 @@
+       glib-2.0 >= $GLIB_REQUIRED \
+       libart-2.0 >= $LIBART_REQUIRED \
+       libxml-2.0 >= $LIBXML_REQUIRED \
+-      pangoft2 >= $PANGOFT2_REQUIRED"`
++      pangoft2 >= $PANGOFT2_REQUIRED \
++      pango >= $PANGO_REQUIRED"`
+             echo "$as_me:$LINENO: result: $LIBRSVG_LIBS" >&5
+ echo "${ECHO_T}$LIBRSVG_LIBS" >&6
+         else
+@@ -20938,7 +20944,8 @@
+       glib-2.0 >= $GLIB_REQUIRED \
+       libart-2.0 >= $LIBART_REQUIRED \
+       libxml-2.0 >= $LIBXML_REQUIRED \
+-      pangoft2 >= $PANGOFT2_REQUIRED"`
++      pangoft2 >= $PANGOFT2_REQUIRED \
++      pango >= $PANGO_REQUIRED"`
+             echo $LIBRSVG_PKG_ERRORS
+         fi
+ 
+@@ -20958,13 +20965,15 @@
+       glib-2.0 >= $GLIB_REQUIRED \
+       libart-2.0 >= $LIBART_REQUIRED \
+       libxml-2.0 >= $LIBXML_REQUIRED \
+-      pangoft2 >= $PANGOFT2_REQUIRED) not met; consider adjusting the 
PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard 
prefix so pkg-config can find them." >&5
++      pangoft2 >= $PANGOFT2_REQUIRED \
++      pango >= $PANGO_REQUIRED) not met; consider adjusting the 
PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard 
prefix so pkg-config can find them." >&5
+ echo "$as_me: error: Library requirements (\
+       gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED \
+       glib-2.0 >= $GLIB_REQUIRED \
+       libart-2.0 >= $LIBART_REQUIRED \
+       libxml-2.0 >= $LIBXML_REQUIRED \
+-      pangoft2 >= $PANGOFT2_REQUIRED) not met; consider adjusting the 
PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard 
prefix so pkg-config can find them." >&2;}
++      pangoft2 >= $PANGOFT2_REQUIRED \
++      pango >= $PANGO_REQUIRED) not met; consider adjusting the 
PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard 
prefix so pkg-config can find them." >&2;}
+    { (exit 1); exit 1; }; }
+   fi
+ 
+@@ -21874,11 +21883,14 @@
       \
                have_gnome_print=no
    fi
@@ -17,7 +98,7 @@
  
  
  
-@@ -23633,6 +23636,7 @@ build_mozilla_plugin=no
+@@ -23633,6 +23645,7 @@
  if test "x$MOZILLA_CFLAGS" != "x"; then
     build_mozilla_plugin=yes
  fi
@@ -25,3 +106,11 @@
  
  
  if test "x$build_mozilla_plugin" = "xyes"; then
+@@ -24765,6 +24778,7 @@
+ s,@LIBART_REQUIRED@,$LIBART_REQUIRED,;t t
+ s,@LIBXML_REQUIRED@,$LIBXML_REQUIRED,;t t
+ s,@PANGOFT2_REQUIRED@,$PANGOFT2_REQUIRED,;t t
++s,@PANGO_REQUIRED@,$PANGO_REQUIRED,;t t
+ s,@POPT_REQUIRED@,$POPT_REQUIRED,;t t
+ s,@LIBRSVG_MAJOR_VERSION@,$LIBRSVG_MAJOR_VERSION,;t t
+ s,@LIBRSVG_MINOR_VERSION@,$LIBRSVG_MINOR_VERSION,;t t




Home | Main Index | Thread Index | Old Index