[kde-freebsd] [Bug 210919] audio/qsampler: Build fails in qt5 QtCore at including stddef.h

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jul 9 10:11:08 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210919

Dimitry Andric <dim at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim at FreeBSD.org

--- Comment #4 from Dimitry Andric <dim at FreeBSD.org> ---
This is a problem similar to some other ports that I have fixed in bug 209103
and bug 209921.  For unknown reasons, some ports like to add -isystem
/usr/include to their CFLAGS and CXXFLAGS.  For C++ programs, this messes up
the include path order.

The normal include path order for C++ programs without any -I flags is:

#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/v1
 /usr/bin/../lib/clang/3.8.0/include
 /usr/include
End of search list.

However, with -isystem /usr/include, the order becomes:

ignoring duplicate directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
 /usr/include/c++/v1
 /usr/bin/../lib/clang/3.8.0/include
End of search list.

The libc++ headers rely on being able to #include_next<> any C standard
headers, and this is defeated by moving /usr/include to before
/usr/include/c++/v1.

For this port, the solution is also to find some way of getting rid of the the
-isystem /usr/include option.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kde-freebsd mailing list