Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
09-15-2007, 04:09 AM
#1
LQ Newbie
Registered: Jun 2007
Posts: 3
Rep:
AvP2 linux gameserver problems
Hello people,
For some time now I'm trying to set up an "Alien vs Predator 2" (AvP2) game server on Linux.
Usually with some research I can overcome most problems. But getting this gameserver to run leaves me puzzled.
About my linux box:
Trustix Secure Linux. Kernel-relase: 2.6.13.4-1tr
Code:
rick@TSL1 /home/avp2$ uname -a
Linux TSL1.rbetting.demon.nl 2.6.13.4-1tr #7 SMP Fri Nov 11 21:27:22 CET 2005 i686 i686 i386 GNU/Linux
The AvP2 linux binary can be found here:
http://aliensvspredator2.filefront.c...d_Server;33379
When I start the binary it displays the next error:
Code:
./avp2linux: relocation error: ./avp2linux: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
With some googling I found
LD_ASSUME_KERNEL=2.4.1 would solve that.
Code:
#!/bin/bash
export LD_ASSUME_KERNEL=2.4.1
./avp2linux od.cfg
Code:
./avp2linux: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
But libpthread.so.0 is available. It is in /lib/ and it links to 'libpthread-0.10.so'.
libpthread-0.10.so is also in /lib/
Also tried to start it like:
/lib/ld-linux.so.2 --library-path /lib /home/avp2/avp2linux od.cfg
But it keeps displaying the next error,
Code:
/home/avp2/avp2linux: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
I hope someone can shed some light on this problem.
Thank you,
Rick.
09-17-2007, 07:59 AM
#2
LQ Newbie
Registered: Jun 2007
Posts: 3
Original Poster
Rep:
When having problems with files in Win32 I often use filemon.
Google showed it can be done in Linux with
strace
Code:
#!/bin/bash
export LD_ASSUME_KERNEL=2.4.1
strace -f -e trace=open,close,read,write /home/avp2/avp2linux od.cfg
This won't run because strace won't run with
LD_ASSUME_KERNEL=2.4.1
Splitted it into two shell scripts:
starttest.sh
Code:
#!/bin/bash
strace -f -e trace=open,close,read,write ./starttest2.sh
starttest.sh
Code:
#!/bin/bash
export LD_ASSUME_KERNEL=2.4.1
/home/avp2/avp2linux od.cfg
This gave the next output:
Code:
open("/etc/ld.so.cache", O_RDONLY) = 3
close(3) = 0
open("/lib/libtermcap.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\20"..., 512) = 512
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\r\0\000"..., 512) = 512
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@T\1\000"..., 512) = 512
close(3) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "l2\233\350\213{\334\326\5[7\344\376\276\\\3032\371\377"..., 32) = 32
close(3) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "\215w\246\261A\22\203| )\227\2160\16W:\312\300\207c\221"..., 32) = 32
close(3) = 0
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
close(3) = 0
open("/etc/mtab", O_RDONLY) = 3
read(3, "/dev/hda2 / ext3 rw 0 0\nnone /pr"..., 4096) = 141
close(3) = 0
open("/proc/meminfo", O_RDONLY) = 3
read(3, "MemTotal: 515612 kB\nMemFre"..., 1024) = 670
close(3) = 0
open("/home/users/rick/.bashrc", O_RDONLY|O_LARGEFILE) = 3
read(3, "# .bashrc\n\n# User specific alias"..., 124) = 124
close(3) = 0
open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 3
read(3, "65536\n", 31) = 6
close(3) = 0
open("/etc/bashrc", O_RDONLY|O_LARGEFILE) = 3
read(3, "# /etc/bashrc\n\n# System wide fun"..., 434) = 434
close(3) = 0
open("./starttest2.sh", O_RDONLY|O_LARGEFILE) = 3
read(3, "#!/bin/bash\nexport LD_ASSUME_KER"..., 80) = 70
close(3) = 0
read(255, "#!/bin/bash\nexport LD_ASSUME_KER"..., 70) = 70
Process 19559 attached
Process 19558 suspended
[pid 19559] close(255) = 0
[pid 19559] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid 19559] close(3) = 0
[pid 19559] open("/lib/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/lib/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/lib/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
[pid 19559] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360K\0"..., 512) = 512
[pid 19559] close(3) = 0
[pid 19559] open("/lib/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/lib/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/lib/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/lib/libpthread.so.0", O_RDONLY) = 3
[pid 19559] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220C\0"..., 512) = 512
[pid 19559] close(3) = 0
[pid 19559] open("/usr/lib/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/usr/lib/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/usr/lib/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/usr/lib/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/usr/lib/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/usr/lib/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/usr/lib/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 19559] open("/usr/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
/home/avp2/avp2linux: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
Process 19558 resumed
Process 19559 detached
--- SIGCHLD (Child exited) @ 0 (0) ---
read(255, "", 70) = 0
It looks like
/lib/libpthread.so.0 is looking for a
libpthread.so.0 in
/usr/lib/ .
Now I need to find out why
libpthread.so.0 isn't in
/usr/lib/ .
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 12:35 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News