From: DiskMan <nobody@thewheel.com>
Subject: Re: Error msg with Compaq C and -Bstatic
Date: Sun, 16 Oct 2005 14:35:04 GMT [thread overview]
Message-ID: <pan.2005.10.16.14.35.00.716763@thewheel.com> (raw)
In-Reply-To: yw1xll0tk0fd.fsf@ford.inprovide.com
On Sun, 16 Oct 2005 15:21:10 +0100, M�ns Rullg�rd wrote:
> DiskMan <nobody@thewheel.com> writes:
>
>> On Sun, 16 Oct 2005 01:09:56 +0100, M�ns Rullg�rd wrote:
>>
>>> DiskMan <nobody@thewheel.com> writes:
>>>
>>>> The error I was getting was the following [xfwm4-4.2.1: during build
>>>> time]:
>>>> /usr/lib/libxfcegui4.so: undefined reference to
>>>> `gdk_spawn_on_screen_with_pipes' /usr/lib/libxfcegui4.so: undefined
>>>> reference to `gdk_spawn_on_screen' /usr/lib/libxfcegui4.so: undefined
>>>> reference to `gdk_spawn_command_line_on_screen'
>>>
>>> Is libxfcegui4.so linked against libgdk? Perhaps adding -lgdk to the
>>> link command would help.
>>
>> Well actually the file in question, and I checked using /usr/bin/nm, is
>> libgtdk-x11-2.0.so... The actual command is:
>
> You mean libgdk-x11-2.0.so, right? That's where those symbols are
> defined on my (x86) system.
>
>> ccache ccc -O5 -arch ev56 -fast -mieee -std -w -pipe -I/usr/X11R6/include
>> -D_BSD_SOURCE -o xfwm4 xfwm4-client.o xfwm4-compositor.o xfwm4-display.o
>> xfwm4-events.o xfwm4-focus.o xfwm4-frame.o xfwm4-hints.o xfwm4-icons.o
>> xfwm4-keyboard.o xfwm4-main.o xfwm4-menu.o xfwm4-misc.o xfwm4-mypixmap.o
>> xfwm4-mywindow.o xfwm4-netwm.o xfwm4-parserc.o xfwm4-placement.o
>> xfwm4-poswin.o xfwm4-screen.o xfwm4-session.o xfwm4-settings.o
>> xfwm4-spinning_cursor.o xfwm4-stacking.o xfwm4-startup_notification.o
>> xfwm4-tabwin.o xfwm4-transients.o xfwm4-workspaces.o xfwm4-wireframe.o
>> -L/usr/X11R6/lib -lXext /usr/lib/libxfce4mcs-client.so
>> /usr/lib/libxfcegui4.so /usr/lib/libgtk-x11-2.0.so
>> /usr/lib/libxfce4util.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/libpangoft2-1.0.so
>> /usr/lib/libpango-1.0.so -lm /usr/lib/libgobject-2.0.so
>> /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lXpm
>> /usr/lib/libstartup-notification-1.so -lSM -lICE -lX11 -lXrandr -lXrender
>> /usr/lib/libxfcegui4.so: undefined reference to
>> `gdk_spawn_on_screen_with_pipes' /usr/lib/libxfcegui4.so: undefined
>> reference to `gdk_spawn_on_screen' /usr/lib/libxfcegui4.so: undefined
>> reference to `gdk_spawn_command_line_on_screen' collect2: ld returned 1
>> exit status
>
> Hmm... the library is listed on the command line all right.
>
> Are those symbols properly defined in that library? On my machine, I
> get this from readelf -a /usr/lib/libgdk-x11-2.0.so | grep gdk_spawn:
>
> 706: 0004a14f 219 FUNC GLOBAL DEFAULT 10 gdk_spawn_on_screen_with_
> 788: 0004a08c 195 FUNC GLOBAL DEFAULT 10 gdk_spawn_on_screen
> 987: 0004a22a 225 FUNC GLOBAL DEFAULT 10 gdk_spawn_command_line_on
>
> What does yours say?
>
>> One while thing about this is, it only happens when GTK is built using
>> Compaq C and not built with GCC. I've tried linking the *.so in
>> libxfcegui4 with it and I've tried building libxfcegui4 static, neither
>> has worked. I've even gone so far as to try go build xfwm4 static...any
>> ideas, tips, tweaks, etc.?
>
> Try linking with gcc instead of ccc. It shouldn't have any effect on
> performance.
Mine says the following:
[willi@jericho xfwm4-4.2.1]$ readelf -a /usr/lib/libgdk-x11-2.0.so.0.400.3 |grep gdk_spawn_on_screen
0000000ab418 02f30000001a R_ALPHA_JMP_SLOT 0000000000074df0 gdk_spawn_on_screen + 0
685: 0000000000074f60 372 FUNC GLOBAL DEFAULT 9 gdk_spawn_on_screen_with_
755: 0000000000074df0 356 FUNC GLOBAL DEFAULT 9
gdk_spawn_on_screen 942: 00000000000750e0 332 FUNC GLOBAL DEFAULT
9 gdk_spawn_command_line_on
I just noticed something, /usr/lib/libgdk-x11-2.0.so is linked to
libgdk-x11-2.0.so.0.600.10... libgdk-x11-2.0.so.0.400.3 is the one with
the correct symbols... I'll give it one more shot and then try it with gcc
and see what happens.... Thanks, Will L G
next prev parent reply other threads:[~2005-10-16 14:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-15 14:47 Error msg with Compaq C and -Bstatic DiskMan
2005-10-15 16:15 ` Måns Rullgård
2005-10-15 22:12 ` DiskMan
2005-10-16 0:09 ` Måns Rullgård
2005-10-16 13:33 ` DiskMan
2005-10-16 14:21 ` Måns Rullgård
2005-10-16 14:35 ` DiskMan [this message]
2005-10-16 15:12 ` Måns Rullgård
2005-10-16 21:47 ` DiskMan
2005-10-17 9:35 ` Kaj-Michael Lang
2005-10-17 21:18 ` DiskMan
2005-10-17 23:12 ` Måns Rullgård
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox