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

Bug 442302

Summary: dev-util/xxdiff - gcc-4.7 build failure: previous declaration of ‘char** environ’ with ‘C++’ linkage conflicts with new declaration with ‘C’ linkage
Product: Gentoo Linux Reporter: Jason Lamb <jason>
Component: New packagesAssignee: Markos Chandras (RETIRED) <hwoarang>
Status: RESOLVED FIXED    
Severity: normal CC: qt
Priority: Normal Keywords: PATCH, UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://hg.furius.ca/public/xxdiff/rev/00d868ea5f4a
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 390247    
Attachments: dev-util/xxdiff-4.0_beta1_p20110426 complete build log
dev-util/xxdiff-4.0_beta1_p20110426 emerge --info

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
+