Link problems with lib
- From: Rich Burridge <Rich Burridge Sun COM>
- To: gnome-libs-devel gnome org
- Subject: Link problems with lib
- Date: Tue, 18 Dec 2001 14:29:55 -0800 (PST)
Hi all,
(I'm not on this alias, so please reply directly. Thanks to cactus for
helping with this problem, and sending me here).
I am trying to build libgnomeui-1.108.0 which I downloaded from the
GNOME 2.0 beta1 download page:
ftp://ftp.gnome.org/pub/GNOME/pre-gnome2/releases/gnome-2.0-lib-beta1/
At build time I get:
...
gcc -g -O2 -o .libs/gnome_segv2 gnome_segv.o ./.libs/libgnomeui-2.so
-L/net/stard.eng/spare/GNOME2.0-dist/lib -L/usr/openwin/lib -L/usr/ucblib
-lsocket -lnsl -lnsl -lsocket -lnsl -lsocket -lnsl -lsocket -lnsl -lsocket
-lsocket -lnsl -lsocket -lnsl -lsocket -lnsl -lsocket -lnsl -lnsl -lsocket -lnsl
-lsocket -lnsl -lsocket -lnsl -lsocket -lsocket -lnsl -lsocket -lnsl
/net/stard.eng/spare/GNOME2.0-dist/lib/libbonoboui-2.so
/net/stard.eng/spare/GNOME2.0-dist/lib/libgnome-2.so -lsocket -lnsl -lnsl
-lsocket -lnsl -lsocket -lnsl -lsocket -lnsl -lsocket -lsocket -lnsl -lsocket
-lnsl -lsocket -lnsl -lsocket -lnsl -lnsl -lsocket -lnsl -lsocket -lnsl -lsocket
-lnsl -lsocket -lsocket -lnsl -lsocket -lnsl -lsocket -lnsl -lsocket -lnsl -lnsl
-lsocket -lnsl -lsocket -lnsl -lsocket -lnsl -lsocket -lsocket -lnsl -lsocket
-lnsl -lsocket -lnsl -lnsl -lsocket -lnsl -lsocket -lnsl -lsocket -lnsl -lsocket
-lsocket -lnsl -lsocket -lnsl -lsocket -lnsl
/net/stard.eng/spare/GNOME2.0-dist/lib/libgnomecanvas-2.so
/net/stard.eng/spare/GNOME2.0-dist/lib/libart_lgpl_2.so
/net/stard.eng/spare/GNOME2.0-dist/lib/libpangoft2.so
/net/stard.eng/spare/GNOME2.0-dist/lib/libfreetype.so
/net/stard.eng/spare/GNOME2.0-dist/lib/libgtk-x11-1.3.so
/net/stard.eng/spare/GNOME2.0-dist/lib/libgdk-x11-1.3.so -lXext
/net/stard.eng/spare/GNOME2.0-dist/lib/libgdk_pixbuf-1.3.so
/net/stard.eng/spare/GNOME2.0-dist/lib/libpangox.so -lX11
/net/stard.eng/spare/GNOME2.0-dist/lib/libpango.so
/net/stard.eng/spare/GNOME2.0-dist/lib/libatk.so -lnsl -lsocket
/net/stard.eng/spare/GNOME2.0-dist/lib/libgnomevfs-2.so
/net/stard.eng/spare/GNOME2.0-dist/lib/libbonobo-2.so
/net/stard.eng/spare/GNOME2.0-dist/lib/libORBitCosNaming-2.so -lsocket -lnsl
/net/stard.eng/spare/GNOME2.0-dist/lib/libgconf-2.so -lnsl -lsocket -lnsl
-lsocket -lnsl -lsocket -lnsl -lsocket -lsocket -lnsl -lsocket -lnsl -lsocket
-lnsl -lrt /net/stard.eng/spare/GNOME2.0-dist/lib/libbonobo-activation.so -lnsl
-lsocket /net/stard.eng/spare/GNOME2.0-dist/lib/libORBit-2.so -lnsl -lsocket
-lresolv /net/stard.eng/spare/GNOME2.0-dist/lib/liblinc.so -lnsl -lsocket
/net/stard.eng/spare/GNOME2.0-dist/lib/libgobject-1.3.so
/net/stard.eng/spare/GNOME2.0-dist/lib/libxml2.so -lm -lsocket -lnsl -lz
-lsocket -lnsl /net/stard.eng/spare/GNOME2.0-dist/lib/libgthread-1.3.so -lthread
/net/stard.eng/spare/GNOME2.0-dist/lib/libgmodule-1.3.so -ldl
/net/stard.eng/spare/GNOME2.0-dist/lib/libglib-1.3.so -lSM -lICE
/net/stard.eng/spare/GNOME2.0-dist/lib/libpopt.so
-R/net/stard.eng/spare/GNOME2.0-dist/lib -R/usr/openwin/lib -R/usr/ucblib
Undefined first referenced
symbol in file
program_invocation_name ./.libs/libgnomeui-2.so
program_invocation_short_name ./.libs/libgnomeui-2.so
ld: fatal: Symbol referencing errors. No output written to .libs/gnome_segv2
collect2: ld returned 1 exit status
gmake[3]: *** [gnome_segv2] Error 1
gmake[3]: Leaving directory
`/spare/GNOME2.0-beta1/libgnomeui-1.108.0/libgnomeui'
----
http://cvs.gnome.org/lxr/source/libgnomeui-2/libgnomeui/gnome-client.c#48
shows where the two externs for program_invocation_name and
program_invocation_short_name are.
In looking at .../libgnomeui-1.108.0/libgnomeui/ChangeLog, there is a comment:
2001-12-08 ERDI Gergo <cactus cactus rulez org>
* gnome-ui-init.c (libgnomeui_segv_handle):
* gnome-client.c (gnome_client_new_without_connection):
* gnome-app.c (gnome_app_class_init): use g_get_prgname () instead
of program_invocation_name
I removed the extern for program_invocation_name, and replaced it's
usage at line 1043 in gnome-client.c with g_get_progname(), and that
undefined symbol is now solved at link time, but what should be the
equivalent of program_invocation_short_name (used at line 2253).
Also, can somebody fix this problem at the HEAD?
Thanks.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]