Frank Mehnert wrote:
> 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.
After removing my two new links, I rebuilt foo with the verbose switch. The
info regarding the
search for libXt is shown below:
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)
To my eye, it looks just like yours and it works with the foo test, but not
with VirtualBox.
The contents of my /etc//ld.so.conf is:
/usr/X11R6/lib64/Xaw3d
/usr/X11R6/lib64
/usr/lib64/Xaw3d
/usr/X11R6/lib/Xaw3d
/usr/X11R6/lib
/usr/lib/Xaw3d
/usr/x86_64-suse-linux/lib
/usr/local/lib
/opt/kde3/lib
/opt/gnome/lib
/lib64
/lib
/usr/lib64
/usr/lib
/usr/local/lib64
/opt/kde3/lib64
/opt/gnome/lib64
include /etc/ld.so.conf.d/*.conf
The directory /etc/ld.so.conf.d does not contain any files.
Larry
_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users