Summary: | media-libs/opencv-2.4.3 uses True and and False as class names - clashes with #defines in other headers | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jean-Francois Ostiguy <jfostiguy> |
Component: | [OLD] KDE | Assignee: | Andreas K. Hüttel <dilfridge> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | creffett, kde, morozov.andrey.vmk |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://code.opencv.org/issues/2529 | ||
Whiteboard: | tracking upstream | ||
Package list: | Runtime testing required: | --- | |
Attachments: | patch for opencv-2.3.1 (still applies but breaks 2.4.3 build) |
Description
Jean-Francois Ostiguy
2011-12-08 22:49:24 UTC
Created attachment 297489 [details, diff]
patch for opencv-2.3.1 (still applies but breaks 2.4.3 build)
Adding the patch here for completeness.
While I see the point of this, could you please file a bug at https://code.ros.org/trac/opencv/ and link to it here?! The other question is of course, your patch modifies publicly installed headers. It's in the end up to upstream to decide... Patch added in 2.3.1a-r1. Please still submit the upstream bug and link to it here. As of 2.4.3, this patch makes the build fail. Removed. Did you submit it upstream for review and integration? Reported upstream Might want to poke upstream again; they reported on the bug that it's "fixed" by adding #undef True and #undef False in 2.4.3 to prevent the collision with the other headers. Not sure if we consider that to really be fixing the issue. (In reply to comment #7) > Might want to poke upstream again; they reported on the bug that it's > "fixed" by adding #undef True and #undef False in 2.4.3 to prevent the > collision with the other headers. Not sure if we consider that to really be > fixing the issue. It's an incomplete and slighlty st&%/&%id fix (since now things might break if something calls True or False and expects the x11 definition). Having these names in a publicly exported interface just calls for trouble. However, unless sonething is actually reported broken, it probably makes no sense to keep this bug open. |