Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
32Bit Anwendung (CoD2) funktioniert plötzlich auf 64Bit nich
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
KaterGonzo
Apprentice
Apprentice


Joined: 01 Apr 2004
Posts: 155

PostPosted: Thu May 21, 2009 4:33 pm    Post subject: 32Bit Anwendung (CoD2) funktioniert plötzlich auf 64Bit nich Reply with quote

Hallo,

ich habe vor ca. 2-3 Jahren ein Gentoo 64-Bit Root-Server für jemanden aufgesetzt. Da es Call Of Duty 2 nur als 32 Bit gibt, hat er damals die 32 Bit Binaries installliert, was funktionierte. Seit dem letzten emerge -uND world starten die Dienste plötzlich nicht mehr. Fehlermeldung:

Quote:
# ./cod2_lnxded
bash: ./cod2_lnxded: No such file or directory


Die Dateien sind definitiv physikalisch vorhanden, also sucht er wahrscheinlich nach den 32-Bit Libraries, welche "plötzlich" nicht mehr da zu sein scheinen. Ich habe mir schon die Gentoo 32Bit Chroot-Anleitung durchgelesen und ausprobiert, finde diese Lösung aber irgendwie nicht ganz so toll (komischer Gedanke, zwei Systeme in einem...). Außerdem gab es dort auch Fehlermeldung beim Starten (# ./cod2_lnxded ./cod2_lnxded: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory)

Woran kann das liegen, dass es auf einmal nicht mehr funktioniert? Was konnte durch das letzte Update geändert worden sein? Wie kann ich das Problem lösen? Oder doch lieber eine 32 Bit Installation durchführen?

Hier ein paar Infos:

Quote:
# emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.22-gentoo-r9 x86_64)
=================================================================
System uname: Linux-2.6.22-gentoo-r9-x86_64-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.2.5
Timestamp of tree: Sat, 16 May 2009 02:05:01 +0000
app-shells/bash: 3.2_p39
dev-lang/python: 2.4.3-r4, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.63
sys-devel/automake: 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="x86 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.gentoo.mesh-solutions.com/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo/ http://gentoo.intergenia.de http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats--timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi apache2 berkdb bzip2 cdr cli cracklib crypt ctype dri dvd fortran freetype gd gdbm gif gpm iconv ipv6 isdnlog jpeg latin1 lzw midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php png pppd python readline reflection samba session spl ssl sysfs tcpd tiff truetype truetype2 unicode x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Quote:
# uname -a
Linux srv-001 2.6.22-gentoo-r9 #2 SMP Sun Dec 2 12:29:09 GMT 2007 x86_64 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux


Danke im voraus!!!


Last edited by KaterGonzo on Thu May 21, 2009 6:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5172

PostPosted: Thu May 21, 2009 4:39 pm    Post subject: Re: 32Bit Anwendung (CoD2) funktioniert plötzlich auf 64Bit Reply with quote

schmidtsmikey wrote:
Quote:
# ./cod2_lnxded
bash: ./cod2_lnxded: No such file or directory

laut dieser Fehlermeldung findet er die datei cod2_lnxded nicht. Würde eine lib fehlen wäre die Fehlermeldung eine andere.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
KaterGonzo
Apprentice
Apprentice


Joined: 01 Apr 2004
Posts: 155

PostPosted: Thu May 21, 2009 5:12 pm    Post subject: Reply with quote

Diese Datei existiert aber, definitiv. Habe Sie sogar vom Original nochmals in den Pfad hinkopiert.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4543
Location: Germany

PostPosted: Thu May 21, 2009 5:50 pm    Post subject: Reply with quote

Hm.., irgendwie passt da laut deiner "emerge --info" Ausgabe einiges nicht zusammen

Einerseits
2.6.22-gentoo-r9 x86_64)
also ein 64 Bit System
aber mit
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
=32 Bit
??
Oder bring ich hier jetzt was durcheinander?
Back to top
View user's profile Send private message
KaterGonzo
Apprentice
Apprentice


Joined: 01 Apr 2004
Posts: 155

PostPosted: Thu May 21, 2009 6:02 pm    Post subject: Reply with quote

Hmm...ich weiß nicht, was ich da oben gepostet habe, aber habe nochmal emerge --info ausgeführt und den obigen Post korrigiert.
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5172

PostPosted: Thu May 21, 2009 6:24 pm    Post subject: Reply with quote

schmidtsmikey wrote:
Diese Datei existiert aber, definitiv. Habe Sie sogar vom Original nochmals in den Pfad hinkopiert.

da sagt die Fehlermeldung etwas anders ;). Bist du dir sicher, dass du dich nicht verschrieben hast oder dich im richtigen Verzeichnis befindest?
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
KaterGonzo
Apprentice
Apprentice


Joined: 01 Apr 2004
Posts: 155

PostPosted: Thu May 21, 2009 6:37 pm    Post subject: Reply with quote

ja, ich bin mir sicher. Siehe folgendes:

Quote:
# cd /home/rd/gameserver/COD2b/
srv COD2b # ls -l
total 9010
-rwxrwxr-x 1 thorn admin 6450 Jun 15 2006 README.linux
drwxrwxr-x 11 thorn admin 1016 Mar 26 18:09 awe34-rd
-rwxrwxr-x 1 thorn admin 1318204 Jun 23 2006 cod2_lnxded
-rwxrwxr-x 1 thorn admin 1318204 Jun 23 2006 cod2_lnxded_old
-rwxrwxr-x 1 thorn admin 627675 Nov 26 2003 libgcc_s.so
-rwxrwxr-x 1 thorn admin 161974 Jun 21 2005 libgcc_s.so.1
-rwxrwxr-x 1 thorn admin 2886540 Nov 26 2003 libstdc++.so
-rwxrwxr-x 1 thorn admin 2886540 Nov 26 2003 libstdc++.so.5.0.3
drwxrwxr-x 2 thorn admin 1360 Mar 26 18:08 main
drwxrwxr-x 6 thorn admin 544 Dec 4 2006 pb
srv COD2b # ./cod2_lnxded
bash: ./cod2_lnxded: No such file or directory
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Thu May 21, 2009 7:34 pm    Post subject: Reply with quote

Bringt dich auch nicht weiter, aber das ist auch nicht dolle:
Code:
ACCEPT_KEYWORDS="x86 ~amd64"

Brauchst du sicher auch x86?!?
ACCEPT_KEYWORDS="~amd64" allein ist schon - naja. Löst man besser (vor allem auf nem Server!) mit /etc/portage/package.keywords.

Wenn es das letzte update war, zeig doch mal, was da installiert wurde.
Da gibt es auch oft configs in /etc zu aktualisieren (etc-update, dispatch-conf). Hast du da vllt. Mist gebaut?

Trotzdem bleibt die Fehlermeldung myteriös, denn das File existiert ja, und ist ausführbar...

was sagt ein ldd cod2_lnxded?
Back to top
View user's profile Send private message
KaterGonzo
Apprentice
Apprentice


Joined: 01 Apr 2004
Posts: 155

PostPosted: Thu May 21, 2009 7:55 pm    Post subject: Reply with quote

Konfig-Files update ich immer.

Quote:
# etc-update
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)


Das ist ja schon etwas komisch...

Quote:
# ldd cod2_lnxded
not a dynamic executable


Das macht der mit allen ausführbaren Dateien

Quote:
# ldd cod2cust.sh
not a dynamic executable


Aber

Quote:
# ls -lsh
total 44K
0 drwxrwxrwx 5 thorn admin 320 Mar 3 20:11 COD2a
0 drwxrwxrwx 5 thorn admin 352 Apr 26 19:48 COD2b
0 drwxrwxrwx 5 thorn admin 352 Dec 22 2007 COD2c
0 drwxrwxrwx 8 thorn admin 352 Jun 13 2008 COD4a
0 drwxrwxrwx 8 thorn admin 352 Dec 5 21:36 COD4b
0 drwxrwxrwx 7 thorn admin 328 Jun 13 2008 COD4c
0 drwxrwxrwx 6 thorn admin 376 Mar 7 14:54 COD5a
4.0K -rwxrwxrwx 1 thorn admin 1.1K Sep 28 2008 cod2cust.sh
4.0K -rwxrwxrwx 1 thorn admin 1.1K Sep 28 2008 cod2tdm.sh
4.0K -rwxrwxrwx 1 thorn admin 1.1K Dec 23 2007 cod2war.sh
4.0K -rwxrwxrwx 1 thorn admin 1.1K Feb 4 20:54 cod4mw.sh
4.0K -rwxrwxrwx 1 thorn admin 1.1K Dec 23 2007 cod4tdm.sh
4.0K -rwxrwxrwx 1 thorn admin 1.1K Jan 12 2008 cod4war.sh
4.0K -rwxrwxrwx 1 thorn admin 1.1K Feb 21 13:43 cod5a.sh
4.0K -rwxrwxrwx 1 thorn admin 1010 Oct 24 2008 coduo.sh
4.0K -rwxrwxrwx 1 thorn admin 924 Mar 13 23:20 css.sh
4.0K -rwxrwxrwx 1 thorn admin 979 Mar 13 23:18 l4d.sh
0 drwxrwxrwx 5 thorn admin 120 May 14 21:32 pb_logs
0 drwxrwxrwx 7 thorn admin 344 Mar 13 23:12 steam
4.0K -rwxrwxrwx 1 thorn admin 926 Mar 13 23:17 tf2.sh
Back to top
View user's profile Send private message
Mr. Anderson
l33t
l33t


Joined: 22 Apr 2004
Posts: 762

PostPosted: Thu May 21, 2009 7:56 pm    Post subject: Reply with quote

oder sogar noch etwas direkter:

Code:
strace ./cod2_lnxded


bzw. wenn Du die Ausgabe nicht nur für Dich behalten willst:
Code:
strace ./cod2_lnxded 2>trace

und die Datei trace dann hochladen und hier verlinken
Back to top
View user's profile Send private message
KaterGonzo
Apprentice
Apprentice


Joined: 01 Apr 2004
Posts: 155

PostPosted: Thu May 21, 2009 7:58 pm    Post subject: Reply with quote

Was ist das? Auf einmal kann ich die Dienste auch nicht mehr starten:

Quote:
# /etc/init.d/mysql start
* ERROR: mysql has been started by something else
websrv-fingerling gameserver # /etc/init.d/mysql restart
* ERROR: mysql has been started by something else


Quote:
# /etc/init.d/ntp-client start
* ERROR: ntp-client has been started by something else
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Thu May 21, 2009 8:28 pm    Post subject: Reply with quote

Entweder
1) Bash aktualisiert und Bug in Bash/Mist in Config
2) Durch "x86"-Keyword und/oder ~amd64 ist dir ein "schlechter" build untergerutscht
z.B. 17 May 2009; Mike Frysinger (vapier) +bash-4.0_p24.ebuild:
3) Du lässt deinen Server immer als root laufen, hängst am Netz und hast dir nen Virus geholt.

Ich tippe auf 1a.

//
Quote:
# ldd cod2cust.sh
not a dynamic executable

Dan schau dir das mal mit $editor an, vllt ist es ein shellscript.
Zeig uns mal, was da beim letzten update installiert wurde...
Back to top
View user's profile Send private message
Hollowman
Guru
Guru


Joined: 19 Apr 2007
Posts: 584

PostPosted: Thu May 21, 2009 8:32 pm    Post subject: Reply with quote

Hi

Guck doch ma in dein emerge log file und poste das hier. Dann weiß man was bei dem Update dabei war. Kernel selber gebaut oder genkernel genommen?

Guckst du auch in die config files rein die du updatest?

Und ich würde dir dringen raten auf nem Server der zuverlässig sein muss, dass AceptKeywords weg zu machen und nur stabile Packete zu nehmen. Wenn man dann was unbedingt neueres braucht kann man das immer noch in die package.keywords schreiben

Sebastian
Back to top
View user's profile Send private message
BlueSkyDriver
n00b
n00b


Joined: 26 Nov 2005
Posts: 57

PostPosted: Fri May 22, 2009 6:29 am    Post subject: Re: 32Bit Anwendung (CoD2) funktioniert plötzlich auf 64Bit Reply with quote

schmidtsmikey wrote:
Seit dem letzten emerge -uND world starten die Dienste plötzlich nicht mehr. Fehlermeldung:


Ein "etc-update" hast Du gemacht?


saludos
andreas
Back to top
View user's profile Send private message
Max Steel
Advocate
Advocate


Joined: 12 Feb 2007
Posts: 2229
Location: My own world! I and Gentoo!

PostPosted: Mon May 25, 2009 9:46 am    Post subject: Reply with quote

Zeig uns doch mal die make.conf
Denn wie du opben gezeigt hast ist die CHOST x86, und der Kernel und alles andere x86_64 (AMD64) Das passtz überhaupt nicht zusammen.

Also bevor du irgendwas emergst erstmal diese zeigen.
Hattest du damals zum aufsetzen die richtige stage genutzt für x86_64 (was du anscheinend wolltest), oder hast du die x86 stage genommen.
_________________
mfg
Steel
___________________

Heim-PC: AMD Ryzen 5950X, 64GB RAM, GTX 1080
Laptop: Intel Core i5-4300U, 16GB RAM, Intel Graphic
Arbeit-PC: Intel i5-1145G7, 16GB RAM, Intel Iris Xe Graphic (leider WSL2)
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2390
Location: Germany

PostPosted: Mon May 25, 2009 1:44 pm    Post subject: Reply with quote

Was mir grade noch aufgefallen ist, dein Profil zeigt noch auf ein x86-Profil am besten wechselst du auf ein amd64....

Code:
# ln -snf  /usr/portage/profiles/default/linux/amd64/2008.0 /etc/make.profile
# source /etc/profile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum