LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 09-15-2007, 04:09 AM   #1
OD-Pwcca
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Rep: Reputation: 0
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.
 
Old 09-17-2007, 07:59 AM   #2
OD-Pwcca
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Original Poster
Rep: Reputation: 0
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/.
 
  


Reply

Tags
game, server, software


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
muonline gameserver shorun Linux - Games 3 03-10-2006 07:26 AM
Linux GameServer: Cube aajvs99 Linux - General 3 08-10-2005 03:15 PM
Gameserver NYfanrules Linux - Newbie 5 07-24-2005 03:39 PM
avp2 server error jr206 Linux - Games 1 05-30-2005 09:50 PM
Gameserver for Lbreakout deleric Linux - Games 0 03-06-2004 09:40 AM


All times are GMT -5. The time now is 12:35 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration