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

Bug 585554

Summary: media-plugins/caps-plugins-0.9.15 fails to build with GCC 6: call of overloaded 'div(uint&, uint&)' is ambiguous
Product: Gentoo Linux Reporter: Aric Belsito <lluixhi>
Component: Current packagesAssignee: Professional Audio Applications Maintainers <proaudio>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=632096
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 582084    
Attachments: Proposed patch.

Description Aric Belsito 2016-06-10 21:26:24 UTC
Created attachment 437090 [details, diff]
Proposed patch.

Build-time failure because caps-plugins passes unsigned integers into a call to div, while the C standard has div implemented for int's, long's and long long's.
Comment 1 Aric Belsito 2016-06-10 21:26:40 UTC
Debian bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816568
Comment 2 David Seifert gentoo-dev 2016-09-16 08:16:39 UTC
commit 18c01435cb944c9686562aa62908e361039ae807
Author: David Seifert <soap@gentoo.org>
Date:   Fri Sep 16 10:15:46 2016 +0200

    media-plugins/caps-plugins: Allow for compiling with GCC 6
    
    Gentoo-bug: 585554
    * EAPI=6
    * Patch borrowed from Debian