Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365731 - gegl-0.1.6 fails to build with "ff-load.c:79: error: duplicate case value"
Summary: gegl-0.1.6 fails to build with "ff-load.c:79: error: duplicate case value"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 4 votes (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
: 365755 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-02 16:16 UTC by Randy Barlow
Modified: 2011-05-05 16:42 UTC (History)
7 users (show)

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


Attachments
build.log (build.log,92.16 KB, text/x-log)
2011-05-02 16:19 UTC, Randy Barlow
Details
/var/tmp/portage/media-libs/gegl-0.1.6/temp/0.1.6-ffmpeg.patch.out (0.1.6-ffmpeg.patch.out,3.12 KB, text/plain)
2011-05-04 16:03 UTC, Martin Walch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Barlow 2011-05-02 16:16:51 UTC
I've noticed that there are two other bug reports for this version of gegl, and also for this very line on this very file:

http://bugs.gentoo.org/show_bug.cgi?id=365531
http://bugs.gentoo.org/show_bug.cgi?id=365433

However, my error message is different than those are, so I thought that I should file a separate report. I apologize if this one ends up being considered a duplicate.

From my build log:

ff-load.c: In function 'print_error':
ff-load.c:79: error: duplicate case value
ff-load.c:72: error: previously used here

Reproducible: Always

Steps to Reproduce:
1.Try to build gegl-0.1.6



Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.5, libc-0-r0, 2.6.36-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r8-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-1.12.14
Timestamp of tree: Mon, 02 May 2011 16:00:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=core2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j9"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb branding bzip2 cairo caps cjk cli consolekit cracklib crypt cups cxx dbus device-mapper doc dri dts dvd dvdr eds emboss encode evo exif faac fam ffmpeg firefox flac fortran gdbm gdu gif gimp gnome gnome-keyring gnutls gpm gstreamer gtk iconv ipv6 jpeg lame lcms ldap libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qemu qt3support readline sdl session spell sqlite sse sse2 ssl startup-notification svg sysfs tcpd templates threads tiff truetype udev unicode usb vim-syntax vorbis x264 xcb xml xorg xscreensaver xulrunner xv xvid 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" CAMERAS="canon" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="canon" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTDIR_OVERLAY
Comment 1 Randy Barlow 2011-05-02 16:19:25 UTC
Created attachment 271885 [details]
build.log
Comment 2 Randy Barlow 2011-05-02 16:20:16 UTC
*** This bug has been confirmed by popular vote. ***
Comment 3 Randy Barlow 2011-05-02 20:22:50 UTC
USE="-ffmpeg" allows this package to build, as a workaround.
Comment 4 Mike Gilbert gentoo-dev 2011-05-03 00:53:27 UTC
*** Bug 365755 has been marked as a duplicate of this bug. ***
Comment 5 Michael Mysinger 2011-05-03 03:02:05 UTC
same error on stable x86
Comment 6 Myckel Habets 2011-05-03 18:19:21 UTC
Don't add x86 if you don't know what we do. x86 leaving.
Comment 7 Filipe Dios 2011-05-03 19:38:45 UTC
Me too, on amd64
Comment 8 Martin Walch 2011-05-04 00:18:07 UTC
> #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H
> #include <libavformat/avformat.h>
> #else
> #include <avformat.h>
> #endif
> …
> static void
> print_error (const char *filename, int err)
> {
>   switch (err)
>    {
>     case AVERROR(EINVAL): …
>
>     case AVERROR_INVALIDDATA: …
>
>     }
> }

These two case values are identical. AVERROR is included via libavformat/avformat.h from libavutil/error.h that says:

#if LIBAVUTIL_VERSION_MAJOR < 51
#define AVERROR_INVALIDDATA AVERROR(EINVAL)

and avutil.h defines:
#define LIBAVUTIL_VERSION_MAJOR 50



I think this problem has been introduced with the patch
> files/0.1.6-ffmpeg.patch
Comment 9 Federico Cuello 2011-05-04 13:30:22 UTC
(In reply to comment #8)
> [..]
> I think this problem has been introduced with the patch
> files/0.1.6-ffmpeg.patch

The patch has been updated and this bug should be fixed now
Comment 10 Martin Walch 2011-05-04 16:03:29 UTC
Created attachment 272097 [details]
/var/tmp/portage/media-libs/gegl-0.1.6/temp/0.1.6-ffmpeg.patch.out

Sorry, I get this error:

>>> Preparing source in /var/tmp/portage/media-libs/gegl-0.1.6/work/gegl-0.1.6 ...
 * Applying gegl-doubledestdir.diff ...                                                                                                                   [ ok ]
 * Applying 0.1.6-ffmpeg.patch ...

 * Failed Patch: 0.1.6-ffmpeg.patch !
 *  ( /usr/portage/media-libs/gegl/files/0.1.6-ffmpeg.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/media-libs/gegl-0.1.6/temp/0.1.6-ffmpeg.patch.out
Comment 11 Brett Royles 2011-05-04 20:37:40 UTC
I am getting the same as comment #10

 Failed Patch: 0.1.6-ffmpeg.patch !
 *  ( /usr/portage/media-libs/gegl/files/0.1.6-ffmpeg.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/media-libs/gegl-0.1.6/temp/0.1.6-ffmpeg.patch.out



cat /var/tmp/portage/media-libs/gegl-0.1.6/temp/0.1.6-ffmpeg.patch.out 
***** 0.1.6-ffmpeg.patch *****

==============================

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < '/usr/portage/media-libs/gegl/files/0.1.6-ffmpeg.patch'

==============================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN gegl-0.1.6.old//operations/external/ff-load.c gegl-0.1.6/operations/external/ff-load.c
|--- gegl-0.1.6.old//operations/external/ff-load.c   2011-01-24 19:03:30.000000000 -0300
|+++ gegl-0.1.6/operations/external/ff-load.c    2011-05-04 09:59:48.910379742 -0300
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
==============================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < '/usr/portage/media-libs/gegl/files/0.1.6-ffmpeg.patch'

==============================
patching file operations/external/ff-load.c
Hunk #1 FAILED at 69.
Hunk #2 FAILED at 278.
2 out of 2 hunks FAILED -- saving rejects to file operations/external/ff-load.c.rej
==============================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch < '/usr/portage/media-libs/gegl/files/0.1.6-ffmpeg.patch'

==============================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN gegl-0.1.6.old//operations/external/ff-load.c gegl-0.1.6/operations/external/ff-load.c
|--- gegl-0.1.6.old//operations/external/ff-load.c   2011-01-24 19:03:30.000000000 -0300
|+++ gegl-0.1.6/operations/external/ff-load.c    2011-05-04 09:59:48.910379742 -0300
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
==============================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch < '/usr/portage/media-libs/gegl/files/0.1.6-ffmpeg.patch'

==============================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN gegl-0.1.6.old//operations/external/ff-load.c gegl-0.1.6/operations/external/ff-load.c
|--- gegl-0.1.6.old//operations/external/ff-load.c   2011-01-24 19:03:30.000000000 -0300
|+++ gegl-0.1.6/operations/external/ff-load.c    2011-05-04 09:59:48.910379742 -0300
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
==============================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < '/usr/portage/media-libs/gegl/files/0.1.6-ffmpeg.patch'

==============================
missing header for unified diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN gegl-0.1.6.old//operations/external/ff-load.c gegl-0.1.6/operations/external/ff-load.c
|--- gegl-0.1.6.old//operations/external/ff-load.c   2011-01-24 19:03:30.000000000 -0300
|+++ gegl-0.1.6/operations/external/ff-load.c    2011-05-04 09:59:48.910379742 -0300
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
Comment 12 CBke -Left- bye 2011-05-05 01:05:45 UTC
patch worked for me amd64
Comment 13 Andrei Voropaev 2011-05-05 10:38:12 UTC
Just got the same problem. The patch 0.1.6-ffmpeg.patch was applied successfully,but compilation failed with the same error. The USE flags where
"cairo exif ffmpeg jpeg mmx png sdl sse svg v4l".
Comment 14 Andrei Voropaev 2011-05-05 10:49:26 UTC
Sorry. I was wrong. Didn't pay attention to the date of Comment 9. After I did emerge --sync the compilation was successful.
Comment 15 Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-05 10:58:14 UTC
Ok guys, lets consider this fixed.
Comment 16 Martin Walch 2011-05-05 14:51:16 UTC
Works fine for me now, too. Thanks for fixing this.
Comment 17 Brett Royles 2011-05-05 16:42:33 UTC
sorted here as well thank you very much ;)