project-navigation
Personal tools

Author Topic: missing shared library in debian  (Read 3127 times)

ytre

  • Guest
missing shared library in debian
« on: September 28, 2006, 08:59:39 pm »
This is just first problem in row... all you get with exactly same messages...

For developers: Maybe the game should report missing thread shared library dependancy bit better - firfox had same problem about 5 years ago on windows with OLE and other libraries and once found using SoftIce and debugged the Windows loader and found this to be problem (not thread but forked process) developers did some change that made popup window appear. Maybe place for inspiration for windows code? And some console message for linux version...

*edit* argh. the firefox problem was not missing library but incompatible exported symbols by the library. but i guess somebody fixing it fixed also the missing library part too *end edit*

But stay tuned. More errors to come.

btw: rc5 from installer run under root in stupid ok, ok, ok, next, next, next style.

ufoai
Adding game dir: ./base
using /home/ytre/.ufoai/base for writing
Adding game dir: /home/ytre/.ufoai/base
execing default.cfg
FindFile: can't find config.cfg
couldn't exec config.cfg
execing keys.cfg
Console initialized.

------- sound initialization -------
Loading snd_sdl sound driver
Soundsystem: SDL.
SDL version: 1.2.9
SDL audio driver is "alsa".
Bits: 16
Frequency: 48000
Samples: 4096
Channels: 2
sound sampling rate: 48000
------- Loading ref_glx.so -------
LoadLibrary("ref_glx.so") failed: No such file or directory
Dumped console text to /home/ytre/.ufoai/base/gl_debug.txt.
SDL audio device shut down.
recursive shutdown
Error: Couldn't initialize OpenGL renderer!
Consult gl_debug.txt for further information.

cat /etc/debian_version
3.1

ldd /usr/local/games/ufoai/ref_glx.so
        /lib/snoopy.so => /lib/snoopy.so (0xb49e8000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb4921000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb4913000)
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb4861000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb4852000)
        libSDL_ttf-2.0.so.0 => /usr/lib/libSDL_ttf-2.0.so.0 (0xb484d000)
       libXxf86vm.so.1 => not found
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb482e000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb46f9000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0xb46f6000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0xb4643000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb4621000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb45b4000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb45a1000)

su -
Password:
#

apt-get install xlibs-static-dev
Reading Package Lists... Done
Building Dependency Tree... Done
xlibs-static-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

apt-get install --reinstall xlibs-static-dev
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/854kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously deselected package xlibs-static-dev.
(Reading database ... 71714 files and directories currently installed.)
Preparing to replace xlibs-static-dev 4.3.0.dfsg.1-14sarge1 (using .../xlibs-static-dev_4.3.0.dfsg.1-14sarge1_i386.deb) ...
Unpacking replacement xlibs-static-dev ...
Setting up xlibs-static-dev (4.3.0.dfsg.1-14sarge1) ...

cd /usr/X11R6/lib/

ld --whole-archive -shared -o libXxf86vm.so.1 libXxf86vm.a

ln -s libXxf86vm.so.1 libXxf86vm.so

ldconfig

ldd /usr/local/games/ufoai/ref_glx.so
        /lib/snoopy.so => /lib/snoopy.so (0xb49c2000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb48fb000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb48ed000)
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb483b000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb482c000)
        libSDL_ttf-2.0.so.0 => /usr/lib/libSDL_ttf-2.0.so.0 (0xb4827000)
       libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0xb4822000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb4803000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb46ce000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0xb46cb000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0xb4618000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb45f6000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb4589000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb4576000)

file /usr/X11R6/lib/libXxf86vm.so.1

/usr/X11R6/lib/libXxf86vm.so.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped