Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548316 - dev-util/diffball-1.0.1 fails to compile with gcc-5.1
Summary: dev-util/diffball-1.0.1 fails to compile with gcc-5.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rafael Martins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-5
  Show dependency tree
 
Reported: 2015-05-01 10:39 UTC by Martin Väth
Modified: 2016-04-02 21:49 UTC (History)
2 users (show)

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


Attachments
build log (dev-util:diffball-1.0.1:20150504-094431.log,86.09 KB, text/plain)
2015-05-04 09:49 UTC, Martin Väth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2015-05-01 10:39:50 UTC
dev-util/diffball-1.0.1 fails to compile with gcc-5
Probably the most simple fix is to add -std=gnu90 to the CFLAGS
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2015-05-02 23:15:46 UTC
Need a build log.
Comment 2 Martin Väth 2015-05-03 21:07:10 UTC
The linking fails with undefined references of the type

libdiffball/.libs/libdiffball.so: undefined reference to `RHash_cleanse'
(and 5 others)

Which is clear since we have

include/diffball/hash.h:inline signed int RHash_cleanse([...]);
libdiffball/hash.c:RHash_cleanse([...])

Under c90 this is legal, but under newer C dialects, this will inline RHash_cleanse and not export it.
Comment 3 Martin Väth 2015-05-04 09:49:03 UTC
Created attachment 402606 [details]
build log
Comment 4 David Seifert gentoo-dev 2016-04-02 21:49:25 UTC
commit ac593a5e7f2472d3651bdfb6551497449fd9853f
Author: David Seifert <soap@gentoo.org>
Date:   Sat Apr 2 23:48:10 2016 +0200

    dev-util/diffball: add -std=gnu89 to CFLAGS to restore pre-GCC5 semantics
    
    Gentoo-Bug: 548316
    * EAPI=6