amazing ~ # emerge libmovtar Calculating dependencies ...done! >>> emerge (1 of 1) media-libs/libmovtar-0.1.3-r1 to / >>> md5 src_uri ;-) libmovtar-0.1.3.tar.gz >>> Unpacking source... >>> Unpacking libmovtar-0.1.3.tar.gz to /var/tmp/portage/libmovtar-0.1.3-r1/work>>> Source unpacked. * Patching ${S}/ltmain.sh ... * Applying portage-1.4.1.patch ... * Applying relink-1.4.1.patch ... * Applying sed-1.4.0.patch ... * Applying test-1.4.1.patch ... * Applying uClibc/libtool patches ... * econf: updating libmovtar-0.1.3/config.guess with /usr/share/gnuconfig/config.guess * econf: updating libmovtar-0.1.3/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-gtktest 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 for a BSD compatible install... /bin/install -c checking whether build environment is sane... yes checking for mawk... no checking for gawk... gawk checking whether make sets ${MAKE}... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking dependency style of i686-pc-linux-gnu-gcc... gcc3 checking for glib-config... /usr/bin/glib-config checking for GLIB - version >= 1.2.0... yes checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes checking dependency style of i686-pc-linux-gnu-gcc... (cached) gcc3 checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for ANSI C header files... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking for an ANSI C-conforming const... yes checking for inline... inline checking whether byte ordering is bigendian... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for size_t... yes checking return type of signal handlers... void checking for sdl-config... /usr/bin/sdl-config checking for sdl-config... (cached) /usr/bin/sdl-config checking for SDL - version >= 1.1.3... 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 Activating Intel MMX ! No JPEG-MMX lib found checking for jpeg_start_compress in -ljpeg-mmx... no checking for jpeg_start_compress in -ljpeg... yes configure: creating ./config.status config.status: creating Makefile config.status: creating rtjpeg/Makefile config.status: creating movtar-config libmovtar 0.1.3 build configuration : - Build movtar_play : - JPEG input in : yes - RTJPEG support : yes Making all in rtjpeg make[1]: Entering directory `/var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg' source='pnm2rtj.c' object='pnm2rtj.o' libtool=no \ depfile='.deps/pnm2rtj.Po' tmpdepfile='.deps/pnm2rtj.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ i686-pc-linux-gnu-gcc -DPACKAGE=\"libmovtar\" -DVERSION=\"0.1.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DRESULTS=\"libmovtar.a\ movtar_split\ movtar_unify\ movtar_yuv422\ movtar_index\ movtar_setinfo\" -I. -I. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Irtjpeg -march=i686 -O2 -pipe -fomit-frame-pointer -ffast-math -DRTJPEG -g -c `test -f pnm2rtj.c || echo './'`pnm2rtj.c source='RTjpeg.c' object='RTjpeg.o' libtool=no \ depfile='.deps/RTjpeg.Po' tmpdepfile='.deps/RTjpeg.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ i686-pc-linux-gnu-gcc -DPACKAGE=\"libmovtar\" -DVERSION=\"0.1.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DRESULTS=\"libmovtar.a\ movtar_split\ movtar_unify\ movtar_yuv422\ movtar_index\ movtar_setinfo\" -I. -I. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Irtjpeg -march=i686 -O2 -pipe -fomit-frame-pointer -ffast-math -DRTJPEG -g -c `test -f RTjpeg.c || echo './'`RTjpeg.c RTjpeg.c: In function `RTjpeg_b2s': RTjpeg.c:132: warning: use of cast expressions as lvalues is deprecated source='format.c' object='format.o' libtool=no \ depfile='.deps/format.Po' tmpdepfile='.deps/format.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ i686-pc-linux-gnu-gcc -DPACKAGE=\"libmovtar\" -DVERSION=\"0.1.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DRESULTS=\"libmovtar.a\ movtar_split\ movtar_unify\ movtar_yuv422\ movtar_index\ movtar_setinfo\" -I. -I. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Irtjpeg -march=i686 -O2 -pipe -fomit-frame-pointer -ffast-math -DRTJPEG -g -c `test -f format.c || echo './'`format.c i686-pc-linux-gnu-gcc -march=i686 -O2 -pipe -fomit-frame-pointer -ffast-math -DRTJPEG -g -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -o pnm2rtj pnm2rtj.o RTjpeg.o format.o -ljpeg source='rtjshow.c' object='rtjshow.o' libtool=no \ depfile='.deps/rtjshow.Po' tmpdepfile='.deps/rtjshow.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ i686-pc-linux-gnu-gcc -DPACKAGE=\"libmovtar\" -DVERSION=\"0.1.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DRESULTS=\"libmovtar.a\ movtar_split\ movtar_unify\ movtar_yuv422\ movtar_index\ movtar_setinfo\" -I. -I. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Irtjpeg -march=i686 -O2 -pipe -fomit-frame-pointer -ffast-math -DRTJPEG -g -c `test -f rtjshow.c || echo './'`rtjshow.c i686-pc-linux-gnu-gcc -march=i686 -O2 -pipe -fomit-frame-pointer -ffast-math -DRTJPEG -g -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -o rtjshow rtjshow.o RTjpeg.o format.o -ljpeg rtjshow.o(.text+0x144): In function `main': /var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg/rtjshow.c:99: undefined reference to `SDL_Init' rtjshow.o(.text+0x172):/var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg/rtjshow.c:106: undefined reference to `SDL_Quit' rtjshow.o(.text+0x197):/var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg/rtjshow.c:108: undefined reference to `SDL_SetVideoMode' rtjshow.o(.text+0x1b1):/var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg/rtjshow.c:109: undefined reference to `SDL_EventState' rtjshow.o(.text+0x1c3):/var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg/rtjshow.c:110: undefined reference to `SDL_EventState' rtjshow.o(.text+0x1d5):/var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg/rtjshow.c:111: undefined reference to `SDL_EventState' rtjshow.o(.text+0x233):/var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg/rtjshow.c:126: undefined reference to `SDL_UnlockSurface' rtjshow.o(.text+0x261):/var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg/rtjshow.c:129: undefined reference to `SDL_UpdateRect' rtjshow.o(.text+0x2ac):/var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg/rtjshow.c:116: undefined reference to `SDL_LockSurface' rtjshow.o(.text+0x21): In function `sig_handler': /var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg/rtjshow.c:49: undefined reference to `SDL_Quit' collect2: ld returned 1 exit status make[1]: *** [rtjshow] Error 1 make[1]: Leaving directory `/var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg' make: *** [all-recursive] Error 1 the problems with SDL test (like with GTK tests)..
see discussion on openjade bug
I'm assuming you were referring to bug #88721, also regarding the --as-needed compiler flag? If so, then please note that I am having the same problem with some pretty boring flags that worked the last time libmovtar was compiled, on March 5th. No --as-needed flags in sight. My i686-pc-linux-gnu-gcc has a timestamp of April 11, so perhaps the new version of GCC is the cause of the problem. I think this is worth another look. I can open a new bug report if you wish. i686-pc-linux-gnu-gcc -DPACKAGE=\"libmovtar\" -DVERSION=\"0.1.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DRESULTS=\"libmovtar.a\ movtar_split\ movtar_unify\ movtar_yuv422\ movtar_index\ movtar_setinfo\" -I. -I. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Irtjpeg -O3 -march=athlon-xp -funroll-loops -pipe -DRTJPEG -g -c `test -f rtjshow.c || echo './'`rtjshow.c RTjpeg.c: In function `RTjpeg_b2s': RTjpeg.c:132: warning: use of cast expressions as lvalues is deprecated i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -DRTJPEG -g -o pnm2rtj pnm2rtj.o RTjpeg.o format.o -ljpeg i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -DRTJPEG -g -o rtjshow rtjshow.o RTjpeg.o format.o -ljpeg rtjshow.o(.text+0x13e): In function `main': /tmp/rtjshow.c:99: undefined reference to `SDL_Init' rtjshow.o(.text+0x161):/tmp/rtjshow.c:106: undefined reference to `SDL_Quit' rtjshow.o(.text+0x18e):/tmp/rtjshow.c:108: undefined reference to `SDL_SetVideoMode' rtjshow.o(.text+0x1a7):/tmp/rtjshow.c:109: undefined reference to `SDL_EventState' rtjshow.o(.text+0x1bb):/tmp/rtjshow.c:110: undefined reference to `SDL_EventState' rtjshow.o(.text+0x1cf):/tmp/rtjshow.c:111: undefined reference to `SDL_EventState' rtjshow.o(.text+0x1f4):/tmp/rtjshow.c:116: undefined reference to `SDL_LockSurface' rtjshow.o(.text+0x237):/tmp/rtjshow.c:126: undefined reference to `SDL_UnlockSurface' rtjshow.o(.text+0x269):/tmp/rtjshow.c:129: undefined reference to `SDL_UpdateRect' rtjshow.o(.text+0x345): In function `sig_handler': /tmp/rtjshow.c:49: undefined reference to `SDL_Quit' collect2: ld returned 1 exit status sabre libmovtar # emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 12 2005, 07:21:56)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.2.3-r5, 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" CHOST="i686-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 /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/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" DISTDIR="/usr/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox severe sfperms strict userpriv" GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://gentoo.noved.org/ http://mirror.tucdemonic.org/gentoo/ http://distfiles.gentoo.org org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X alsa apache2 apm arts artswrappersuid avi berkdb bitmap-fonts bonobo cdparanoia cdr cjk crypt cups curl dga directfb divx4linux doc dvb dvd dvdread edl emacs emboss encode esd ethereal fam fastcgi fbcon flac foomaticdb fortran gb gd gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imagemagick imap imlib innodb ipv6 java jpeg junit kde libg++ libwww live lzo mad maildir mailwrapper matroska mikmod mmx mmx2 motif mozilla mp3 mpeg mysql mythtv nas ncurses network nls nptl odbc ofx ogg oggvorbis opengl oss pam pda pdflib perl png python qt quicktime quotes readline real rtc ruby samba sasl sdl slang slp spell sse ssl svga tcltk tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts unicode usb vorbis wmf xanim xml xml2 xmms xv xvid zeo zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Very strange. I rebuilt everything else that came up in the revdep-rebuild and then came back to libmovtar. It built okay this time. Perhaps it was a problem with the order of the ebuilds that revdep-rebuild wanted to use. Something in the set of =media-libs/libsdl-1.2.7-r3 =media-video/avifile-0.7.41.20041001-r1 =media-video/mjpegtools-1.6.2-r3 =media-video/mplayer-1.0_pre5-r5 =media-video/transcode-0.6.11 =sys-libs/lib-compat-1.4 =x11-misc/fireflies-2.06 was required first. In any case, my problem has vanished. One of those things that makes you go "hmmm".