I use ~x86 system, sync'ed one/two hour(s) ago, emerged gcc and glibc again, then libsdl and it still breaks. I used USE="nomalloccheck" for glibc. read on f.g.o that some function does segfaults in special cases with new glibc and with that USE-Flag it won't segfault - no luck. The check compiles the testfile but on execution it segfaults. This happens on configure when i try to merge media-libs/smpeg-0.4.4-r4 although libsdl-1.2.7 is installed: 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 compiled, but did not run. This usually means *** that the run-time linker is not finding SDL or finding the wrong *** version of SDL. If it is not finding SDL, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point *** to the installed location Also, make sure you have run ldconfig if that *** is required on your system *** *** If you have an old version installed, it is best to remove it, although *** you may also be able to get things to work by modifying LD_LIBRARY_PATH configure: error: *** SDL version 1.2.0 not found! anyone any ideas what could be wrong? this started after upgrade from glibc 1006 to 1021 (there was no other upgrade that time!). i used mplayer with USE="sdl" - all fine - then that upgrade of glibc and it segfaulted. workaround is to merge mplayer without "sdl" USE-Flag. but now i want to play some games that base on SDL so it needs to be fixed. thats why i decided to report it now because i see no way to solve it. :( anyone on ~x86 system with libsdl installed having that issue? Reproducible: Always Steps to Reproduce: 1. emerge media-libs/smpeg-0.4.4-r4 2. 3. anomalie ~ # emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-rc2-ano3 i686) ================================================================= System uname: 2.6.10-rc2-ano3 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.6.6 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -mtune=pentium4 -march=pentium4 -ffast-math -pipe -fforce-addr -fforce-mem -momit-leaf-frame-pointer -fomit-frame-pointer -fweb -ftracer -frename-registers" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=pentium4 -march=pentium4 -ffast-math -pipe -fforce-addr -fforce-mem -momit-leaf-frame-pointer -fomit-frame-pointer -fweb -ftracer -frename-registers -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distlocks maketest sandbox sfperms" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apache2 avi berkdb bitmap-fonts cdr cups curl dga dts dvd dvdr dvdread fastcgi fbcon gd gif glx gpm gtk gtk2 hardenedphp icq imap imlib ipv6 java jpeg ldap lesstif libwww mad mbox mmx mmx2 motif mpeg mysql ncurses nls nomalloccheck nptl nptlonly oggvorbis opengl pam pdflib perl png python qt quicktime readline sasl sdl sse sse2 ssl stats tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vhosts videos wmf wxwindows x86 xface xinerama xml xml2 xmms xprint xv xvid zlib video_cards_nvidia"
*** Bug 72344 has been marked as a duplicate of this bug. ***
Created attachment 44660 [details] strace of conftest .
anyone may sees something suspicious in that strace?
Attach the config.log as text/plain please.
Created attachment 44918 [details] config.log here it is.
remerge all that with CFLAGS and CXXFLAGS set to "-pipe" and see if that makes a difference. I was hoping to see some error in config.log but no such luck I guess.
yes, there is no error... it compiles well but it segfaults on run thats the strace for. hm, ill remerge libsdl and smpeg with "-pipe". any other packages i need to recompile?
remergeing libsdl with C[XX]FLAGS="-pipe" does not help.
Could be a gcc error. Try it with gcc-3.3 No telling how far down the issue is if it's a cflags problem. I'd try setting CFLAGS="-pipe" CXXFLAGS="-pipe" emerge -ev libsdl and see if that fixes it.
well, emerge -e libsdl did not really help. ill emerge glibc 1006 lets see if it is really glibc that does it here or something i have overlooked. there is another guy using latest ~x86 on his box and for him it works. Don't know why. last thing i can think of then is kernel.
ok i merged glibc 2.3.4.20041006 (using my standard [in]sane C[XX]FLAGS) and emerge smpeg does not fail on configure! it detects SDL well! Now i have an updated glibc snap from 1124 in my overlay. ill merge that and have a look. glibc Changelog notices a 'Avoid segfault' - may be i hit this one...
ok, I am wrong. even compiling app-compat stuff from newer glibc did not do the trick. there is definetely sth broken in glibc since 1021. (>1006)
ebuild 1006 bumped to 1018. without mdns. patch still breaks. mdns patch & ebuild changes are ok. anyone has a glibc snap between 1006 and 1018?
glibc 20041011 w/o fedora patches works! glibc 20041018 w/o fedora patches does not. bug between 1011 -> 1018
Created attachment 45006 [details, diff] glibc cvs diff from 1014 have a look at the ChangeLog: http://sources.redhat.com/ml/glibc-cvs/2004-q4/msg00201.html one of these changes did it.
Since this isn't a libsdl issue and seems to be a glibc issue, I'm pushing this to toolchain.
is there anyone that can separate the 3 ( dlmopen, namespacing, removal of GL(dl_loaded) ) changes taken in that diff so i can test each if it breaks my libsdl. would be great. thanks!
patch SDL-1.2.6-no_rpath.patch for libsdl from: http://ftp.uni-koeln.de/mirrors/fedora/linux/core/development/SRPMS/SDL-1.2.7-8.src.rpm fixed my issue! lala ^^
at the end. it is a libsdl patch needed. :)
Created attachment 45073 [details, diff] SDL-1.2.6-no_rpath.patch So.... you're claiming this patch fixes things for you?
it does not segfault anymore with that. :) and why should fedora add it if it is unnecessary? it just drops that linker flag from libsdl...
any chance getting this into portage or does this break something else I don't see atm? Thanks for info! :)
well, we don't just add stuff to ebuilds because it's in a fedora spec file. It's pretty suspicious that so far, you're the only one reporting this so no, it's not obvious yet that the patch should be added to the ebuild. I'd like to hear from the toolchain folks about this please.
sorry for trouble. :( just checked bug #52732 and it was that for meinproc after merging kdelibs-3.3.2 and as well for libsdl depending merges here. so this is duplicate of that one. no extra patch for libsdl necessary. dunno why glibc merge misses that file though...
dont worry about it ;) *** This bug has been marked as a duplicate of 52732 ***
Closing to clean up after bugzilla upgrade. reopen if closed in error. Thanks.
clean up bug list after bugzilla update