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

Bug 129472

Summary: mpeg4ip fails with -as-needed
Product: Gentoo Linux Reporter: Patrizio Bassi <patrizio.bassi>
Component: New packagesAssignee: Olivier Crete (RETIRED) <tester>
Status: RESOLVED FIXED    
Severity: normal CC: dlan, flameeyes, gent_bz, ssuominen, voyageur
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: mpeg4ip-as-needed.patch

Description Patrizio Bassi 2006-04-10 05:48:17 UTC
/bin/sh ../../libtool --tag=CXX --mode=link i686-pc-linux-gnu-g++ -D_REENTRANT -Wall -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated -Wformat=2 -Wpointer-arith -Wsign-compare -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math -DMPEG4IP -I/usr/include/SDL -D_REENTRANT  -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort -o mpeg_ps_info  ps_info.o ../../lib/gnu/libmpeg4ip_gnu.la ../../lib/mp4av/libmp4av.la ../../lib/mp4v2/libmp4v2.la libmpeg2_program.la  -ldl
i686-pc-linux-gnu-g++ -D_REENTRANT -Wall -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated -Wformat=2 -Wpointer-arith -Wsign-compare -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math -DMPEG4IP -I/usr/include/SDL -D_REENTRANT -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort -o .libs/mpeg_ps_info ps_info.o  ../../lib/gnu/.libs/libmpeg4ip_gnu.so ../../lib/mp4av/.libs/libmp4av.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/lib ../../lib/mp4v2/.libs/libmp4v2.so /usr/lib/gcc/i686-pc-linux-gnu/4.1.0/libstdc++.so ./.libs/libmpeg2_program.a -ldl
./.libs/libmpeg2_program.a(mpeg2ps.o): In function `mpeg2ps_get_video_stream_name':mpeg2ps.c:(.text+0x466): undefined reference to `h264_get_profile_level_string'
:mpeg2ps.c:(.text+0x49b): undefined reference to `mpeg2_type'
./.libs/libmpeg2_program.a(mpeg2ps.o): In function `mpeg2ps_get_video_stream_mp4_type':mpeg2ps.c:(.text+0x4f6): undefined reference to `mpeg2_profile_to_mp4_track_type'
./.libs/libmpeg2_program.a(mpeg2ps.o): In function `read_to_next_pes_header':mpeg2ps.c:(.text+0x77a): undefined reference to `MP4AV_Mpeg3FindNextStart'
./.libs/libmpeg2_program.a(mpeg2ps.o): In function `mpeg2ps_stream_find_h264_video_frame':mpeg2ps.c:(.text+0x1906): undefined reference to `h264_is_start_code'
:mpeg2ps.c:(.text+0x1944): undefined reference to `h264_find_next_start_code'
:mpeg2ps.c:(.text+0x19a7): undefined reference to `h264_is_start_code'
:mpeg2ps.c:(.text+0x19c8): undefined reference to `h264_find_next_start_code'
:mpeg2ps.c:(.text+0x19e2): undefined reference to `h264_nal_unit_type'
:mpeg2ps.c:(.text+0x1a07): undefined reference to `h264_nal_unit_type_is_slice'
./.libs/libmpeg2_program.a(mpeg2ps.o): In function `mpeg2ps_stream_find_mpeg_video_frame':mpeg2ps.c:(.text+0x1ae7): undefined reference to `MP4AV_Mpeg3FindNextStart'
:mpeg2ps.c:(.text+0x1b84): undefined reference to `MP4AV_Mpeg3FindNextStart'
./.libs/libmpeg2_program.a(mpeg2ps.o): In function `mpeg2ps_stream_read_frame':mpeg2ps.c:(.text+0x1e02): undefined reference to `MP4AV_Mp3GetNextFrame'
:mpeg2ps.c:(.text+0x1e59): undefined reference to `h264_is_start_code'
:mpeg2ps.c:(.text+0x1e6d): undefined reference to `h264_nal_unit_type'
:mpeg2ps.c:(.text+0x20eb): undefined reference to `MP4AV_Ac3ParseHeader'
./.libs/libmpeg2_program.a(mpeg2ps.o): In function `mpeg2ps_get_video_frame':mpeg2ps.c:(.text+0x2586): undefined reference to `MP4AV_Mpeg3PictHdrType'
./.libs/libmpeg2_program.a(mpeg2ps.o): In function `mpeg2ps_seek_video_frame':mpeg2ps.c:(.text+0x2df6): undefined reference to `h264_access_unit_is_sync'
:mpeg2ps.c:(.text+0x2ec5): undefined reference to `MP4AV_Mpeg3PictHdrType'
:mpeg2ps.c:(.text+0x2f29): undefined reference to `MP4AV_Mpeg3PictHdrType'
./.libs/libmpeg2_program.a(mpeg2ps.o): In function `mpeg2ps_init':mpeg2ps.c:(.text+0x3b4d): undefined reference to `h264_nal_unit_type'
:mpeg2ps.c:(.text+0x3b61): undefined reference to `h264_find_next_start_code'
:mpeg2ps.c:(.text+0x4271): undefined reference to `MP4AV_Mpeg3ParseSeqHdr'
:mpeg2ps.c:(.text+0x42f4): undefined reference to `MP4AV_Mp3HeaderFromBytes'
:mpeg2ps.c:(.text+0x42fe): undefined reference to `MP4AV_Mp3GetChannels'
:mpeg2ps.c:(.text+0x430f): undefined reference to `MP4AV_Mp3GetHdrSamplingRate'
:mpeg2ps.c:(.text+0x4320): undefined reference to `MP4AV_Mp3GetHdrSamplingWindow'
:mpeg2ps.c:(.text+0x4331): undefined reference to `MP4AV_Mp3GetBitRate'
:mpeg2ps.c:(.text+0x4348): undefined reference to `MP4AV_Mp3GetHdrLayer'
:mpeg2ps.c:(.text+0x4428): undefined reference to `h264_read_seq_info'
:mpeg2ps.c:(.text+0x45a1): undefined reference to `MP4AV_Ac3ParseHeader'
collect2: ld returned 1 exit status
make[3]: *** [mpeg_ps_info] Error 1
make[3]: Leaving directory `/var/tmp/portage/mpeg4ip-1.4.1/work/mpeg4ip-1.4.1/lib/mpeg2ps'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/mpeg4ip-1.4.1/work/mpeg4ip-1.4.1/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mpeg4ip-1.4.1/work/mpeg4ip-1.4.1'
make: *** [all] Error 2

!!! ERROR: media-video/mpeg4ip-1.4.1 failed.
Call stack:
  ebuild.sh, line 1526:   Called dyn_compile
  ebuild.sh, line 923:   Called src_compile
  mpeg4ip-1.4.1.ebuild, line 123:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Olivier Crete (RETIRED) gentoo-dev 2006-04-10 07:34:42 UTC
emerge info please
Comment 2 Patrizio Bassi 2006-04-10 07:54:27 UTC
why needed? removing the flag from that Makefile fixed it.

however:

Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16.2 i686)
=================================================================
System uname: 2.6.16.2 i686 Pentium III (Katmai)
Gentoo Base System version 1.12.0_pre17
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.91.0.6-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://gentoo.ngi.it"
LANG="it_IT.utf8"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/myportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X X509 Xaw3d a52 aac aalib accessibility acl acpi activefilter adns alsa apache2 apm arts asf audiofile avi bash-completion berkdb bidi bitmap-fonts bootsplash browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi chroot clamav cli client codecs crypt css ctype cups curl dba dbus dga dhcp directfb djbfft dri edl eds emboss encode ethereal exif expat extraengine faac faad fam fastbuild fbcon ffmpeg fftw firefox flac flash foomaticdb force-cgi-redirect foreign-package fortran ftp gcj gd gdbm geometry ggi gif gimp gimpprint glibc-omitfp glut glx gnokii gnome gnutls gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile h264 hal iconv idea idn imagemagick imap imlib innodb ipod irda irmc isdnlog jack java javascript jikes jit joystick jpeg jpeg2k junit justify kde kdeenablefinal kerberos kqemu lame lcd lcms ldap libcaca libclamav libg++ libgda libusb libwww lirc live lm_sensors lua lzo mad mailwrapper matroska md5sum mdb memlimit mhash mikmod mime mmx mmx2 mmxext mng mono motif mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer msn msnextras musepack mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neXt network ngui nls nntp no_wxgtk1 nobsh nopie nossp noxalan nptl nptlonly nsplugin oav odbc ogg openal opengl openssl operanom2 oss pam pcre pda pdf pdflib pdo pear perl php png pnp posix postgres ppds pppd pthreads python qemu-fast qhull qt quicktime quotas readline real rrdtool rtc ruby samba scanner sdl server session sftplogging sguil simplexml slang slp snortsam soap sockets socks5 softmmu softquota spamassassin speex spell spl sqlite3 sse ssl subject-rewrite svg svga tcltk tcpd tetex tga theora tiff tokenizer truetype truetype-fonts trusted type1-fonts udev unicode usb userlocales vidix vorbis win32codecs wma wmf wmv wsconvert wxwindows x264 xanim xchatdccserver xchattext xcomposite xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xsl xv xvid xvm xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev input_devices_joystick kernel_linux linguas_it userland_GNU video_cards_i128 video_cards_fbdev video_cards_vesa video_cards_vga video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS
Comment 3 Olivier Crete (RETIRED) gentoo-dev 2006-04-10 08:51:49 UTC
CFLAGS -mmmx -msse -ffast-math  are unsupported (and sse/mmx is implied by pentium3 anyways)

and any custom LDFLAGS is unsupported, if you change them you are on your own.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-04-10 09:00:55 UTC
(In reply to comment #3)

Then please filter --as-needed. For the rationale of these bugs, please see http://www.gentoo.org/proj/en/qa/asneeded.xml - having to needlessly rebuild half of your system like w/ recent expat upgrade really sucks.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-10 09:31:09 UTC
Wait, don't filter it, I'll take care of preparing a patch for it as soon as I can find time to breath...

But CC me to these bugs or I won't see them :(
Comment 6 Patrizio Bassi 2006-04-10 10:33:21 UTC
Olivier, check the summary of this bug, you can't say fitler as needed flag, when the bug is about them :)

diego, waiting for your patch, i'll test asap
Comment 7 Patrizio Bassi 2006-05-05 08:03:04 UTC
diego did you take a look at the patch?
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-05 08:08:41 UTC
Time is time, I'd need 48 hours days for making sure to have time for everything.
I'll do, but you have to accept that it might take a bit for me to handle this.
Comment 9 Patrizio Bassi 2006-05-05 08:21:52 UTC
sure no need to rush.

i just tought you missed this of forgot. care your health :)
Comment 10 Patrizio Bassi 2006-05-12 03:45:01 UTC
i can confirm same problem with lastest 1.5 version
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-05-15 19:23:35 UTC
*** Bug 133431 has been marked as a duplicate of this bug. ***
Comment 12 Gergan Penkov 2006-06-11 06:52:26 UTC
Created attachment 88906 [details, diff]
mpeg4ip-as-needed.patch

don't forget to run eautoreconf after that, and I'm not sure how correct is the patch, as the thing is majorly borked... but it works here
Comment 13 Patrizio Bassi 2007-02-26 15:27:53 UTC
diego, ping you for patch in portage :)

sorry for bothering.
Comment 14 Patrizio Bassi 2007-04-17 20:04:24 UTC
can the patch be committed to portage pls?
Comment 15 Olivier Crete (RETIRED) gentoo-dev 2007-04-17 21:27:52 UTC
Ok, now that diego has left.. I had to look at it myself, it looks fine. Its in cvs in -r2.
Comment 16 Antonio Quartulli 2008-09-14 09:52:04 UTC
has the patch been inserted in the portage?