Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72343 - all packages which use libsdl break on configure (~x86 system)
Summary: all packages which use libsdl break on configure (~x86 system)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Games
: 72344 (view as bug list)
Depends on:
Reported: 2004-11-24 06:25 UTC by Hanno Zysik (geki)
Modified: 2011-09-14 20:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

strace of conftest (sdlconf.error,10.18 KB, text/plain)
2004-11-24 12:47 UTC, Hanno Zysik (geki)
config.log (config.log,8.35 KB, text/plain)
2004-11-29 03:47 UTC, Hanno Zysik (geki)
glibc cvs diff from 1014 (glibc-20041013.diff,90.42 KB, patch)
2004-11-30 10:46 UTC, Hanno Zysik (geki)
Details | Diff
SDL-1.2.6-no_rpath.patch (SDL-1.2.6-no_rpath.patch,415 bytes, patch)
2004-12-01 12:33 UTC, Mr. Bones. (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Zysik (geki) 2004-11-24 06:25:35 UTC
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/ 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

anomalie ~ # emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-,
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-
Headers:  sys-kernel/linux26-headers-
Libtools: sys-devel/libtool-1.5.2-r7
CFLAGS="-O2 -mtune=pentium4 -march=pentium4 -ffast-math -pipe -fforce-addr
-fforce-mem -momit-leaf-frame-pointer -fomit-frame-pointer -fweb -ftracer
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"
FEATURES="autoaddcvs autoconfig candy ccache distlocks maketest sandbox sfperms"
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"
Comment 1 Hanno Zysik (geki) 2004-11-24 12:07:21 UTC
*** Bug 72344 has been marked as a duplicate of this bug. ***
Comment 2 Hanno Zysik (geki) 2004-11-24 12:47:55 UTC
Created attachment 44660 [details]
strace of conftest

Comment 3 Hanno Zysik (geki) 2004-11-24 12:49:00 UTC
anyone may sees something suspicious in that strace?
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2004-11-28 17:10:24 UTC
Attach the config.log as text/plain please.
Comment 5 Hanno Zysik (geki) 2004-11-29 03:47:30 UTC
Created attachment 44918 [details]

here it is.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2004-11-29 03:51:57 UTC
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.
Comment 7 Hanno Zysik (geki) 2004-11-29 03:59:50 UTC
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?
Comment 8 Hanno Zysik (geki) 2004-11-29 04:09:44 UTC
remergeing libsdl with C[XX]FLAGS="-pipe" does not help.
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2004-11-29 04:45:36 UTC
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.
Comment 10 Hanno Zysik (geki) 2004-11-29 15:51:12 UTC
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.
Comment 11 Hanno Zysik (geki) 2004-11-29 18:09:18 UTC
ok i merged glibc (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...
Comment 12 Hanno Zysik (geki) 2004-11-30 02:15:38 UTC
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)
Comment 13 Hanno Zysik (geki) 2004-11-30 05:11:05 UTC
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?
Comment 14 Hanno Zysik (geki) 2004-11-30 06:58:12 UTC
glibc 20041011 w/o fedora patches works!
glibc 20041018 w/o fedora patches does not.

bug between 1011 -> 1018
Comment 15 Hanno Zysik (geki) 2004-11-30 10:46:09 UTC
Created attachment 45006 [details, diff]
glibc cvs diff from 1014

have a look at the ChangeLog:

one of these changes did it.
Comment 16 Mr. Bones. (RETIRED) gentoo-dev 2004-11-30 11:42:23 UTC
Since this isn't a libsdl issue and seems to be a glibc issue, I'm pushing this to toolchain.
Comment 17 Hanno Zysik (geki) 2004-12-01 05:24:12 UTC
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!
Comment 18 Hanno Zysik (geki) 2004-12-01 07:26:12 UTC
patch SDL-1.2.6-no_rpath.patch for libsdl from:

fixed my issue! lala ^^
Comment 19 Hanno Zysik (geki) 2004-12-01 07:30:08 UTC
at the end. it is a libsdl patch needed. :)
Comment 20 Mr. Bones. (RETIRED) gentoo-dev 2004-12-01 12:33:19 UTC
Created attachment 45073 [details, diff]

So.... you're claiming this patch fixes things for you?
Comment 21 Hanno Zysik (geki) 2004-12-01 14:31:58 UTC
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...
Comment 22 Hanno Zysik (geki) 2004-12-02 05:45:17 UTC
any chance getting this into portage or does this break something else I don't see atm? Thanks for info! :)
Comment 23 Mr. Bones. (RETIRED) gentoo-dev 2004-12-09 01:54:29 UTC
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.
Comment 24 Hanno Zysik (geki) 2004-12-12 16:49:53 UTC
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...
Comment 25 SpanKY gentoo-dev 2004-12-12 17:12:52 UTC
dont worry about it ;)

*** This bug has been marked as a duplicate of 52732 ***
Comment 26 Mr. Bones. (RETIRED) gentoo-dev 2005-05-19 09:06:49 UTC
Closing to clean up after bugzilla upgrade.  reopen if closed in error.  Thanks.
Comment 27 Mr. Bones. (RETIRED) gentoo-dev 2011-09-14 20:40:07 UTC
clean up bug list after bugzilla update