Help!

Error msg with Compaq C and -Bstatic


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Digital Alpha RSS
Next:  Connecting to my home computer from internet  
Author Message
DiskMan
External


Since: Jan 26, 2005
Posts: 62



PostPosted: Sat Oct 15, 2005 11:55 am    Post subject: Error msg with Compaq C and -Bstatic
Archived from groups: comp>os>linux>alpha (more info?)

Here's an error I've never seen before using Compaq C + -Bstatic... any
ideas, tips, hints, or ideas?:

ccc: Error: can't find or exec:
/usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/bin/lnxccstatic

I've looked high and low for this file and its no where on any of my drives,
nor is it included in several different versions of Compaq C... Will L G
Back to top
Måns_Rullgård
External


Since: Jul 29, 2004
Posts: 951



PostPosted: Sat Oct 15, 2005 12:55 pm    Post subject: Re: Error msg with Compaq C and -Bstatic [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

" DiskMan" <nobody.DeleteThis@thewheel.com> writes:

> Here's an error I've never seen before using Compaq C + -Bstatic... any
> ideas, tips, hints, or ideas?:
>
> ccc: Error: can't find or exec:
> /usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/bin/lnxccstatic
>
> I've looked high and low for this file and its no where on any of my drives,
> nor is it included in several different versions of Compaq C... Will L G

The explanation is right there in the man page:

-Bstring
Specifies a suffix to add to the normal names of any components
specified with the -t option. If string is omitted, the usual com-
ponent names are used.

In the following example, the -t, -h, and -B options specify that the
lnxcc component to be invoked by the ccc driver is located in
/usr/projects and has the name lnxcc.debugging:

% ccc -tf -h/usr/projects -B.debugging prog1.c

Why are you passing -Bstatic in the first place?

--
Måns Rullgård
mru.DeleteThis@inprovide.com
Back to top
DiskMan
External


Since: Oct 11, 2005
Posts: 20



PostPosted: Sat Oct 15, 2005 6:55 pm    Post subject: Re: Error msg with Compaq C and -Bstatic [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sat, 15 Oct 2005 17:15:17 +0100, Måns Rullgård wrote:

> " DiskMan" <nobody RemoveThis @thewheel.com> writes:
>
>> Here's an error I've never seen before using Compaq C + -Bstatic... any
>> ideas, tips, hints, or ideas?:
>>
>> ccc: Error: can't find or exec:
>> /usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/bin/lnxccstatic
>>
>> I've looked high and low for this file and its no where on any of my drives,
>> nor is it included in several different versions of Compaq C... Will L G
>
> The explanation is right there in the man page:
>
> -Bstring
> Specifies a suffix to add to the normal names of any components
> specified with the -t option. If string is omitted, the usual com-
> ponent names are used.
>
> In the following example, the -t, -h, and -B options specify that the
> lnxcc component to be invoked by the ccc driver is located in
> /usr/projects and has the name lnxcc.debugging:
>
> % ccc -tf -h/usr/projects -B.debugging prog1.c
>
> Why are you passing -Bstatic in the first place?

Well I erroneously thought it would create static binaries.... Which is
what I was trying to do, static binaries and static libs... Guess I
thought wrong... Thanks for clearing that up for me. I did try the old
-static flag and the -Wl,--static but for some reason the build dies on my
complaining about how '-static' can't be used with '-shared' when it
starts building shared objects [*.so].

The reason I was going through all this was this... I build
GTK/GLIB/Pango/ATK using Compaq C for faster speed and the like.
Everything built fine but for some reason, a couple of smaller programs
balk about missing symbols... The symbols are there, just in a different
location [?] than previous build using GCC. So I rebuilt GTK with -fpic
hoping that would correct the issue and allow the correct symbols to
be found.

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'

Will L G

PS Oh, I'm using Pango compiled with Compaq C, using GTK compiled with
CCC, and it works fine as you can notice... It just seems that this one
program is the one acting up...
Back to top
Måns_Rullgård
External


Since: Jul 29, 2004
Posts: 951



PostPosted: Sat Oct 15, 2005 8:55 pm    Post subject: Re: Error msg with Compaq C and -Bstatic [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

DiskMan <nobody.TakeThisOut@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.

--
Måns Rullgård
mru.TakeThisOut@inprovide.com
Back to top
DiskMan
External


Since: Oct 11, 2005
Posts: 20



PostPosted: Sun Oct 16, 2005 10:55 am    Post subject: Re: Error msg with Compaq C and -Bstatic [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 16 Oct 2005 01:09:56 +0100, Måns Rullgård wrote:

> DiskMan <nobody RemoveThis @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:
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

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.?
Back to top
Måns_Rullgård
External


Since: Jul 29, 2004
Posts: 951



PostPosted: Sun Oct 16, 2005 10:55 am    Post subject: Re: Error msg with Compaq C and -Bstatic [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

DiskMan <nobody RemoveThis @thewheel.com> writes:

> On Sun, 16 Oct 2005 01:09:56 +0100, Måns Rullgård wrote:
>
>> DiskMan <nobody RemoveThis @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.

--
Måns Rullgård
mru RemoveThis @inprovide.com
Back to top
Kaj-Michael Lang
External


Since: Oct 17, 2005
Posts: 1



PostPosted: Mon Oct 17, 2005 6:55 am    Post subject: Re: Error msg with Compaq C and -Bstatic [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 16 Oct 2005 13:33:09 +0000, DiskMan wrote:

> 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

Might be a good idea to try without ccache in case it does something
stupid.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Digital Alpha All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum