amd@Decoder amd $ ufo2000 ufo2000: error while loading shared libraries: NL.so.1.6: cannot open shared object file: No such file or directory amd@Decoder amd $ ldd `which ufo2000` linux-gate.so.1 => (0xffffe000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4002b000) liblua.so => /usr/lib/liblua.so (0x40052000) liblualib.so => /usr/lib/liblualib.so (0x40069000) NL.so.1.6 => not found liballeg.so.4.1 => /usr/lib/liballeg.so.4.1 (0x40079000) libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so.5 (0x4014e000) libm.so.6 => /lib/libm.so.6 (0x40206000) libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc_s.so.1(0x40228000) libc.so.6 => /lib/libc.so.6 (0x40231000) libpthread.so.0 => /lib/libpthread.so.0 (0x4036a000) libXxf86dga.so.1 => /usr/X11R6/lib/libXxf86dga.so.1 (0x4037a000) libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x40380000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40386000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40394000) libdl.so.2 => /lib/libdl.so.2 (0x4045e000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) amd@Decoder amd $ qpkg -I -v hawknl dev-games/hawknl-1.68 * amd@Decoder amd $ qpkg -I -v ufo2000 games-strategy/ufo2000-0.4.0_beta321 *
what's the output of `which ufo2000`. I suspect you have a non-gentoo copy of ufo2000 installed someplace. On my system, after merging ufo2000 the ldd shows everything linking just fine.
Need more info...
amd@Decoder amd $ which ufo2000 /usr/games/bin/ufo2000
I do not have preinstalled game on my system. I just checked, that ufo2000 is in portage. So i emerged it. First it compiled the allegro, then hawknl libraries.
Can you post the contents of /var/db/pkg/dev-games/hawknl-1.68/CONTENTS Also, what does `ls -l /usr/lib/*NL*` show? Finally, please post the output of emerge --info. Thanks.
amd@Decoder amd $ cat /var/db/pkg/dev-games/hawknl-1.68/CONTENTS dir /usr dir /usr/lib sym /usr/lib/NL.so -> libNL.so.1.6.8 1074856787 sym /usr/lib/libNL.so.1 -> libNL.so.1.6.8 1074856787 sym /usr/lib/libNL.so.1.6 -> libNL.so.1.6.8 1074856787 obj /usr/lib/libNL.a cd2eea822a99f3e714c6f6635022404a 1074856787 sym /usr/lib/libNL.so -> libNL.so.1.6.8 1074856787 obj /usr/lib/libNL.so.1.6.8 e0f3ea61f2e9f7e09b0c3060c0b9a67a 1074856787 dir /usr/include obj /usr/include/nl.h bc43c1f8dbdeda3abed5d3ee42c396ee 1074856787 amd@Decoder amd $ ls -l /usr/lib/*NL* -rw-r--r-- 1 root root 86786 23. jaan 13:19 /usr/lib/libNL.a lrwxrwxrwx 1 root root 14 23. jaan 13:19 /usr/lib/libNL.so -> libNL.so.1.6.8 lrwxrwxrwx 1 root root 14 23. jaan 13:19 /usr/lib/libNL.so.1 -> libNL.so.1.6.8 lrwxrwxrwx 1 root root 14 23. jaan 13:19 /usr/lib/libNL.so.1.6 -> libNL.so.1.6.8 -rwxr-xr-x 1 root root 70563 23. jaan 13:19 /usr/lib/libNL.so.1.6.8 lrwxrwxrwx 1 root root 14 23. jaan 13:19 /usr/lib/NL.so -> libNL.so.1.6.8 amd@Decoder amd $ emerge --info Portage 2.0.50_pre20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.0) ================================================================= System uname: 2.6.0 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.12 Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=pentium3 -march=pentium3 -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=pentium3 -march=pentium3 -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions" DISTDIR="/home/root/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home/root/tmp" PORTDIR="/home/root/portage" PORTDIR_OVERLAY="/home/root/breakmygentoo /home/root/gnome-current" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib accessibility acl acpi alsa apache2 avi berkdb bindist bonobo canna cdr cjk crypt cscope cups curl dga directfb divx dvd dvdr encode faad fastcgi fbcon flac flash foomaticdb freetds freewnn gatos gd gdbm gif ginac gnome gnomedb gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hdf5 imap imlib innodb ipv6 jack java jikes jpeg kde ladcca ldap libgda libwww mad mbox mcal mikmod mmx motif mozcalendar mozilla mozp3p mozsvg mozxmlterm mpeg mpi mysql nas ncurses nhc98 nls nntp nptl offensive oggvorbis opengl oss pam pcmcia pda pdflib perl plotutils png pnp ppds prelude python qhull qt quicktime readline ruby samba sasl sdk sdl slang slp snmp spell sse ssl tcltk tcpd tetex tiff truetype trusted unicode usb video_cards_ati128 wmf wxwindows x86 xinerama xml xml2 xosd xv xvid zlib"
Looks like the problem is in hawknl ebuild, not ufo2000. You can try to compile a simple program to check if hawknl is installed correctly: #include <nl.h> int main() { nlInit(); return 0; } Try to compile it and run. Most likely it will show the same 'error while loading shared libraries: NL.so.1.6: cannot open shared object file: No such file or directory' Some people have already encountered similar problems: http://ufo2000.lxnt.info/forum/viewtopic.php?t=145&highlight=hawknl I have one more, maybe silly question: did you emerge ufo2000 (and hawknl as its dependency) as root? Maybe that could be a difference (as it works for some people and doesn't for the other).
Forgot one thing, command line for compiling hawknl test example is the following: gcc -o test test.c -lNL
The test program doesn't work either. And, yes, i emerged hawknl using a root user.
Hum... this is weird.. i re-emerged hawknl, ran ldconfig as root and voila...
Ok, sounds like it's working.
I've encountered the same problem, followed comment #10 and made it work. Anyway, I still think this bug should be reopened until someone finds a solution. This solution can be a "working state", which means making it work on the first emerge (the best case) or adding a warning and instructions to the postinst of the ebuild itself. The current state of making it work using the bugzilla just sucks... :-( If you want me to send you more info, just ask me, please... Thanks... Radek