Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30977 - media-libs/libmovtar-0.1.3-r1 Fails to link during compilation
Summary: media-libs/libmovtar-0.1.3-r1 Fails to link during compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-12 10:20 UTC by Lisa Seelye (RETIRED)
Modified: 2003-10-29 21:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lisa Seelye (RETIRED) gentoo-dev 2003-10-12 10:20:49 UTC
gcc  -march=pentium3 -O3 -pipe -DRTJPEG -g   -o rtjshow  rtjshow.o RTjpeg.o format.o -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread  -ljpeg 
gcc  -march=pentium3 -O3 -pipe -DRTJPEG -g   -o pnm2rtj  pnm2rtj.o RTjpeg.o format.o -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread  -ljpeg 
rtjshow.o(.text+0x192): In function `main':
/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+0x1ab):/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+0x1bf):/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+0x1d3):/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+0x1f8):/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+0x23b):/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+0x26d):/var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg/rtjshow.c:129: undefined reference to `SDL_UpdateRect'
collect2: ld returned 1 exit status
make[1]: *** [rtjshow] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/libmovtar-0.1.3-r1/work/libmovtar-0.1.3/rtjpeg'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/libmovtar-0.1.3-r1 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! (no error message)


=====
Portage 2.0.49-r9 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.10p1
distcc 2.11 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i386-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.noved.org/ ftp://gentoo.noved.org/"
MAKEOPTS="-j5"
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="x86 apm foomaticdb libg++ mad mikmod xmms berkdb slang readline svga guile sdl gpm -motif -tetex apache2 -qt xml xml2 -java -tcltk -X -gtk -gnome -alsa -3dfx -aalib -arts 3dnow -avi -cups crypt -doc -encode ethereal -evo gd gdbm gif -gtk2 -icc icc-gpo imlib ipv6 jpeg -kde libwww mbox mmx -mozilla mysql -mpeg -nas ncurses -nls oav oggvorbis -opengl -oss pam pdflib perl png python samba sasl spell sse ssl tcpd tiff truetype zlib -xv -quicktime"
Comment 1 Brandy Westcott (RETIRED) gentoo-dev 2003-10-12 19:02:00 UTC
libmovtar needs to link against a version of libSDL.so that has been
compiled with video support. Recompiling libsdl with any of the following
USE flags is a workaround: 'X dga xv fbcon directfb ggi svga aalib opengl'.

I understand that portage-2.0.50 will allow us to specify dependencies
with particular USE flags which is really what is needed to resolve
these types of problems.
Comment 2 Max Kalika (RETIRED) gentoo-dev 2003-10-19 22:33:41 UTC
How about in the mean time we do something like this:

pkg_setup() {
    local needed_flags="X dga xv fbcon directfb ggi svga aalib opengl"
    local libsdl_use="$(</var/db/pkg/`best_version media-libs/libsdl`/USE)"
    for flag in ${needed_flags} ; do
        if [ "`has ${flag} ${libsdl_use}`" ] ; then
            einfo "Found ${flag} video-out support in libSDL"
            return 0
        fi
    done

    eerror "libSDL needs video-out support. Please set one of the following"
    eerror "USE flags and re-emerge media-libs/libsdl:"
    eerror "    X dga xv fbcon directfb ggi svga aalib opengl"
    die "libSDL is missing video-out support"
}
Comment 3 Max Kalika (RETIRED) gentoo-dev 2003-10-19 22:42:47 UTC
Not my package, please reassign.
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2003-10-21 16:26:53 UTC
seems to be an issue with libsdl
Comment 5 SpanKY gentoo-dev 2003-10-29 21:05:14 UTC
ok, ive added local flags noaudio, novideo, and nojoystick to libsdl ...
please sync up in a little while and re-emerge libsdl-1.2.6-r1 ...

this way those subsystems are enabled (per the defaults) ... but if a user
*really* wants them gone, they can remove em ... oh and it's their problem
if it breaks something ;)