net-libs/opal-3.6.7 compiles fine here but got removed from the tree today :( net-libs/opal-3.6.8 gives make[2]: Entering directory `/var/tmp/portage/net-libs/opal-3.6.8/work/opal-3.6.8/plugins/video/H.264' [CC] h264-x264.cxx [CC] ./shared/h264frame.cxx In file included from /usr/include/libavutil/avutil.h:81:0, from /usr/include/libavcodec/avcodec.h:30, from h264-x264.h:63, from h264-x264.cxx:38: /usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’: /usr/include/libavutil/common.h:154:47: error: ‘UINT64_C’ was not declared in this scope make[2]: *** [obj/h264-x264.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/net-libs/opal-3.6.8/work/opal-3.6.8/plugins/video/H.264' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/net-libs/opal-3.6.8/work/opal-3.6.8/plugins' make: *** [subdirs] Error 2 emake failed this http://code.google.com/p/ffmpegsource/issues/detail?id=11 could be a possible solution. Can we have net-libs/opal-3.6.7 back in the tree before this is fixed, please?
emerge --info and build.log please
Created attachment 252437 [details] build.log
# emerge --info =net-libs/opal-3.6.8 Portage 2.2.0_alpha1-r1 (default/linux/amd64/2008.0, gcc-4.5.1, glibc-2.11.2-r0, 2.6.36-ck1+ x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.36-ck1+-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-1.12.13 Timestamp of tree: Thu, 28 Oct 2010 22:00:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.5.1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) Repositories: gentoo x11 multilib vmware wirelay mozilla gentoo-quebec dev-zero voyageur zugaina local ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/qpsmtpd/plugins" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/portage /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.leaseweb.com/gentoo/ http://gentoo.tiscali.nl/ http://mirror.ovh.net/gentoo-distfiles/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/multilib /usr/local/portage/layman/vmware /usr/local/portage/layman/wirelay /usr/local/portage/layman/mozilla /usr/local/portage/layman/gentoo-quebec /usr/local/portage/layman/dev-zero /usr/local/portage/layman/voyageur /usr/local/portage/layman/zugaina /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext acl acpi alsa amd64 anthy bash-completion berkdb bzip2 cjk cleartype cli corefonts cracklib crypt cups custom-cflags custom-cpuopts cxx dbus dri ffmpeg fortran gdbm gmp gpm iconv immqt-bc innodb iproute2 ipv6 java6 jpeg lm_sensors lzo m17n-lib mmx mmx2 mmxext modules mp3 mpeg mudflap multilib multilib_abi_amd64 ncurses nls nptl nptlonly ogg openal opengl openmp oss pam pcre perl png pppd pulseaudio python qt3support readline scim session slang smp speex sse sse2 ssl startup-notification sysfs tcpd theora threads tiff truetype type1 unicode usb v4l v4l2 vorbis x264 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" APACHE2_MPMS="worker" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" MULTILIB_ABIS="amd64 x86" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="r600 radeon" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 254241 [details, diff] Fix the undefined UINT64_C macro error My guess is that FFMpeg library requires a macro, UINT64_C, which is defined by the STD C library stdint.h only if a certain symbol, __STDC_CONSTANT_MACROS, is defined (which doesn't happen by default). So FFMpeg defines that symbol before including stdint.h and it works. But the H26x plugin code in OPAL includes stdint.h before FFMpeg, and without defining that symbol since it does not directly require it. When it's turn for FFMpeg to be included, stdint.h has already been included (without the needed symbols), so it won't be included again. Therefore, no UINT64_C definition. My solution is to have OPAL always enable the definition of UINT64_C. Since I haven't ever played with Autoconf, the execution of this patch is non-orthodox. For some reason, the append-flags line in the current e-build is not enough in my case. I have tested this patch on top of net-libs/opal-3.6.8 on an amd64 Gentoo machine (media-video/ffmpeg-0.6_p25423, sys-libs/glibc-2.11.2-r3). It can be applied just after unpacking.
(In reply to comment #4) > Created an attachment (id=254241) [details] > Fix the undefined UINT64_C macro error > > My guess is that FFMpeg library requires a macro, UINT64_C, which is defined by > the STD C library stdint.h only if a certain symbol, __STDC_CONSTANT_MACROS, is > defined (which doesn't happen by default). > So FFMpeg defines that symbol before including stdint.h and it works. > But the H26x plugin code in OPAL includes stdint.h before FFMpeg, and without > defining that symbol since it does not directly require it. When it's turn for > FFMpeg to be included, stdint.h has already been included (without the needed > symbols), so it won't be included again. Therefore, no UINT64_C definition. > My solution is to have OPAL always enable the definition of UINT64_C. Since I > haven't ever played with Autoconf, the execution of this patch is non-orthodox. > For some reason, the append-flags line in the current e-build is not enough in > my case. > > I have tested this patch on top of net-libs/opal-3.6.8 on an amd64 Gentoo > machine (media-video/ffmpeg-0.6_p25423, sys-libs/glibc-2.11.2-r3). It can be > applied just after unpacking. > Doesn't solve the problem here :( [CC] ../common/dyna.cxx [CC] h264-x264.cxx In file included from /usr/include/libavutil/avutil.h:81:0, from /usr/include/libavcodec/avcodec.h:30, from h264-x264.h:63, from h264-x264.cxx:38: /usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’: /usr/include/libavutil/common.h:154:47: error: ‘UINT64_C’ was not declared in this scope In file included from /usr/include/libavutil/avutil.h:81:0, from /usr/include/libavcodec/avcodec.h:30, from ../common/dyna.h:68, from ../common/dyna.cxx:40: /usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’: /usr/include/libavutil/common.h:154:47: error: ‘UINT64_C’ was not declared in this scope make[2]: *** [obj/dyna.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [obj/h264-x264.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-libs/opal-3.6.8/work/opal-3.6.8/plugins/video/H.264' I am on amd64, media-video/ffmpeg-0.6 and sys-libs/glibc-2.11.2-r3
I just applied the proposed patch in a local overlay and it compiled without any issue. (opal-3.6.8-H26x-ffmpeg.patch)
Guys. I've backported similar patch from upstream and applied it in 3.6.8-r1. If problem persists, please, reopen.