DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th November 2008
phreud phreud is offline
Port Guard
 
Join Date: Nov 2008
Posts: 22
Thanked 0 Times in 0 Posts
Default Problem loading (the correct) libX11.so.6

Hey all,

my first post here, and my first stab at BSD actually.

I've just installed FreeBSD 7.0 onto a box I'm planning to use as a game server. Everything went fine during install. I chose a pretty clean setup, but included X since I knew my game server needed some libraries from it. I also included support for linux binaries.

Now to my problem: I installed an Unreal Torunament server and when I tried to fire it up I got this error message:

Code:
error while loading shared libraries: /usr/local/lib/libX11.so.6: ELF file OS ABI invalid
After some looking around on the Internet I found out it seems to be loading the libX11.so.6 file located in /usr/local/lib instead of /usr/compat/linux/usr/X11R6/lib/libX11.so.6. Since I'm not using X, I just replaced the file in /usr/local/lib:

Code:
mv /usr/local/lib/libX11.so.6 /usr/local/lib/libX11.so.6.old
cp /usr/compat/linux/usr/X11R6/lib/libX11.so.6 /usr/local/lib/
That solved the problem. I then got the same error for libXext.so.6, so I did the same thing once more:

Code:
mv /usr/local/lib/libXext.so.6 /usr/local/lib/libXext.so.6.old
cp /usr/compat/linux/usr/X11R6/lib/libXext.so.6 /usr/local/lib/
After that everything works fine and the server started with no errors. Since this is not a "pretty" solution, I thought I'd ask for some help here. Is there any other way of letting the server know which file to use? After all, I'll never know when I'll be needing that original file in /usr/local/lib/.

Thanks in advance!
Reply With Quote
  #2   (View Single Post)  
Old 7th November 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Thanked 3 Times in 3 Posts
Default

I would suggest restoring those libraries back to their original and try and force your application to use the Linux Libraries instead. Have you looked at the command 'brandelf'? This allows you to force an application to use the Linux libraries instead.
# brandelf -t Linux <Unreal Torunament server binary>

Also there is a native unreal tournament server for FreeBSD which maybe worth checking out, you can install that with the following command:
# pkg_add -r utserver
Reply With Quote
  #3   (View Single Post)  
Old 7th November 2008
phreud phreud is offline
Port Guard
 
Join Date: Nov 2008
Posts: 22
Thanked 0 Times in 0 Posts
Default

Thanks for your suggestions. I wasn't aware of any of them. I'll check out brandelf first, and if that doesn't work I'll try the package.
Reply With Quote
  #4   (View Single Post)  
Old 10th November 2008
phreud phreud is offline
Port Guard
 
Join Date: Nov 2008
Posts: 22
Thanked 0 Times in 0 Posts
Default

Just wanted to let you know it's up and running now. I eventually installed from ports since I couldn't find the package in the 7.0 release (it appears in 6.x and 7.1).

Thanks for your help!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot problem. Geometry problem? gulanito FreeBSD Installation and Upgrading 0 3rd July 2009 03:03 AM
link_elf error while loading gspca.ko kasse FreeBSD General 3 11th September 2008 08:22 AM
Tightvnc startup script not loading fonts - permission denied master-richie FreeBSD Ports and Packages 2 3rd August 2008 09:29 PM


All times are GMT. The time now is 12:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick