Created attachment 429592 [details] logs.tar.xz I tracked the file causing it to "${S}/buildtools/wafadmin/Tools/python.py" and the function to "check_python_headers", which uses `python_LDFLAGS` variable filled from distutils. This variable is overridable via ENV var of the same name. Thus my quick fix was: ``` --- a/samba-4.2.9.ebuild +++ b/samba-4.2.9.ebuild @@ -198,7 +198,7 @@ ) fi - CPPFLAGS="-I${SYSROOT}/usr/include/et ${CPPFLAGS}" \ + CPPFLAGS="-I${SYSROOT}/usr/include/et ${CPPFLAGS}" python_LDFLAGS= \ waf-utils_src_configure ${myconf[@]} } ```
I had same problem with python compiled by gcc and then samba by clang, both with different LDFLAGS. Recompiling python with clang problem disappeared.