On Wednesday 30 May 2007, Larry Finger wrote:
> Frank Mehnert wrote:
> > What is the content of your /etc/ld.so.conf? The file should contain
> > /usr/lib.
>
> It does.
>
> > Please try to compile the file foo.c
> >
> >   int main(void) { return 0; }
> >
> > with
> >
> >   gcc -m32 -o foo foo.c -lXt
>
> This worked.
>
> > This should work, does it? If not, please post the output of
> >
> >   gcc -m32 -o foo foo.c -lXt -Wl,--verbose
>
> Although the compilation worked, the verbose output gave me the clue to fix
> the problem. The first place the linker looked for libXt was in
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/32/. By making a link there for
> libXt.so that pointed to /usr/lib/libXt.so.6.0.0, it worked. I also had the
> same problem with libX11, but I have now built svn revision 2925.
>
> Many thanks for your help.

Though it solved your problem this is probably not the right fix. When linking
foo.c on OpenSUSE/AMD64 I see the following lines:

attempt to open /usr/lib64/gcc/x86_64-suse-linux/4.1.2/32/libXt.so failed
attempt to open /usr/lib64/gcc/x86_64-suse-linux/4.1.2/32/libXt.a failed
attempt to 
open 
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/lib/../lib/libXt.so
 
failed
attempt to 
open 
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/lib/../lib/libXt.a
 
failed
attempt to 
open /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib/libXt.so 
succeeded
-lXt (/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib/libXt.so)

So libXt.so is first searched in the 64-bit locations here, too. But later,
libXt.so is found in /usr/lib which was intended. I'm really curious why do
you have to manually install this link.

Kind regards,

Frank
-- 
## InnoTek Systemberatung GmbH, http://www.innotek.de ##

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to