Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#913 - Expat 2.2.2 entropy problem #5873

Closed
openwrt-bot opened this issue Jul 17, 2017 · 1 comment
Closed

FS#913 - Expat 2.2.2 entropy problem #5873

openwrt-bot opened this issue Jul 17, 2017 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

zokl:

problem with compilation of expat 2.2.2.

make[4]: Entering directory `/home/flowtester/caes/CAES/ethershaper/build_dir/host/expat-2.2.2' /usr/bin/env bash ./libtool --verbose --mode=compile gcc -std=gnu99 -I./lib -I. -O2 -I/home/flowtester/caes/CAES/ethershaper/staging_dir/host/include -I/home/flowtester/caes/CAES/ethershaper/staging_dir/host/usr/include -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -fno-strict-aliasing -I/home/flowtester/caes/CAES/ethershaper/staging_dir/host/include -I/home/flowtester/caes/CAES/ethershaper/staging_dir/host/usr/include -DHAVE_EXPAT_CONFIG_H -o lib/xmlparse.lo -c lib/xmlparse.c libtool: compile: gcc -std=gnu99 -I./lib -I. -O2 -I/home/flowtester/caes/CAES/ethershaper/staging_dir/host/include -I/home/flowtester/caes/CAES/ethershaper/staging_dir/host/usr/include -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -fno-strict-aliasing -I/home/flowtester/caes/CAES/ethershaper/staging_dir/host/include -I/home/flowtester/caes/CAES/ethershaper/staging_dir/host/usr/include -DHAVE_EXPAT_CONFIG_H -c lib/xmlparse.c -fPIC -DPIC -o lib/.libs/xmlparse.o lib/xmlparse.c:56:3: error: #error You do not have support for any sources of high quality entropy enabled. For end user security, that is probably not what you want. Your options include: * Linux + glibc >=2.25 (getrandom): HAVE_GETRANDOM, * Linux + glibc <2.25 (syscall SYS_getrandom): HAVE_SYSCALL_GETRANDOM, * BSD / macOS (arc4random_buf): HAVE_ARC4RANDOM_BUF, * libbsd (arc4random_buf): HAVE_ARC4RANDOM_BUF + HAVE_LIBBSD, * Windows (RtlGenRandom): _WIN32. If insist on not using any of these, bypass this error by defining XML_POOR_ENTROPY; you have been warned. For CMake, one way to pass the define is: cmake -DCMAKE_C_FLAGS="-pipe -O2 -DHAVE_SYSCALL_GETRANDOM" . If you have reasons to patch this detection code away or need changes to the build system, please open a bug. Thank you! # error \ ^ make[4]: *** [lib/xmlparse.lo] Error 1 make[4]: Leaving directory `/home/flowtester/caes/CAES/ethershaper/build_dir/host/expat-2.2.2' make[3]: *** [/home/flowtester/caes/CAES/ethershaper/build_dir/host/expat-2.2.2/.built] Error 2 make[3]: Leaving directory `/home/flowtester/caes/CAES/ethershaper/tools/expat' make[2]: *** [tools/expat/compile] Error 2 make[2]: Leaving directory `/home/flowtester/caes/CAES/ethershaper' make[1]: *** [/home/flowtester/caes/CAES/ethershaper/staging_dir/target-x86_64_musl/stamp/.tools_compile_yynyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyyyyynynnyyynny] Error 2 make[1]: Leaving directory `/home/flowtester/caes/CAES/ethershaper' make: *** [world] Error 2

Version 2.2.0 works OK. The problem occurs for packages from tools/expat and package/feeds/packages/expat.

tested platform is x86 and mips.

@openwrt-bot
Copy link
Author

diizzyy:

Fixed in head/master/trunk
lede-project/source@7c727c6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant