Le mercredi 25 janvier 2012 18:30:57, Scott Tsai a écrit :
On Tue, 24 Jan 2012 23:28:48 +0100, Kevin Kofler wrote:
> Alain Portal wrote:
>> Kicad doesn't build with gcc-4.7 and I don't understand anything with
>> c++.
>> Can somebody help me?
>>
>>
http://koji.fedoraproject.org/koji/taskinfo?taskID=3730441
>>
http://lists.fedoraproject.org/pipermail/devel/2011-
December/160723.html
>>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29131
>
> The declarations in the bundled boost-polygon header are in the wrong
> order.
> Reordering them should fix the build failure, but the package must be
> fixed to use the system boost-polygon (it's included in the current
> version of Boost), bundling the code is a violation of our packaging
> guidelines.
I managed to fix the build by applying two patches.
One to boost-polygon:
https://bugzilla.redhat.com/show_bug.cgi?id=784654
The second to kicad:
https://www.gitorious.org/fedora-packages/kicad/commit/
fa6a4e5f901bb044f270108c7559d18c9f15ee07
Both patches are short and I'd appreciate someone with stronger C++
skills to take a look at them.
Alain, once the boost-polygon / gcc-4.7 bug in RHBZ 784654 is fixed you
can pull the packaging changes from
https://www.gitorious.org/fedora-
packages/kicad/
Many thanks to you!
I applied the first patch to be sure to be able to compile the next kicad stable release
I'm working on and which is awaited.
In a second effort, I'll work on packaging kicad with the Fedora and EPEL boost
libraries.
Regards,
Alain