Created
June 18, 2017 20:56
-
-
Save AmirIHz/3e3b7fb14a782dcdd0aa8aee71db7584 to your computer and use it in GitHub Desktop.
expat 2.2.1 compilation error (macOS/gcc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS: macOS 10.12.5 | |
CC: gcc-7 (GCC 7.1.0) | |
CXX: g++-7 (GCC 7.1.0) | |
$ ./configure CC=gcc-7 CXX=g++-7 | |
checking build system type... x86_64-apple-darwin16.6.0 | |
checking host system type... x86_64-apple-darwin16.6.0 | |
checking how to print strings... printf | |
checking for gcc... gcc-7 | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether gcc-7 accepts -g... yes | |
checking for gcc-7 option to accept ISO C89... none needed | |
checking for a sed that does not truncate output... /usr/local/bin/gsed | |
checking for grep that handles long lines and -e... /usr/local/bin/grep | |
checking for egrep... /usr/local/bin/grep -E | |
checking for fgrep... /usr/local/bin/grep -F | |
checking for ld used by gcc-7... /usr/bin/ld | |
checking if the linker (/usr/bin/ld) is GNU ld... no | |
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B | |
checking the name lister (/usr/bin/nm -B) interface... BSD nm | |
checking whether ln -s works... yes | |
checking the maximum length of command line arguments... 196608 | |
checking how to convert x86_64-apple-darwin16.6.0 file names to x86_64-apple-darwin16.6.0 format... func_convert_file_noop | |
checking how to convert x86_64-apple-darwin16.6.0 file names to toolchain format... func_convert_file_noop | |
checking for /usr/bin/ld option to reload object files... -r | |
checking for objdump... objdump | |
checking how to recognize dependent libraries... pass_all | |
checking for dlltool... dlltool | |
checking how to associate runtime and link libraries... printf %s\n | |
checking for ar... ar | |
checking for archiver @FILE support... no | |
checking for strip... strip | |
checking for ranlib... ranlib | |
checking for gawk... gawk | |
checking command to parse /usr/bin/nm -B output from gcc-7 object... ok | |
checking for sysroot... no | |
checking for a working dd... /bin/dd | |
checking how to truncate binary pipes... /bin/dd bs=4096 count=1 | |
checking for mt... no | |
checking if : is a manifest tool... no | |
checking for dsymutil... dsymutil | |
checking for nmedit... nmedit | |
checking for lipo... lipo | |
checking for otool... otool | |
checking for otool64... no | |
checking for -single_module linker flag... yes | |
checking for -exported_symbols_list linker flag... yes | |
checking for -force_load linker flag... yes | |
checking how to run the C preprocessor... gcc-7 -E | |
checking for ANSI C header files... yes | |
checking for sys/types.h... yes | |
checking for sys/stat.h... yes | |
checking for stdlib.h... yes | |
checking for string.h... yes | |
checking for memory.h... yes | |
checking for strings.h... yes | |
checking for inttypes.h... yes | |
checking for stdint.h... yes | |
checking for unistd.h... yes | |
checking for dlfcn.h... yes | |
checking for objdir... .libs | |
checking if gcc-7 supports -fno-rtti -fno-exceptions... no | |
checking for gcc-7 option to produce PIC... -fno-common -DPIC | |
checking if gcc-7 PIC flag -fno-common -DPIC works... yes | |
checking if gcc-7 static flag -static works... no | |
checking if gcc-7 supports -c -o file.o... yes | |
checking if gcc-7 supports -c -o file.o... (cached) yes | |
checking whether the gcc-7 linker (/usr/bin/ld) supports shared libraries... yes | |
checking dynamic linker characteristics... darwin16.6.0 dyld | |
checking how to hardcode library paths into programs... immediate | |
checking whether stripping libraries is possible... yes | |
checking if libtool supports shared libraries... yes | |
checking whether to build shared libraries... yes | |
checking whether to build static libraries... yes | |
checking for gcc... (cached) gcc-7 | |
checking whether we are using the GNU C compiler... (cached) yes | |
checking whether gcc-7 accepts -g... (cached) yes | |
checking for gcc-7 option to accept ISO C89... (cached) none needed | |
checking whether we are using the GNU C++ compiler... yes | |
checking whether g++-7 accepts -g... yes | |
checking how to run the C++ preprocessor... g++-7 -E | |
checking for ld used by g++-7... /usr/bin/ld | |
checking if the linker (/usr/bin/ld) is GNU ld... no | |
checking whether the g++-7 linker (/usr/bin/ld) supports shared libraries... yes | |
checking for g++-7 option to produce PIC... -fno-common -DPIC | |
checking if g++-7 PIC flag -fno-common -DPIC works... yes | |
checking if g++-7 static flag -static works... no | |
checking if g++-7 supports -c -o file.o... yes | |
checking if g++-7 supports -c -o file.o... (cached) yes | |
checking whether the g++-7 linker (/usr/bin/ld) supports shared libraries... yes | |
checking dynamic linker characteristics... darwin16.6.0 dyld | |
checking how to hardcode library paths into programs... immediate | |
checking for a BSD-compatible install... /usr/local/bin/ginstall -c | |
checking whether gcc-7 accepts -fexceptions... yes | |
checking for ANSI C header files... (cached) yes | |
checking whether byte ordering is bigendian... no | |
checking for an ANSI C-conforming const... yes | |
checking for size_t... yes | |
checking for memmove... yes | |
checking for bcopy... yes | |
checking for arc4random_buf (BSD or libbsd)... yes | |
checking for getrandom (Linux 3.17+, glibc 2.25+)... yes | |
checking fcntl.h usability... yes | |
checking fcntl.h presence... yes | |
checking for fcntl.h... yes | |
checking for unistd.h... (cached) yes | |
checking for off_t... yes | |
checking for stdlib.h... (cached) yes | |
checking for unistd.h... (cached) yes | |
checking for sys/param.h... yes | |
checking for getpagesize... yes | |
checking for working mmap... yes | |
checking for gcc-7 option to accept ISO C99... none needed | |
checking for gcc-7 option to accept ISO Standard C... (cached) none needed | |
checking for an ANSI C99-conforming __func__... yes | |
configure: creating ./config.status | |
config.status: creating Makefile | |
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting | |
config.status: creating expat.pc | |
config.status: creating run.sh | |
config.status: creating expat_config.h | |
config.status: expat_config.h is unchanged | |
config.status: executing libtool commands | |
$ make | |
/bin/sh ./libtool --verbose --mode=compile gcc-7 -I./lib -I. -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -fno-strict-aliasing -DHAVE_EXPAT_CONFIG_H -o lib/xmlparse.lo -c lib/xmlparse.c | |
libtool: compile: gcc-7 -I./lib -I. -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -fno-strict-aliasing -DHAVE_EXPAT_CONFIG_H -c lib/xmlparse.c -fno-common -DPIC -o lib/.libs/xmlparse.o | |
lib/xmlparse.c:626:23: error: expected ')' before '->' token | |
#define buffer (parser->m_buffer) | |
^ | |
In file included from lib/xmlparse.c:702:0: | |
/usr/include/sys/random.h:37:30: error: expected ';', ',' or ')' before 'size_t' | |
int getentropy(void* buffer, size_t size); | |
^~~~~~ | |
lib/xmlparse.c: In function 'writeRandomBytes_getrandom': | |
lib/xmlparse.c:721:9: warning: implicit declaration of function 'getrandom'; did you mean 'srandom'? [-Wimplicit-function-declaration] | |
getrandom(currentTarget, bytesToWrite, getrandomFlags); | |
^~~~~~~~~ | |
srandom | |
At top level: | |
lib/xmlparse.c:710:1: warning: 'writeRandomBytes_getrandom' defined but not used [-Wunused-function] | |
writeRandomBytes_getrandom(void * target, size_t count) { | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
make: *** [Makefile:208: lib/xmlparse.lo] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
There is a fix upstream for that now if you still need one: libexpat/libexpat@602e6c7