Bug#878705: opencv: FTBFS on x32: sysctl(.h) unsupported
Mattia Rizzolo
mattia at debian.org
Mon Oct 16 15:18:37 UTC 2017
On Mon, Oct 16, 2017 at 10:41:56AM -0400, Aaron M. Ucko wrote:
> Thanks for the quick response! I can't readily test a fix[1], but
> suspect the problem is the second half of
>
> > #elif defined __APPLE__ || !defined __GNU__
oh, right...
> which results in trying to #include <sys/sysctl.h> on a wide range of
> architectures. (Only the Hurd predefines __GNU__.) Seeing as cmake
> detects that <sys/sysctl.h> is unusable on x32, I'd suggest merging and
> simplifying the second and third branches to something along the lines of
Actually, I wonder why we need that !defined __GNU__ at all. It's added
by the patch used to support !linux archs, but nonetheless, sysctl() is
only used in code sourranded by '#if defined __APPLE__' anyway.
I'm trying a patch now.
--
regards,
Mattia Rizzolo
GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
more about me: https://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20171016/ae9d07b5/attachment.sig>
More information about the debian-science-maintainers
mailing list