Closed milos1290 closed 3 years ago
Thanks for the heads up. I knew I fixed it. I just couldn't find the commit.
I have the latest code from master that includes that PR (^^) but I have the same issue to build android version. ¿Any idea how to fix that? Thanks
Any help here please? 🙏🏻 @milos1290 @tanersener
error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
exit(0);
^
conftest.c:4:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
@mattsff This is the actual error here. It is printed in src/nettle/config.log
.
The solution is to:
1- Manually add #include <stdlib.h>
in all code snippets that call exit(0)
, exit (0)
or exit(1)
in src/nettle/aclocal.m4
2- re-build nettle
with --reconf-nettle
option
@mattsff the way i've fixed it was to copy the change from iOS PR changes into android-nettle.sh
${SED_INLINE} 's/exit(0)/return 0/g' ${BASEDIR}/src/${LIB_NAME}/configure
${SED_INLINE} 's/exit (0)/return 0/g' ${BASEDIR}/src/${LIB_NAME}/configure
@mattsff the way i've fixed it was to copy the change from iOS PR changes into android-nettle.sh
${SED_INLINE} 's/exit(0)/return 0/g' ${BASEDIR}/src/${LIB_NAME}/configure ${SED_INLINE} 's/exit (0)/return 0/g' ${BASEDIR}/src/${LIB_NAME}/configure
It works.
Description
Fails to build nettle dependency.
Expected behavior Build passes
Current behavior Building of nettle fails
Logs nettle/config.log
build.log
Environment