Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 113985

Summary: media-video/mjpegtools-1.8.0-r1 has SDL bindings despite -sdl use flag
Product: Gentoo Linux Reporter: Triffid Hunter <triffid_hunter>
Component: [OLD] LibraryAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Triffid Hunter 2005-11-29 22:17:20 UTC
currently installed mjpegtools is 1.6.2-r4

mjpegtools-1.8.0 fails in the same way

Reproducible: Always
Steps to Reproduce:
1. emerge -avC sdl
2. USE="-sdl" mjpegtools
3.

Actual Results:  
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I/usr/include -I../
utils -DLAVPLAY_VERSION=\"1.8.0\"   -march=i686 -mcpu=i686 -O2 -pipe -
march=athlon-tbird -maccumulate-outgoing-args -mcpu=athlon-tbird -momit-leaf-
frame-pointer -mfpmath=387 -mtune=athlon-tbird -fexpensive-optimizations -fmove-
all-movables -fomit-frame-pointer -fprefetch-loop-arrays -frerun-cse-after-loop 
-frerun-loop-opt -ftracer -mno-sse2 -pthread -Wall -Wunused -MT yuvplay.o -MD -
MP -MF ".deps/yuvplay.Tpo" -c -o yuvplay.o yuvplay.c; \
then mv -f ".deps/yuvplay.Tpo" ".deps/yuvplay.Po"; else rm -f ".deps/yuvplay.
Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc  -march=i686 -
mcpu=i686 -O2 -pipe -march=athlon-tbird -maccumulate-outgoing-args -mcpu=athlon-
tbird -momit-leaf-frame-pointer -mfpmath=387 -mtune=athlon-tbird -fexpensive-
optimizations -fmove-all-movables -fomit-frame-pointer -fprefetch-loop-arrays -
frerun-cse-after-loop -frerun-loop-opt -ftracer -mno-sse2 -pthread -Wall -
Wunused   -o yuvplay  yuvplay.o -lSDL -lpthread ../utils/libmjpegutils.la  -lm
i686-pc-linux-gnu-gcc -march=i686 -mcpu=i686 -O2 -pipe -march=athlon-tbird -
maccumulate-outgoing-args -mcpu=athlon-tbird -momit-leaf-frame-pointer -
mfpmath=387 -mtune=athlon-tbird -fexpensive-optimizations -fmove-all-movables -
fomit-frame-pointer -fprefetch-loop-arrays -frerun-cse-after-loop -frerun-loop-
opt -ftracer -mno-sse2 -pthread -Wall -Wunused -o .libs/yuvplay yuvplay.o  /usr/
lib/libSDL.so -ldl -lpthread ../utils/.libs/libmjpegutils.so -lm
yuvplay.o: In function `main':
yuvplay.c:(.text+0x366): undefined reference to `SDL_WM_SetCaption'
yuvplay.c:(.text+0x3c4): undefined reference to `SDL_SetVideoMode'
yuvplay.c:(.text+0x41f): undefined reference to `SDL_CreateYUVOverlay'
yuvplay.c:(.text+0x472): undefined reference to `SDL_DisplayYUVOverlay'
yuvplay.c:(.text+0x537): undefined reference to `SDL_LockSurface'
yuvplay.c:(.text+0x54c): undefined reference to `SDL_LockYUVOverlay'
yuvplay.c:(.text+0x5f8): undefined reference to `SDL_UnlockYUVOverlay'
yuvplay.c:(.text+0x60d): undefined reference to `SDL_DisplayYUVOverlay'
yuvplay.c:(.text+0x734): undefined reference to `SDL_UnlockSurface'
yuvplay.c:(.text+0x799): undefined reference to `SDL_FreeYUVOverlay'
collect2: ld returned 1 exit status


Expected Results:  
successful compile

# emerge info
Portage 2.0.53_rc7 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.13-
gentoo-r2.peladrine i686)
=================================================================
System uname: 2.6.13-gentoo-r2.peladrine i686 AMD Duron(tm) Processor
Gentoo Base System version 1.12.0_pre11
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.14
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon-tbird -maccumulate-outgoing-args -mcpu=athlon-
tbird -momit-leaf-frame-pointer -mfpmath=387 -mtune=athlon-tbird -fexpensive-
optimizations -fmove-all-movables -fomit-frame-pointer -fprefetch-loop-arrays -
frerun-cse-after-loop -frerun-loop-opt -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -pipe -march=athlon-tbird -maccumulate-outgoing-args -mcpu=athlon-
tbird -momit-leaf-frame-pointer -mfpmath=387 -mtune=athlon-tbird -fexpensive-
optimizations -fmove-all-movables -fomit-frame-pointer -fprefetch-loop-arrays -
frerun-cse-after-loop -frerun-loop-opt -ftracer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.isp.net.au/pub/gentoo/ http://mirror.aarnet.edu.
au/pub/gentoo/ http://mirror.pacific.net.au/linux/Gentoo"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.wa.3fl.net/gentoo-portage"
USE="3dnow 3dnowext X509 a52 aac acpi alsa apache2 apm atm audiofile avi bash-
completion berkdb big-tables bind-mysql bitmap-fonts bzip2 bzlib caps cli crypt 
curl dba dedicated divx4linux djbfft dts dvd eds emboss encode erandom exif 
expat extensions fame fastcgi ffmpeg flac foomaticdb fortran ftp gd gdbm gif 
glibc-omitfp gnutls gpm gstreamer gtk2 hardenedphp hpn idn imagemagick 
imagemajick imlib inifile ipv6 ithreads jpeg junit libg++ libwww linuxthreads-
tls lzo mad math mbox memlimit mhash mikmod mime mjpeg mmap mmx mmxext mod_perl 
mod_php mp3 mpeg mpm-worker mysql mysqli ncurses network nls nocd nojoystick 
novideo nptl offensive ogg oggvorbis oss pam pam_chroot pam_console 
pam_timestamp pcre pdflib perl php png posix pvm python readline samba session 
shared sharedext soap sockets socks5 sse ssl tcpd tetex threads tokenizer 
truetype-fonts type1-fonts udev usb userlocales vhosts vorbis win32codecs x86 
xinetd xml xml2 xmlrpc xsl xvid yv12 zip zlib userland_GNU kernel_linux 
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Steve Dibb (RETIRED) gentoo-dev 2006-06-22 08:19:10 UTC
Looks to me like there's no configure flag to disable SDL support.  If it's on the system, it will compile support for it.
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2006-07-19 13:24:23 UTC
Closing bug per no response, report as a feature request upstream if you like. :)

Thanks