It seems that the zsnes configure can't figure out where my libsdl install is. Relevant lines from config.log: configure:3172: x86_64-pc-linux-gnu-gcc -o conftest -march=athlon64 -mtune=athlon64 -fomit-frame-pointer -O2 -pipe -m32 -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/include/SDL -D_REENTRANT conftest.c -L/usr/lib64 -Wl,-rpath,/usr/lib -lSDL -lpthread >&5 /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3/x86_64-pc-linux-gnu-gcc: gcc-wrapper: -m32 detected on the command line overrides implicit -m64 added by the wrapper./usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libSDL.so when searching for -lSDL /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libSDL.a when searching for -lSDL /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../libSDL.so when searching for -lSDL /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../libSDL.a when searching for -lSDL /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libSDL.so when searching for -lSDL /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libSDL.a when searching for -lSDL /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lSDL collect2: ld returned 1 exit status I'm not sure whether this bug is a problem with libsdl, zsnes, or emul-linux-x86-sdl. Reproducible: Always Steps to Reproduce: 1. emerge zsnes Actual Results: >>> Source unpacked. * multilib detected, adding -m32 to CFLAGS. note that opengl * support probably wont work quite right. * Using GNU config files from /usr/share/libtool * Updating src/config.sub [ ok ] * Updating src/config.guess [ ok ]./configure --prefix=/usr/games --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share/games --sysconfdir=/etc/games --localstatedir=/var/games --enable-libpng --enable-opengl configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++ checking whether we are using the GNU C++ compiler... yes checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes checking for x86_64-pc-linux-gnu-nasm... no checking for nasm... nasm checking for a BSD-compatible install... /bin/install -c checking for sdl-config... /usr/bin/sdl-config checking for SDL - version >= 1.2.0... no *** Could not run SDL test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means SDL was incorrectly installed *** or that you have moved SDL since it was installed. In the latter case, you *** may want to edit the sdl-config script: /usr/bin/sdl-config configure: error: SDL >= 1.2.0 is required !!! ERROR: games-emulation/zsnes-1.42 failed. !!! Function egamesconf, Line 59, Exitcode 1 !!! egamesconf failed !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Ebuild should merge correctly. qbranch work # emerge info Portage 2.0.51-r15 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 x86_64) ================================================================= System uname: 2.6.10-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 30 2005, 20:59:41)] distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.9.4, 1.6.3, 1.4_p6, 1.8.5-r3, 1.7.9-r1 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -mtune=athlon64 -fomit-frame-pointer -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -mtune=athlon64 -fomit-frame-pointer -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="amd64 X aalib acpi alsa apache2 arts avi bitmap-fonts bonobo cdr crypt cups divx4linux dvd dvdr dvdread esd f77 fam flac foomaticdb fortran gd gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib innodb ipv6 java jit joystick jp2 jpeg kde kdeenablefinal ldap libwww lzw lzw-tiff mad mikmod motif mozilla mpeg multislot mysql ncurses nls nptl offensive oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline rtc samba sdl session slang sockets spell ssl svg tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xml xml2 xmms xpm xrandr xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Please run 'file /usr/lib64/libSDL.so' and give us the output.
kloostec@qbranch ~ $ /usr/lib64/libSDL.so Segmentation fault kloostec@qbranch ~ $
(running libsdl 1.2.8-r1, by the way) I'll recompile it with USE='debug' and without -fomit-frame-pointer in hopes of debugging...
he didnt say execute the library, he said run `file` on it
Sorry, early morning for me ;) kloostec@qbranch ~ $ file /usr/lib64/libSDL.so /usr/lib64/libSDL.so: symbolic link to `libSDL-1.2.so.0.7.1' kloostec@qbranch ~ $
I also have no sucess at SDL-detection, emerge-output looks like it is the same fro the point that was pasted by OP. Just before that I also get >>> Unpacking zsnes142src.tar.gz to /var/tmp/portage/zsnes-1.42/work * Applying 1.42-configure.patch ... [ ok ] acinclude.m4:10: warning: underquoted definition of AM_PATH_ZLIB run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal acinclude.m4:121: warning: underquoted definition of AM_PATH_LIBPNG /usr/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION /usr/share/aclocal/xmms.m4:62: warning: underquoted definition of AM_PATH_XMMS /usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG /usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES /usr/share/aclocal/libgcrypt.m4:23: warning: underquoted definition of AM_PATH_LIBGCRYPT /usr/share/aclocal/libfame.m4:6: warning: underquoted definition of AM_PATH_LIBFAME /usr/share/aclocal/libOggFLAC.m4:7: warning: underquoted definition of AM_PATH_LIBOGGFLAC /usr/share/aclocal/libOggFLAC++.m4:8: warning: underquoted definition of AM_PATH_LIBOGGFLACPP /usr/share/aclocal/libFLAC.m4:7: warning: underquoted definition of AM_PATH_LIBFLAC /usr/share/aclocal/libFLAC++.m4:8: warning: underquoted definition of AM_PATH_LIBFLACPP /usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB /usr/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB /usr/share/aclocal/gtkgl.m4:4: warning: underquoted definition of AM_PATH_GTKGL /usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK /usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB /usr/share/aclocal/freetype2.m4:7: warning: underquoted definition of AC_CHECK_FT2 /usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE /usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO >>> Source unpacked.
*** Bug 82639 has been marked as a duplicate of this bug. ***
I updated /usr/bin/sdl-config, and changed: libdirs="-L/usr/lib64 -Wl,-rpath,${exec_prefix}/lib" to: libdirs="-L/emul/linux/x86/usr/lib -Wl,-rpath,/emul/linux/x86/usr/lib" ... and then got the same error. However, the config.log now says: configure:3104: x86_64-pc-linux-gnu-gcc -o conftest -march=athlon64 -mtune=athlon64 -O2 -fomit-frame-pointer -pipe -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/include/SDL -D_REENTRANT -L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib -L/usr/lib32 -L/lib32 conftest.c -L/emul/linux/x86/usr/lib -Wl,-rpath,/emul/linux/x86/usr/lib -lSDL -lpthread >&5 /lib32/libpthread.so.0: undefined reference to `errno@GLIBC_PRIVATE' /lib32/libpthread.so.0: undefined reference to `__libc_dl_error_tsd@GLIBC_PRIVATE' /lib32/libpthread.so.0: undefined reference to `__resp@GLIBC_PRIVATE' /lib32/libpthread.so.0: undefined reference to `h_errno@GLIBC_PRIVATE' collect2: ld returned 1 exit status I have no idea what this means, so I'm stuck :P
I'm having the same problem, has anyone fixed this? configure:3134: result: no configure:3172: x86_64-pc-linux-gnu-gcc -o conftest -O2 -march=k8 -pipe -fPIC -m32 -pipe -I. -Wall -I/usr/local/include -I/usr/include -D__LINUX__ -I/usr/include/SDL -D_REENTRANT confte st.c -L/usr/lib64 -Wl,-rpath,/usr/lib -lSDL -lpthread >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libSDL.so when searching for -lSDL /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libSDL.a when searching for -lSDL /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../libSDL.so when searc hing for -lSDL /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../libSDL.a when search ing for -lSDL /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libSDL.so when searching for -lSDL /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libSDL.a when searching for -lSDL /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lSDL collect2: ld returned 1 exit status emerge info Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-ck3 x86_64) ================================================================= System uname: 2.6.11-ck3 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 25 2005, 02:09:52)] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.9.5, 1.7.9-r1, 1.5, 1.6.3, 1.8.5-r3, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -march=k8 -pipe -fPIC" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=k8 -pipe -fPIC -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="ftp://gentoo.risq.qc.ca// http://gentoo.mirrored.ca// ftp://gentoo.mirrored.ca/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" USE="amd64 16bit S3TC X Xaw3d a52 aac aalib acpi aim alsa arts audiofile bash-completion bcmath berkdb bitmap-fonts blas bzip2 bzlib cairo cdio cdparanoia cdr chroot codecs crypt cups curl curlwrappers divx4linux dlloader dv dvd dvdr dvdread emul-linux encode escreen esd exif faad fam fame fb fbcon fbdev ffmpeg fftw flac flash foomaticdb fortran ftp gd gdbm gif gimp gimpprint ginac glitz gmail gmp gnuplot gphoto2 gpm gtk gtk2 gtkhtml icq idea imagemagick imap imlib imlib2 ipv6 jabber java jce jikes jp2 jpeg jpeg2k kde kdepim kdexdeltas latex lesstif libsamplerate libwww live lm_sensors lzo lzw lzw-tiff mad mime ming mjpeg mmap mng monkey motif mozilla moznocompose moznoirc moznomail mozp3p mp3 mpeg mpeg2 mpeg4 mplayer msn ncurses net network nls no_wxgtk1 nodrm noreiserfs nowin nptl nptlonly nvidia offensive ogg oggvorbis openal opengl oscar oss pam pcre pdf pdflib perl png ppds python qhull qt quicktime readline real rtc samba scanner sdl serial sftplogging smime sndfile sox speex spell ssl svg szip tcpd tetex tga theora tidy tiff transcode truetype truetype-fonts type1 type1-fonts unicode usb usepackagedmakefiles userlocales uudeview v4l v4l2 vcdimager vidix vorbis wmf wsconvert xanim xine xinerama xml2 xosd xpm xrandr xscreensaver xv xvid xvmc yv12 zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
x86 ABI is now exported
whatever that means, zsnes still doesn't build, this bug ISN'T fixed
It's not fixed..
reopening
*** This bug has been marked as a duplicate of 88725 ***
just want to confirm bug 88725 does fix this, but i had to re-emerge libsdl after setting the things in /etc/make.profile/make.defaults before emerging zsnes.