graphics/opencv2-core: compiler error on CURRENT: error: 'stddef.h' file not found

Dimitry Andric dim at FreeBSD.org
Fri Oct 7 11:59:25 UTC 2016


On 07 Oct 2016, at 13:43, O. Hartmann <ohartman at zedat.fu-berlin.de> wrote:
> 
> Am Fri, 7 Oct 2016 13:27:19 +0200
> Dimitry Andric <dim at FreeBSD.org> schrieb:
>> On 07 Oct 2016, at 10:26, O. Hartmann <ohartman at zedat.fu-berlin.de> wrote:
...
>>> In file included
>>> from /usr/ports/graphics/opencv2-core/work/opencv-2.4.13.1/modules/core/include/opencv2/core/core.hpp:53:
>>> In file included from /usr/include/c++/v1/algorithm:624: In file included
>>> from /usr/include/c++/v1/initializer_list:47: /usr/include/c++/v1/cstddef:43:15: fatal
>>> error: 'stddef.h' file not found #include_next <stddef.h>
>> 
>> So for some reason, on your system, the compilation flags include
>> -isystem /usr/include/include, which is rather strange.  I would not
>> expect this to break compilation in the fashion you are seeing.  Do you
>> have an /usr/include/include directory on your system, by any chance?
> 
> YES :-(
> 
> /usr/include/include does exist ...

Right, so that is pretty strange.  Maybe it was an artefact of some
failed installation?  In any case, I would blow it away.

Btw, it looks like the eigen port uses pkgconfig, can you please post
the contents of your /usr/local/libdata/pkgconfig/eigen3.pc file?

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20161007/68f53bfa/attachment.sig>


More information about the freebsd-ports mailing list