libgcc_s.so.1 needs to be included [sysinfo will not run.]

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

User avatar
warwick
level0
Posts: 9
Joined: Sat Dec 11, 2004 12:05 am

libgcc_s.so.1 needs to be included [sysinfo will not run.]

Postby warwick » Wed Dec 22, 2004 2:25 am

I'm running Debian 3.0 (Woody), and I'm seeing this:

$ ./sysinfo
./sysinfo: /lib/libgcc_s.so.1: version `GCC_3.3' not found (required by ./sysinfo)

I'm running this gcc:

$ cc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)

Running 'strings' on libgcc_s.so.1, I see GCC_3.0. (Also GLIBC_2.0 and GLIBC_2.1.3.)

Perhaps I missed the minimum requirements for software levels - is this just a problem with sysinfo, or will I need to upgrade for Darwinia too?

Thanks,
icarus.lnx
level0
Posts: 3
Joined: Sat Nov 13, 2004 5:39 pm

Postby icarus.lnx » Wed Dec 22, 2004 2:48 am

check if you have /lib/libgcc_s.so.1 or if you even have a libgcc_s.so.1 on your system.

I don't have one there (Gentoo) but I do have /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 which is obviously version 3.3 (which I know Debian doesn NOT have)

Worse case, you don't have gcc libraries installed, but if that is the case it looks like the darwinia package has this, which you could try dropping in /lib since that's where it's looking (or fumble around with /etc/ld.so.conf if you prefer)
User avatar
sysrq
level2
level2
Posts: 123
Joined: Wed Mar 20, 2002 4:52 am

Postby sysrq » Wed Dec 22, 2004 2:55 am

The newest version debian stable has for gcc is 3.0.4, apt-get install gcc-3.0 see if that helps at all, otherwise your either stuck going to unstable or talking to John to get a binary linked against the older gcc.
DEATH TO DUCKS!!!
User avatar
warwick
level0
Posts: 9
Joined: Sat Dec 11, 2004 12:05 am

Postby warwick » Fri Dec 31, 2004 8:30 pm

Hi, I'm back.

I'm running Debian Stable = Debian Woody, and I have gcc-3.0 installed already.

Running 'dpkg -L gcc-3.0|grep libgcc' gives

/usr/lib/gcc-lib/i386-linux/3.0.4/libgcc.a
/usr/lib/gcc-lib/i386-linux/3.0.4/libgcc_s.so

and

/usr/lib/gcc-lib/i386-linux/3.0.4/libgcc_s.so -> /lib/libgcc_s.so.1

which is the file in which strings found GCC_3.0 but no GCC_3.3.

I can't get the version from the Darwinia package without the output from this program... :)

Looks like I need the static link version from John. At least if Darwinia contains this file, I shouldn't have this problem with it.

Thanks for your help.
User avatar
John
Introversion Staff
Introversion Staff
Posts: 509
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Sat Jan 01, 2005 10:26 pm

Hi

Can you download http://www.darwinia.co.uk/test/libgcc_s.so.1 and pop it in the same directory as sysinfo, then do an export LD_LIBRARY_PATH=that-directory and then try running sysinfo?

Thanks

John
User avatar
warwick
level0
Posts: 9
Joined: Sat Dec 11, 2004 12:05 am

Postby warwick » Sat Jan 01, 2005 11:58 pm

Thanks, that worked perfectly, and I've successfully downloaded the darwinia beta now. However, when I ran the ./darwinia script, it gave me this:

$ ./darwinia
./darwinia.x86: /lib/libc.so.6: version `GLIBC_2.3' not found (required by ./darwinia.x86)
./darwinia.x86: /lib/libgcc_s.so.1: version `GCC_3.3' not found (required by ./darwinia.x86)
./darwinia.x86: /lib/libc.so.6: version `GLIBC_2.3' not found (required by ./libSDL-1.2.so.0)
./darwinia.x86: /lib/libpthread.so.0: version `GLIBC_2.3.2' not found (required by ./libSDL-1.2.so.0)

I tried swapping $here and /lib in a copy of the script:

$ ./darwinia-swap
./darwinia.x86: /lib/libc.so.6: version `GLIBC_2.3' not found (required by ./darwinia.x86)
./darwinia.x86: /lib/libc.so.6: version `GLIBC_2.3' not found (required by ./libSDL-1.2.so.0)
./darwinia.x86: /lib/libpthread.so.0: version `GLIBC_2.3.2' not found (required by ./libSDL-1.2.so.0)

Running ldd:

$ ldd ./darwinia.x86
./darwinia.x86: /lib/libc.so.6: version `GLIBC_2.3' not found (required by ./darwinia.x86)
./darwinia.x86: /lib/libgcc_s.so.1: version `GCC_3.3' not found (required by ./darwinia.x86)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x4001f000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x40089000)
libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x400e6000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40163000)
libc.so.6 => /lib/libc.so.6 (0x4016a000)
libm.so.6 => /lib/libm.so.6 (0x40287000)
libpthread.so.0 => /lib/libpthread.so.0 (0x402a8000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x402bc000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40396000)
libdl.so.2 => /lib/libdl.so.2 (0x403a3000)
libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x403a7000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x40852000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

and trying ldd with $here before /lib:

$ LD_LIBRARY_PATH=. ldd darwinia.x86
./darwinia.x86: /lib/libc.so.6: version `GLIBC_2.3' not found (required by ./darwinia.x86)
./darwinia.x86: /lib/libc.so.6: version `GLIBC_2.3' not found (required by ./libSDL-1.2.so.0)
./darwinia.x86: /lib/libpthread.so.0: version `GLIBC_2.3.2' not found (required by ./libSDL-1.2.so.0)
libSDL-1.2.so.0 => ./libSDL-1.2.so.0 (0x40014000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x400cf000)
libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x4012b000)
libgcc_s.so.1 => ./libgcc_s.so.1 (0x401a8000)
libc.so.6 => /lib/libc.so.6 (0x401b1000)
libm.so.6 => /lib/libm.so.6 (0x402ce000)
libpthread.so.0 => /lib/libpthread.so.0 (0x402ef000)
libdl.so.2 => /lib/libdl.so.2 (0x40303000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40306000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x403e1000)
libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x403ee000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x40899000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Cheers,

Tim
User avatar
warwick
level0
Posts: 9
Joined: Sat Dec 11, 2004 12:05 am

Postby warwick » Sun Jan 02, 2005 12:15 am

Oh, I also tried swapping the libgcc_s.so.1 from the darwinia.zip with the one at the URL you gave (they're different), and that didn't change those messages. I've swapped it back now.
User avatar
John
Introversion Staff
Introversion Staff
Posts: 509
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Mon Jan 03, 2005 10:58 am

Hi

Please can you try downloading beta 4f and let me know how you get on.

Thanks

John
User avatar
warwick
level0
Posts: 9
Joined: Sat Dec 11, 2004 12:05 am

Postby warwick » Mon Jan 03, 2005 4:18 pm

Hi.

The new beta does this:

./lib/darwinia.bin.x86: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

Gah. Looks like Debian's Stable really is a bit old.

I tried changing my apt sources.config to include testing/main, to get just libstdc++5, but that threatened to install kernel headers.

I've noticed there's a stdc++.so.5 in OpenOffice:

LD_LIBRARY_PATH=/usr/local/OpenOffice.org1.1.1/program:. lib/darwinia.bin.x86
SDL Version: Compiled against 1.2.8, running with 1.2.8
Creating ResourceManager: 0.6

Creating SoundSystem: 3.4

Creating ClientToServer: 3.4

Initialising SoundSystem : 3.6

Initialising SDL Audio

At this point, the screen goes blank except for the mouse pointer, and nothing happens. I ctl-alt-f1'd to a console and killed it.
User avatar
John
Introversion Staff
Introversion Staff
Posts: 509
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Mon Jan 03, 2005 4:52 pm

I found this on apt-get.org:

http://www.fs.tum.de/~bunk/packages/woody/bunk-1.html

Maybe the libstdc++-5 package will help?

For information, what kernel are you running, what soundcard do you use and what graphics card and drivers?
User avatar
warwick
level0
Posts: 9
Joined: Sat Dec 11, 2004 12:05 am

Postby warwick » Mon Jan 03, 2005 5:40 pm

Maybe the libstdc++-5 package will help?


I edited my post a couple of times. I found a libstdc++.so.5 in OpenOffice, so I tried that with the results above. I don't know whether you were responding to an earlier version of my post.

I'll try installing that.

For information, what kernel are you running, what soundcard do you use and what graphics card and drivers?


Kernel 2.4.18 - the highest standard kernel for Debian/Woody (as far as I know).

I'm not sure what the sound card is off-hand... SonicFury? Here's what the kernel thinks:

Code: Select all

Jan  3 12:09:28 cardinal kernel: Crystal 4280/46xx + AC97 Audio, version 1.28.32, 01:40:19 Apr 24 2004
Jan  3 12:09:28 cardinal kernel: cs46xx: Card found at 0xdbfee000 and 0xdbe00000, IRQ 17
Jan  3 12:09:28 cardinal kernel: cs46xx: Voyetra (5053:3357) at 0xdbfee000/0xdbe00000, IRQ 17


The graphics card is an NVidia G4Ti4200-dt64, and I'm using the NVidia drivers (from the NVidia website).

The sysinfo tool reports an old PCI graphics card that I haven't removed, but which I don't use - is that a problem?
User avatar
warwick
level0
Posts: 9
Joined: Sat Dec 11, 2004 12:05 am

Postby warwick » Mon Jan 03, 2005 5:49 pm

There was no evident functional difference between the OpenOffice libraries and the ones in the bunk modules: darwinia did the same blank screen thing, and stopped at 'Initialising SDL audio'.
User avatar
John
Introversion Staff
Introversion Staff
Posts: 509
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Tue Jan 04, 2005 3:02 pm

Please can you try setting

ScreenWindowed = 1
SoundMixFreq = 48000

in ~/.darwinia/demo/preferences.txt and see if that helps at all.
User avatar
warwick
level0
Posts: 9
Joined: Sat Dec 11, 2004 12:05 am

Postby warwick » Wed Jan 05, 2005 4:33 am

Hi.

ScreenWindowed=1 meant I could kill the program without having to switch into a text console - yay - but it behaved a little oddly: ^C did nothing, ^Z made it say 'Fatal signal: Keyboard Quit (SDL Parachute Deployed)' but I still had to kill %% it.

SoundMixFreq = 48000 didn't improve matters, sadly, it still hung at 'Initialisng SDL Audio':

Code: Select all

$ diff ~/.darwinia/demo/preferences.txt*
9c9
< SoundMixFreq = 48000
---
> SoundMixFreq = 22050
17c17
< ScreenWindowed = 1
---
> ScreenWindowed = 0
$ ./darwinia
SDL Version: Compiled against 1.2.8, running with 1.2.8
Creating ResourceManager: 0.6

Creating SoundSystem: 3.3

Creating ClientToServer: 3.3

Initialising SoundSystem : 3.5

Initialising SDL Audio
Fatal signal: Keyboard Quit (SDL Parachute Deployed)


[1]+  Stopped                 ./darwinia
warwick@cardinal:~/darwinia/darwinia$ fg
./darwinia


^K
[1]+  Stopped                 ./darwinia
warwick@cardinal:~/darwinia/darwinia$ kill %%

[1]+  Stopped                 ./darwinia
warwick@cardinal:~/darwinia/darwinia$
[1]+  Terminated              ./darwinia
warwick@cardinal:~/darwinia/darwinia$


I didn't see a blackbox file.

On the good side, I thought to run strace -o /tmp/darwinia.strace -ff ./darwinia:

Code: Select all

warwick@cardinal:~/darwinia/darwinia$ strace -o /tmp/darwinia.strace -ff ./darwinia
Process 1584 attached
Process 1584 detached
Process 1585 attached
Process 1583 suspended
SDL Version: Compiled against 1.2.8, running with 1.2.8
Creating ResourceManager: 0.5

Creating SoundSystem: 1.4

Creating ClientToServer: 1.4

Initialising SoundSystem : 1.6

Initialising SDL Audio
Process 1588 attached
Process 1589 attached

[2]+  Stopped                 strace -o /tmp/darwinia.strace -ff ./darwinia
warwick@cardinal:~/darwinia/darwinia$ kill %%

[2]+  Stopped                 strace -o /tmp/darwinia.strace -ff ./darwinia
warwick@cardinal:~/darwinia/darwinia$ Process 1583 resumed
Process 1585 detached
Process 1589 detached
Process 1588 suspended


I've uploaded these to http://www.baverstock.org.uk/tim/darwin ... inia-1.tgz in case that's useful.
User avatar
John
Introversion Staff
Introversion Staff
Posts: 509
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Thu Jan 06, 2005 1:02 pm

Thanks for the tests. We should eliminate the possibility of it being the sound drivers. Can you try with ALSA or with the disk-writer driver as below:

ALSA:

You will need to set the environment variable SDL_AUDIODRIVER
export SDL_AUDIODRIVER=alsa

DISK-WRITER (dev/null):

An alternative is to try the disk-audio-writer for /dev/null.
export SDL_AUDIODRIVER=disk
export SDL_DISKAUDIOFILE=/dev/null

Let me know if it still hangs

Thanks

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 2 guests