Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115387 - teamspeak doesnt start, bash says it doesnt see the file
Summary: teamspeak doesnt start, bash says it doesnt see the file
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 00:47 UTC by Flo
Modified: 2005-12-18 04:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Flo 2005-12-13 00:47:14 UTC
I emerged teamspeak2-server-bin on an AMD64 system. I am aware of the fact i
have to enable emulation for 32-bit applications in the kernel and also emerged
the necessary emulation libraries, but the problem here seems to be from another
origin since the file doesnt seem to exist when starting...?

base teamspeak2-server # ./server_linux
bash: ./server_linux: No such file or directory
base teamspeak2-server # /etc/init.d/teamspeak2-server start
 * Starting TeamSpeak Server ...                                               
                                                                        [ !! ]
base teamspeak2-server # ls -la
total 1336
drwxr-xr-x  6 root       root   4096 Dec 12 13:43 .
drwxr-xr-x  5 root       root   4096 Dec 11 20:25 ..
-rw-r--r--  1 teamspeak2 root      0 Dec 12 13:43 bad_names.txt
drwxr-xr-x  4 root       root   4096 Dec 12 13:43 http
-rwxr-xr-x  1 root       root 131736 Dec 12 13:43 libsqlmy.so
drwxr-xr-x  2 root       root   4096 Dec 12 13:43 mysql_sql
-rwxr-xr-x  1 root       root 941448 Dec 12 14:32 server_linux
drwxr-xr-x  2 root       root   4096 Dec 12 13:43 sql
-rwxr-xr-x  1 root       root 251888 Dec 12 13:43 sqlite.so
lrwxrwxrwx  1 root       root      3 Dec 12 13:43 sqlite_sql -> sql
drwxr-xr-x  2 root       root   4096 Dec 12 13:43 tcpquerydocs


Reproducible: Always
Steps to Reproduce:
1. emerge teamspeak2-server-bin on a AMD64
2. enable emulation for 32bit apps in the kernel
3. emerge emul-linux-x86-base-/media-/soundlibs and -compat
4. start teamspeak via init script or directly in the directory

Actual Results:  
The application failed to start.

Expected Results:  
Successful start or application startup failure message.

Portage 2.0.51.22-r3 (hardened/amd64, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14-hardened-r1 x86_64)
=================================================================
System uname: 2.6.14-hardened-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2 -fomit-frame-pointer -fforce-addr"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O2 -fomit-frame-pointer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/
ftp://pandemonium.tiscali.de/pub/gentoo/
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 acl acpi bcmath berkdb bzip2 calendar cgi cli crypt ctype dba erandom
exif expat fastcgi force-cgi-redirect ftp gd geoip gif glibc-omitfp gmp hardened
hardenedphp iconv imap ipv6 ithreads jpeg justify logrotate maildir memlimit
mhash mpm-worker mysql mysqli ncurses nls no-htdocs nocd nptl nptlonly pam pcntl
pcre perl php pic png posix python readline session spamassassin spl ssl symlink
sysvipc tcpd threads tiff tokenizer truetype udev unicode urandom userlocales
utf8 vhosts wddx xml xml2 xmlrpc xsl zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 John Rico 2005-12-13 13:11:21 UTC
Have you tried `linux32 server_linux` ?  I only run the client, but I'll give
the server a shot tonight and see what's up.  I'm also amd64 arch.
Comment 2 Flo 2005-12-13 15:27:20 UTC
It returns:

base teamspeak2-server # linux32 server_linux
Cannot execute server_linux: No such file or directory

Am i going right in the assumption that ld-linux.so.2 is required to start that
exacutable ? Because this can be nowhere found on my system. I thought it would
be emerged with the emul-linux-x86-* packages (especially -glibc).
Comment 3 Andreas Arens 2005-12-15 00:03:46 UTC
You are sure you did enable ia32 emulation, install, and boot that kernel?
You write so, but...

The next thing to test is 'ldd server_linux' - it should output this:
root@ale teamspeak2-server # ldd server_linux
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib32/libpthread.so.0 (0x5559b000)
        libdl.so.2 => /lib32/libdl.so.2 (0x555ad000)
        libc.so.6 => /lib32/libc.so.6 (0x555b1000)
        /lib/ld-linux.so.2 (0x55555000)

if it reports missing libs, install them. (make sure sqlite.so is in your
teamspeak dir also)

You can check whether this could be a library/dynamic linker prob by trying to
compile and execute a static binary:

gcc -m32 -static hello_world.c (up to you the write the prog :)

./a.out

if that works, well then it's a missing lib/linker problem.


Comment 4 Flo 2005-12-15 01:19:59 UTC
Hello John

i guess it is all about missing libraries. Here you have the output of the steps
you told me to perform.

base ~ # gcc -m32 -static hello_world.c
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/./libgcc.a when
searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/libgcc.a when
searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/./libgcc.a when
searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/libgcc.a when
searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lgcc
collect2: ld returned 1 exit status

base teamspeak2-server # ldd server_linux
/usr/bin/ldd: line 167: /lib/ld-linux.so.2: No such file or directory
ldd: /lib/ld-linux.so.2 exited with unknown exit code (127)
base teamspeak2-server # locate libpthread.so.0
/lib64/libpthread.so.0
base teamspeak2-server # locate linux-gate.so.1
base teamspeak2-server # locate libdl.so.2
/lib64/libdl.so.2
base teamspeak2-server # locate libc.so.6
/lib64/libc.so.6
base teamspeak2-server # locate ld-linux.so.2
base teamspeak2-server #

As you can see, the libraries which are needed are only available as 64bit
libraries, furthermore two of them are missing completly. I thought those
libraries would be emerged with the emulation packages and would be linked in /lib

Since this is not the case how can i fix that ? The kernel has IA32 emulation
enabled.
Comment 5 Flo 2005-12-15 01:22:06 UTC
I meant Hello Andreas :-)
Comment 6 Flo 2005-12-18 04:17:59 UTC
Misunderstanding :-)