On 5/15/19 2:30 AM, Osipov, Michael wrote:
I don't know how to solve this differently for now, but to disable
include_next in configure.ac if the compiler is aCC.
Better yet, let's stop using the -include option as it's not portable.
The -include option was used only to attempt to keep b2sum.c identical
with upstream, but we've already given up on that for other reasons, so
I installed the attached patches to fix this (the first patch drops
-include, the second patch lessens changes from upstream)
+ /opt/aCC/bin/aCC -AC99 -I. -I./lib -DHASH_ALGO_BLAKE2=1 -DHAVE_CONFIG_H -Ilib
-I./lib -Isrc -I./src -I/opt/ports/coreutils/include
-D_INCLUDE_STDC__SOURCE_199901 -g -c -o src/blake2/b2sum-blake2b-ref.o
src/blake2/blake2b-ref.c +Maked
"./lib/unistd.h", line 627: error #2035: #error directive: "Please include
config.h first."
#error "Please include config.h first."
^
"./lib/unistd.h", line 629: error #2077-D: this declaration has no storage
class or type specifier
_GL_INLINE_HEADER_BEGIN
^
"./lib/unistd.h", line 741: error #2065: expected a ";"
_GL_CXXALIAS_SYS (chdir, int, (const char *file) _GL_ARG_NONNULL ((1)));
^
"./lib/unistd.h", line 2147: error #2077-D: this declaration has no storage
class or type specifier
_GL_INLINE_HEADER_END
^
"./lib/stdlib.h", line 665: error #2065: expected a ";"
_GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size));
^
5 errors detected in the compilation of "src/blake2/blake2b-ref.c".