[strace/strace] Error building against musl libc - error: "__UAPI_DEF_IN6_ADDR_ALT" redefined (#177)
Chris Packham
notifications at github.com
Mon Mar 29 08:47:03 UTC 2021
Hi,
I'm trying to update crosstool-ng to include a newer strace version (current version supported is 5.8).
When building against musl libc I strike this error
```
[ALL ] In file included from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/bundled/linux/include/uapi/linux/in6.h:26,
[ALL ] from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/bundled/linux/include/uapi/linux/if_bridge.h:19,
[ALL ] from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/src/rtnl_mdb.c:16:
[ERROR] /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/bundled/linux/include/uapi/linux/libc-compat.h:109: error: "__UAPI_DEF_IN6_ADDR_ALT" redefined [-Werror]
[ALL ] 109 | #define __UAPI_DEF_IN6_ADDR_ALT 1
[ALL ] |
[ALL ] In file included from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/src/rtnl_mdb.c:15:
[ALL ] /home/x-tool/x-tools/arm-unknown-linux-musleabi/arm-unknown-linux-musleabi/sysroot/usr/include/netinet/in.h:401: note: this is the location of the previous definition
[ALL ] 401 | #define __UAPI_DEF_IN6_ADDR_ALT 0
[ALL ] |
[ALL ] cc1: all warnings being treated as errors
[ERROR] make[4]: *** [Makefile:6660: libstrace_a-rtnl_mdb.o] Error 1
[ALL ] make[4]: Leaving directory '/home/x-tool/.build/arm-unknown-linux-musleabi/build/build-strace/src'
[ERROR] make[3]: *** [Makefile:2404: all] Error 2
[ALL ] rm ioctlsort0.o ioctls_all0.h ioctlsort0
[ALL ] make[3]: Leaving directory '/home/x-tool/.build/arm-unknown-linux-musleabi/build/build-strace/src'
[ERROR] make[2]: *** [Makefile:601: all-recursive] Error 1
[ALL ] make[2]: Leaving directory '/home/x-tool/.build/arm-unknown-linux-musleabi/build/build-strace'
[ERROR] make[1]: *** [Makefile:506: all] Error 2
[ALL ] make[1]: Leaving directory '/home/x-tool/.build/arm-unknown-linux-musleabi/build/build-strace'
```
any suggestions?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/issues/177
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20210329/b4c440fb/attachment.htm>
More information about the Strace-devel
mailing list