Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357487 - =media-libs/libvpx-1.1.0: vpx_config.asm:73: error: redefinition of `CONFIG_A52'
Summary: =media-libs/libvpx-1.1.0: vpx_config.asm:73: error: redefinition of `CONFIG_A52'
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:
: 396527 452188 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-05 07:10 UTC by Aaron Lewis
Modified: 2013-01-15 22:36 UTC (History)
3 users (show)

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


Attachments
libvpx-0.95-r1 compile log (media-libs:libvpx-0.9.5-r1:20110305-065548.log,14.06 KB, text/plain)
2011-03-05 07:11 UTC, Aaron Lewis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Lewis 2011-03-05 07:10:52 UTC
Hi , i cant compile media-libs/libvpx-0.9.5-r1 on my system , even libvpx-9999.

emerge --info:
Portage 2.2.0_alpha26 (default/linux/x86/10.0/desktop, gcc-4.5.1, glibc-2.13-r1, 2.6.37-tuxonice i686)
=================================================================
System uname: Linux-2.6.37-tuxonice-i686-Intel-R-_Core-TM-2_Duo_CPU_T5870_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 05 Mar 2011 06:30:01 +0000
app-shells/bash:     4.1_p10
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.5, 4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo kde blackhat-overlay
Installed sets: @plasmas, @system, @twistedset, @xorg-driver-laptop
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -mfpmath=sse -msse -msse2 -msse3 -mmmx -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="**"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -pipe -mfpmath=sse -msse -msse2 -msse3 -mmmx -fomit-frame-pointer"
DISTDIR="**"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://www.gentoo-portage.com/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="en en_US zh_CN"
MAKEOPTS="-j2 -s "
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="/var/lib/layman/kde /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa artswrappersuid audiofile bash-completion berkdb bidi bluetooth bzip2 cairo cdda cddb cjk cli consolekit cracklib crypt cups cxx dbus dga dri dts dv dvb dvd dvdr dvdread emboss encode exif fam fame fat ffmpeg firefox flac fontconfig foomatic-db fortran freetype gcj gdbm gdu gif gimpprint gmp gnutls gphoto2 gpm gsm gtk hal hdaps iconv ieee1394 imap inotify irc irda jabber jack jpeg kde kdehiddenvisibility kerberos lame lcd lcms libnotify live lm_sensors lzo mad mail matroska mikmod mjpeg mmx mng modules mozdevelop mp3 mp3rtp mp4 mpeg msn mudflap musepack musicbrainz ncurses network nls nptl nptlonly nsplugin ntfs ogg openal openexr opengl openmp pam pango pcmcia pcre pdf perl png policykit ppds pppd private-headers pulseaudio python qt3support qt4 rar rdesktop readline rss sasl sdl session slp smp speex spell sse sse2 sse3 ssl startup-notification stream svg sysfs tcpd theora thinkpad tiff truetype udev unicode usb v4l2 vorbis wifi win32codecs wmf x264 x86 xcb xine xinerama xml xorg xpm xprint xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="prefork" CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 adc65 aox barbie canon clicksmart310 digigr8 digita directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 konica largan lg_gsm mars mustek pccam300 pccam600 ptp2 ricoh samsung sierra smal sonix soundvision spca50x sq905 stv0674 stv0680 sx330z template" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US zh_CN" NGINX_MODULES_HTTP="geoip secure_link access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_req limit_zone map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi" NGINX_MODULES_MAIL="smtp" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel fglrx" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always

Steps to Reproduce:
1. emerge libvpx
2.
3.
Comment 1 Aaron Lewis 2011-03-05 07:11:22 UTC
Created attachment 264803 [details]
libvpx-0.95-r1 compile log
Comment 2 Aaron Lewis 2011-03-23 00:46:42 UTC
Well , i've figured out the problem.

It's because some #define constants in vpx_config.h was generated twice.

a quick solution is to modify src_configure() and add such things:

sort vpx_config.h | uniq > temp_vpx_config.h
mv temp_vpx_config.h vpx_config.h
Comment 3 Ben Kohler gentoo-dev 2013-01-15 21:27:57 UTC
This seems to be caused by setting CODECS="foo bar baz" in make.conf, and it's picked up in libvpx's build system somewhere.  You probably have CODECS="a52 .." which is why CONFIG_A52 is the first one it complains about.

If anyone wants to try reproducing this bug, do CODECS="a52" emerge libvpx, or even CODECS="foo" emerge libvpx.

Unset CODECS or set it to something safer like MY_CODECS etc, and see if the issue persists.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2013-01-15 22:29:21 UTC
*** Bug 396527 has been marked as a duplicate of this bug. ***
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2013-01-15 22:29:51 UTC
*** Bug 452188 has been marked as a duplicate of this bug. ***
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2013-01-15 22:36:00 UTC
+  15 Jan 2013; Samuli Suominen <ssuominen@gentoo.org> libvpx-0.9.6.ebuild,
+  libvpx-0.9.7.ebuild, libvpx-0.9.7-r1.ebuild, libvpx-1.0.0.ebuild,
+  libvpx-1.0.0-r1.ebuild, libvpx-1.1.0.ebuild, libvpx-9999.ebuild:
+  Unset variable CODECS which is picked up by the build system wrt #357487.
+  Thanks to Aaron Lewis for reporting and Ben Kohler for solution.