media-libs/faac-1.28-r3 fails to compile. Build dies with the following error mesg: rtphint.cpp:1289:38: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] Making all in frontend main.c:36:26: fatal error: mp4v2/mp4v2.h: No such file or directory compilation terminated. make[2]: *** [main.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 * ERROR: media-libs/faac-1.28-r3 failed (compile phase): * emake failed Reproducible: Always Steps to Reproduce: 1. emerge -1 faac 2. 3. Actual Results: Build fails in spot listed above. Expected Results: Compile and install faac. My emerge --info Portage 2.2.0_alpha104 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r1, 3.3.2-pf x86_64) ================================================================= System uname: Linux-3.3.2-pf-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.1 Timestamp of tree: Mon, 14 May 2012 12:45:01 +0000 app-shells/bash: 4.2_p28 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.3-r2, 3.2.3-r1 dev-util/cmake: 2.8.8-r2 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.9.3 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.11.5 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.6.3::my_local_overlay sys-devel/gcc-config: 1.7.1 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.3 (virtual/os-headers) sys-libs/glibc: 2.15-r1 Repositories: gentoo sunrise sabayon my_local_overlay Installed sets: @gst-plugins ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="!* /etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb" CONFIG_PROTECT_MASK="!* /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs candy collision-protect distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch parallel-install parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe -march=native" GENTOO_MIRRORS="http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.wetzlmayr.com/ http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.hoobly.com/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US" MAKEOPTS="-j3 -s" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/sabayon /usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X a52 aac aacplus aacs aalib acl acpi alsa amd64 amr analitza ass attica avahi berkdb bidi bittorrent bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr chm cli consolekit contrast corefonts cracklib crypt cups curl cxx dbus declarative designer-plugin desktopglobe dirac djvu dri dts dv dvd dvdr ebook emboss emovix encode exif faac faad fam fbcondecor fbsplash ffmpeg firefox fits flac fontconfig fortran g3dvl gdbm gdu gif gimp glibc-omitfp gnutls gphoto2 groupwise gstreamer hdri http httpd iconv ieee1394 imagemagick imlib indi ipv6 java javascript jbig jpeg jpeg2k kde kipi lame latex lcms ldap lensfun libass libnotify libsamplerate live lm_sensors lzma lzo mad matroska mdnsresponder-compat meanwhile mjpeg mms mmx mng modplug modules mp3 mp4 mpeg msn mudflap multilib musepack musicbrainz ncurses nls nptl nsplugin ntp nvidia offensive offlinehelp ogg openal opencl openexr opengl openmp oscar otr pam pango pcre pdf phonon plasma png policykit postproc ppds pppd ps python3 qalculate qt3support qt4 quicktime qwt rdesktop readline rtsp samba scanner schroedinger scim sdl semantic-desktop session skype smp sms sndfile solver soup sox spell sqlite sse sse2 ssl ssse3 startup-notification svg symlink taglib tcpd templates theora thumbnail tidy tiff truetype twolame udev unicode upnp usb vcd vcdx vlm vnc vorbis vpx wavpack webpresence wicd wifi winpopup wmf wxwidgets x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nv" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 311747 [details] build.log
Created attachment 311749 [details] build environment
emerge -pqv faac [ebuild R ] media-libs/faac-1.28-r3 USE="-static-libs"
This version of faac previously compiled and installed on my ~amd64 laptop with out issues. Now it fails to build no matter what I try doing.
From your build.log: checking whether MP4Create is declared... no configure: *** Building with internal mp4v2 *** Things what should be showing up: $ nm -D --defined-only /usr/lib64/libmp4v2.so.2.0.0 |grep MP4Create 000000000004d3b0 T MP4Create 000000000004d270 T MP4CreateEx $ qfile -v mp4v2.h media-libs/libmp4v2-1.9.1_p479 (/usr/include/mp4v2/mp4v2.h) If re-emerging libmp4v2 doesn't help, then attach config.log from the failed faac build too. It's in the temporary work directory in /var/tmp/portage...
reopen with requested data -> closing needinfo
Well I just got finished trying again with no success. I recompiled libmp4v2--1.9.1_p479 as directed then attempted to emerge faac but it failed in the same spot. I'm attaching the config.log you requested. TIA
Created attachment 311815 [details] config.log
(In reply to comment #8) > Created attachment 311815 [details] > config.log configure:15324: checking whether MP4Create is declared configure:15324: x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native conftest.c >&5 conftest.c:33:33: fatal error: mp4v2/mp4v2.h: No such file or directory All the libmp4v2 versions in Portage install this file, /usr/include/mp4v2/mp4v2.h, so where is your libmp4v2 coming from? Pastebin the build.log from media-libs/libmp4v2.
(In reply to comment #9) > (In reply to comment #8) > > Created attachment 311815 [details] > > config.log > > configure:15324: checking whether MP4Create is declared > configure:15324: x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native > conftest.c >&5 > conftest.c:33:33: fatal error: mp4v2/mp4v2.h: No such file or directory > > All the libmp4v2 versions in Portage install this file, > /usr/include/mp4v2/mp4v2.h, so where is your libmp4v2 coming from? > Pastebin the build.log from media-libs/libmp4v2. Samuli, I don't want to sound like an idiot, but I'm a truck driver not a programmer. As far as I know once the build completes portage deletes the everything entirely /var/tmp/portage/* So where is the build.log for the already emerged libmp4v2 located so I can upload it to pastebin? TIA
Portage doesn't save build.log's if you don't have PORT_LOGDIR set. You can set it in /etc/make.conf like: PORT_LOGDIR=/var/log/portage" Or you can simply emerge this one package like: # PORT_LOGDIR="/tmp" emerge -v1 --quiet-build=n libmp4v2 The build.log (it will have slightly different filename) will then appear in /tmp.
Created attachment 312251 [details] libmp4v2-1.9.1-r1.build.log Samuli, I've uploaded the build.log for media-libs/libmp4v2 that you requested. I hope this helps in finding a solution. On I side note: I recompiled all 1145 packages in my system yesterday and faac was the only one that failed to re-emerge. TIA
libmp4v2-1.9.1-r1 is special version designed only for binary-only applications, since you are on ~arch, you should have libmp4v2-1.9.1_p479 installed instead i've forced the correct SLOT in the ebuild now, thanks for reporting!
to clarify: libmp4v2-1.9.1 is OK libmp4v2-1.9.1-r1 is _NOT_ OK libmp4v2-1.9.1_p479 is OK
Thanks, it worked! When I synced today and saw the slotted libmp4v2 in the cue with the version I had installed scheduled to be uninstalled, I knew there had been a resolution. After the update I was able to reinstall faac with no issues. Thanks again for all of your work and efforts in making Gentoo the best distro, bar none! Rob