After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679603 - relocation R_X86_64_PC32 against `rsvg_get_file_path' can not be used when making a shared object
relocation R_X86_64_PC32 against `rsvg_get_file_path' can not be used when ma...
Status: RESOLVED DUPLICATE of bug 677661
Product: librsvg
Classification: Core
Component: general
2.36.x
Other NetBSD
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2012-07-08 21:38 UTC by Olaf 'Rhialto' Seibert
Modified: 2012-07-08 21:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Olaf 'Rhialto' Seibert 2012-07-08 21:38:24 UTC
If you build librsvg 2.36.2 on NetBSD 5.0, you get the following error:

  CCLD   librsvg-2.la                                                           
ld: .libs/librsvg_2_la-rsvg-defs.o: relocation R_X86_64_PC32 against            
`rsvg_get_file_path' can not be used when making a shared object; recompile with
-fPIC                                                                           
ld: final link failed: Bad value                                                
*** Error code 1                                                                
                                                                                
Stop.

After some searching (see http://mail-index.netbsd.org/pkgsrc-users/2012/07/08/msg016666.html and followup messages) I found out that the G_GNUC_INTERNAL specification was wrongly placed on the declaration of rsvg_get_file_path().

The following patch fixes this:

--- rsvg-image.h.orig	2012-07-08 22:08:18.000000000 +0200
+++ rsvg-image.h	2012-07-08 22:05:46.000000000 +0200
@@ -51,7 +51,7 @@
 G_GNUC_INTERNAL
 void rsvg_preserve_aspect_ratio (unsigned int aspect_ratio, double width,
                                  double height, double *w, double *h, double *x, double *y);
-G_GNUC_INTERNAL
+// G_GNUC_INTERNAL
 gchar *rsvg_get_file_path (const gchar * filename, const gchar * basedir);
 G_GNUC_INTERNAL
 cairo_surface_t *rsvg_cairo_surface_new_from_href (RsvgHandle *handle, const char *href, GError ** error);
Comment 1 Christian Persch 2012-07-08 21:56:46 UTC

*** This bug has been marked as a duplicate of bug 677661 ***