From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 111c93,65ad175b1d2a9009 X-Google-Attributes: gid111c93,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!24.30.200.11!news-east.rr.com!news.rr.com!news-server.columbus.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!tornado.rdc-kc.rr.com.POSTED!53ab2750!not-for-mail From: DiskMan Subject: Re: Error msg with Compaq C and -Bstatic User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-Id: Newsgroups: comp.os.linux.alpha References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Sun, 16 Oct 2005 14:35:04 GMT NNTP-Posting-Host: 65.28.70.117 X-Complaints-To: abuse@rr.com X-Trace: tornado.rdc-kc.rr.com 1129473304 65.28.70.117 (Sun, 16 Oct 2005 09:35:04 CDT) NNTP-Posting-Date: Sun, 16 Oct 2005 09:35:04 CDT Organization: Road Runner High Speed Online http://www.rr.com Xref: g2news1.google.com comp.os.linux.alpha:511 On Sun, 16 Oct 2005 15:21:10 +0100, M�ns Rullg�rd wrote: > DiskMan writes: > >> On Sun, 16 Oct 2005 01:09:56 +0100, M�ns Rullg�rd wrote: >> >>> DiskMan 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