GNOME Bugzilla – Bug 679603
relocation R_X86_64_PC32 against `rsvg_get_file_path' can not be used when making a shared object
Last modified: 2012-07-08 21:56:46 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);
*** This bug has been marked as a duplicate of bug 677661 ***