[Bug 213768] editors/libreoffice: Fix build with lang/gcc5 on 11.0-RELEASE

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Oct 27 21:44:36 UTC 2016


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

--- Comment #21 from Kenneth Salerno <kennethsalerno at yahoo.com> ---
(In reply to Jung-uk Kim from comment #20)
Ok, I could test with -include cstdio instead. It should already be included
for every preprocess, that's one of the two major problems here with the gcc5
port.

The first problem is that the lang/gcc5 includes for C++ seem to be missing a
lot of things the system /usr/include/c++/v1 have, things that should be
brought in as internal includes for named includes in the source, which is why
I need to explicitely include stdio/cstdio here.

The second problem is g++5 expects C99 defined to enter the include bodies,
which is addressed in the patch as well.

If the supported compiler for x86 ports is clang, what's the harm in this patch
as part of the if !clang? At worst it's redundant for other arches with a
supported g++.

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


More information about the freebsd-office mailing list