Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442302 - dev-util/xxdiff - gcc-4.7 build failure: previous declaration of ‘char** environ’ with ‘C++’ linkage conflicts with new declaration with ‘C’ linkage
Summary: dev-util/xxdiff - gcc-4.7 build failure: previous declaration of ‘char** envi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL: https://hg.furius.ca/public/xxdiff/re...
Whiteboard:
Keywords: PATCH, UPSTREAM
Depends on:
Blocks: gcc-4.7
  Show dependency tree
 
Reported: 2012-11-08 02:53 UTC by Jason Lamb
Modified: 2013-02-17 11:26 UTC (History)
1 user (show)

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


Attachments
dev-util/xxdiff-4.0_beta1_p20110426 complete build log (xxdiff-4.0_beta1_p20110426-build.log,8.97 KB, text/plain)
2012-11-08 02:56 UTC, Jason Lamb
Details
dev-util/xxdiff-4.0_beta1_p20110426 emerge --info (xxdiff-4.0_beta1_p20110426-emerge.info,5.97 KB, text/plain)
2012-11-08 02:56 UTC, Jason Lamb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Lamb 2012-11-08 02:53:41 UTC
Using gcc-4.7, dev-util/xxdiff-4.0_beta1_p20110426 fails compile phase at the point of the following error messages;

In file included from util.cpp:29:0:
./main.h:38:15: error: previous declaration of ‘char** environ’ with ‘C++’ linkage
In file included from util.cpp:46:0:
/usr/include/unistd.h:545:15: error: conflicts with new declaration with ‘C’ linkage

Reproducible: Always




Upstream patch that fixes this error is at;

https://hg.furius.ca/public/xxdiff/rev/00d868ea5f4a
Comment 1 Jason Lamb 2012-11-08 02:56:12 UTC
Created attachment 328764 [details]
dev-util/xxdiff-4.0_beta1_p20110426 complete build log
Comment 2 Jason Lamb 2012-11-08 02:56:36 UTC
Created attachment 328766 [details]
dev-util/xxdiff-4.0_beta1_p20110426 emerge --info
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-11-12 18:56:35 UTC
Upstream patch looks silly to me, but the bottom half would work.
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2012-11-30 20:39:25 UTC
+  30 Nov 2012; Markos Chandras <hwoarang@gentoo.org>
+  +files/xxdiff-4.0_beta1_p20110426-gcc47.patch,
+  xxdiff-4.0_beta1_p20110426.ebuild:
+  Apply upstream patch to fix building with gcc-4.7. Bug #442302
+