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 312277 - librsvg doesn't compile
librsvg doesn't compile
Status: RESOLVED NOTABUG
Product: GARNOME
Classification: Deprecated
Component: general
unspecified
Other All
: Normal blocker
: ---
Assigned To: GARNOME Maintainers
garnome list
Depends on:
Blocks:
 
 
Reported: 2005-08-01 20:16 UTC by David Sedeño Fernández
Modified: 2005-10-21 18:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Sedeño Fernández 2005-08-01 20:16:11 UTC
Please describe the problem:
librsvg try to link with an existing pango library and fails due to missing calls:

cc -g -I/datos/garnome/include -O2 -pipe -Wl,--export-dynamic -o .libs/rsvg-view
rsvg_view-test-display.o -Wl,--export-dynamic -Wl,--rpath -Wl,/datos/garnome/lib
-Wl,--rpath -Wl,/datos/garnome/lib -Wl,--rpath -Wl,/datos/garnome/lib
-Wl,--export-dynamic  -L/datos/garnome/lib -L/usr/X11R6/lib
/usr/lib/libgnomeprintui-2-2.so /usr/lib/libgnomeprint-2-2.so
/usr/lib/libfreetype.so /usr/lib/libxml2.so /usr/lib/libgnomecanvas-2.so
/usr/lib/libart_lgpl_2.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgtk-x11-2.0.so
/usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so
/usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so
/usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so
/datos/garnome/lib/libgnomeprint-2-2.so /datos/garnome/lib/libgnomecanvas-2.so
/datos/garnome/lib/libgtk-x11-2.0.so /datos/garnome/lib/libatk-1.0.so
/datos/garnome/lib/libgdk-x11-2.0.so /datos/garnome/lib/libpangoxft-1.0.so
/datos/garnome/lib/libpangocairo-1.0.so /datos/garnome/lib/libpangox-1.0.so
/datos/garnome/lib/libcairo.so /datos/garnome/lib/libfontconfig.so
/datos/garnome/lib/libfreetype.so /usr/lib/libexpat.so
/datos/garnome/lib/libpixman.so /datos/garnome/lib/libXrender.so -lpng12 -lX11
-pthread ./.libs/librsvg-2.so /datos/garnome/lib/libgnomevfs-2.so -lssl -lcrypto
-lresolv -lrt /datos/garnome/lib/libbonobo-2.so /datos/garnome/lib/libgconf-2.so
/datos/garnome/lib/libbonobo-activation.so
/datos/garnome/lib/libORBitCosNaming-2.so /datos/garnome/lib/libORBit-2.so
/usr/lib/libpopt.so /datos/garnome/lib/libgthread-2.0.so
/datos/garnome/lib/libgsf-1.so -lbz2 /datos/garnome/lib/libcroco-0.6.so
/datos/garnome/lib/libgdk_pixbuf-2.0.so /datos/garnome/lib/libart_lgpl_2.so
/datos/garnome/lib/libxml2.so -lpthread -lz
/datos/garnome/lib/libpangoft2-1.0.so /datos/garnome/lib/libpango-1.0.so -lm
/datos/garnome/lib/libgobject-2.0.so /datos/garnome/lib/libgmodule-2.0.so -ldl
/datos/garnome/lib/libglib-2.0.so -Wl,--rpath -Wl,/datos/garnome/lib
/datos/garnome/lib/libpangocairo-1.0.so: undefined reference to
`pango_font_get_font_map'


Note in that line that first it's references the /usr/lib/ pango libs that the
one in /datos/garnome (my the target install dir for garnome).

Steps to reproduce:



Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Richard Schwarting 2005-08-01 20:54:00 UTC
This occurs on Slackware Linux, current, as well.  I would think this was a path
problem, except most everything else successfully builds. Such a problem also
exists with glib when compiling control-center from gnome-settings-daemon.
It believes the following are undefined:
    g_file_set_contents
    g_utf8_collate_key_for_filename
    g_get_host_name
    g_mapped_file_free
    g_mapped_file_new
    g_mapped_file_get_contents

Work arounds including replacing the /usr/lib version with a sym. link to the
~/garnome/lib version, or installing the newer version directly onto your
system.  I do not understand how the Makefiles are constructed that lead to
/usr/lib references.
Comment 2 Bob Kashani 2005-09-17 02:10:24 UTC
Is this a x86_64 machine that you are building on?
Comment 3 Bob Kashani 2005-09-17 02:51:25 UTC
Ok, scratch comment #2.

What version of garnome is this? Does this happen with garnome-2.12.0?
Comment 4 Bob Kashani 2005-09-19 22:22:25 UTC
It looks like /usr/lib is being called before $GARNOME/lib which usually means
that there is a libtool problem. Usually when you get undefined reference it
means that you're compiling against the wrong version of a lib (in this case
your system installed lib).

Try adding this line to desktop/librsvg/Makefile right before the
CONFIGURE_SCRIPTS line.

FIXUP_SCRIPTS = $(WORKSRC)/libtool

Then rebuild librsvg by running (make clean; make install) in desktop/librsvg.

Does this help?