Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144656 - media-video/mjpegtools-1.8.0-r1 fails to build with --as-needed
Summary: media-video/mjpegtools-1.8.0-r1 fails to build with --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-08-21 09:26 UTC by Matthias Schwarzott
Modified: 2006-08-25 06:49 UTC (History)
2 users (show)

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 Matthias Schwarzott gentoo-dev 2006-08-21 09:26:40 UTC
media-video/mjpegtools-1.8.0-r1 fails to build with LDFLAGS="-Wl,--as-needed".

i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -fno-strict-aliasing -pthread -Wall -Wunused -Wl,--as-needed -o .libs/yuvplay yuvplay.o  /usr/lib/libSDL.so -ldl -lpthread ../utils/.libs/libmjpegutils.so -lm
creating yuvplay
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I/usr/include -I../utils -DLAVPLAY_VERSION=\"1.8.0\"   -O2 -march=athlon-xp -fomit-frame-pointer -pipe -fno-strict-aliasing -pthread -Wall -Wunused -MT lavrec.o -MD -MP -MF ".deps/lavrec.Tpo" -c -o lavrec.o lavrec.c; \
        then mv -f ".deps/lavrec.Tpo" ".deps/lavrec.Po"; else rm -f ".deps/lavrec.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc  -O2 -march=athlon-xp -fomit-frame-pointer -pipe -fno-strict-aliasing -pthread -Wall -Wunused  -Wl,--as-needed -o lavrec  lavrec.o ../utils/libmjpegutils.la  liblavrec.la liblavfile.la liblavjpeg.la  -lm
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -fno-strict-aliasing -pthread -Wall -Wunused -Wl,--as-needed -o .libs/lavrec lavrec.o  ../utils/.libs/libmjpegutils.so ./.libs/liblavrec.so ./.libs/liblavfile.so -L/usr/include/jpeg-mmx ./.libs/liblavjpeg.so /usr/lib/libjpeg-mmx.so -lm
./.libs/liblavrec.so: undefined reference to `lav_fileno'
./.libs/liblavrec.so: undefined reference to `lav_query_polarity'
./.libs/liblavrec.so: undefined reference to `lav_strerror'
./.libs/liblavrec.so: undefined reference to `lav_query_APP_marker'
./.libs/liblavrec.so: undefined reference to `lav_write_audio'
./.libs/liblavrec.so: undefined reference to `lav_query_APP_length'
./.libs/liblavrec.so: undefined reference to `lav_open_output_file'
./.libs/liblavrec.so: undefined reference to `encode_jpeg_raw'
./.libs/liblavrec.so: undefined reference to `lav_close'
./.libs/liblavrec.so: undefined reference to `lav_write_frame'
collect2: ld returned 1 exit status
make[2]: *** [lavrec] Error 1
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0'
make: *** [all] Error 2

!!! ERROR: media-video/mjpegtools-1.8.0-r1 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  mjpegtools-1.8.0-r1.ebuild, line 94:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2006-08-22 06:31:39 UTC
This bug should block bug #129413
Comment 2 Matthias Schwarzott gentoo-dev 2006-08-25 06:49:04 UTC
Commited fix to CVS.