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!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?iso-8859-1?q?M=E5ns_Rullg=E5rd?= Newsgroups: comp.os.linux.alpha Subject: Re: Error msg with Compaq C and -Bstatic Date: Sun, 16 Oct 2005 15:21:10 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: individual.net qKPSVpAAkkBw7pAy7c4h+gCVwD00flGrBJ/0tp6nJHJMYxktRP User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.15 (Security Through Obscurity, linux) Cancel-Lock: sha1:NyUSTn+nquTHeb7OkQrVfQ4kjCw= Xref: g2news1.google.com comp.os.linux.alpha:510 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. -- M�ns Rullg�rd mru@inprovide.com