[Samba] Compiler output from waf build?
Jonathan Cox
joncox at alum.mit.edu
Mon Jul 22 13:39:35 UTC 2024
I also tried to build Samba 4 on Solaris, but I found WAF completely incomprehensible compared to CMake, for example. The main problem is that Samba uses WAF, but then they essentially wrote an entirely new build system on top of WAF in Python just to script all of the things WAF can't do.
Therefore, to fix any build issues, one first has to learn WAF, a build system almost no projects use, then one has to learn Samba's unique build system.
Sorry to sound so pessimistic, but I concluded after several hours of research that the build system in Samba is a relic that will require great effort to modify or fix.
________________________________
From: samba <samba-bounces at lists.samba.org> on behalf of Hauke Fath (SPG) via samba <samba at lists.samba.org>
Sent: Monday, July 22, 2024 5:34:31 AM
To: samba at lists.samba.org <samba at lists.samba.org>
Subject: [Samba] Compiler output from waf build?
Hi,
an attempt to build samba 4.13.17 on FreeBSD fails with
[...]
Waf: Leaving directory
`/var/obj/pkgsrc/hauke/samba413/work/samba-4.13.17/bin/default'
Build failed
-> task in 'kdc.objlist' failed with exit status 1:
{task 35558747120: c windc.c -> windc.c.14.o}
['clang', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-O2',
'-I/opt/local/include', '-I/usr/include/krb5', '-I/usr/include',
'-I/opt/local/include/glib-2.0', '-I/opt/local/include/gio-unix-2.0',
'-I/opt/local/lib/glib-2.0/include', '-I/opt/local/include/python3.10',
'-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1',
'-DHAVE_CONFIG_H=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1',
'-D_REENTRANT', '-fstack-protector-strong', '-fstack-clash-protection',
'-Wfatal-errors', '-DSTATIC_kdc_MODULES=NULL',
'-DSTATIC_kdc_MODULES_PROTO=extern void __kdc_dummy_module_proto(void)',
'-Isource4/heimdal_build', '-I../../source4/heimdal_build',
'-Isource4/heimdal/kdc', '-I../../source4/heimdal/kdc',
'-Iinclude/public', '-I../../include/public', '-Isource4',
'-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib',
'-I../../source4/lib', '-Isource4/include', '-I../../source4/include',
'-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace',
'-I.', '-I../..', '-Isource4/heimdal/lib/asn1',
'-I../../source4/heimdal/lib/asn1', '-Isource4/heimdal/base',
'-I../../source4/heimdal/base', '-Isource4/heimdal/include',
'-I../../source4/heimdal/include', '-Isource4/heimdal/lib/wind',
'-I../../source4/heimdal/lib/wind', '-Isource4/heimdal/lib/hx509',
'-I../../source4/heimdal/lib/hx509', '-Isource4/heimdal/lib/hdb',
'-I../../source4/heimdal/lib/hdb', '-Isource4/heimdal/lib/ntlm',
'-I../../source4/heimdal/lib/ntlm', '-Isource4/heimdal/lib/roken',
'-I../../source4/heimdal/lib/roken', '-Isource4/heimdal_build/include',
'-I../../source4/heimdal_build/include', '-Isource4/heimdal/lib/krb5',
'-I../../source4/heimdal/lib/krb5', '-Isource4/heimdal/lib/hcrypto',
'-I../../source4/heimdal/lib/hcrypto', '-Isource4/heimdal/lib',
'-I../../source4/heimdal/lib',
'-Isource4/heimdal/lib/hcrypto/libtommath',
'-I../../source4/heimdal/lib/hcrypto/libtommath',
'-Isource4/heimdal/lib/com_err', '-I../../source4/heimdal/lib/com_err',
'../../source4/heimdal/kdc/windc.c', '-c',
'-o/var/obj/pkgsrc/hauke/samba413/work/samba-4.13.17/bin/default/source4/heimdal/kdc/windc.c.14.o',
'-I/opt/local/include', '-I/usr/include/krb5', '-I/usr/include',
'-I/opt/local/include/glib-2.0', '-I/opt/local/include/gio-unix-2.0',
'-I/opt/local/lib/glib-2.0/include', '-I/opt/local/include/python3.10']
gmake: *** [Makefile:7: all] Error 1
My question: How can I coerce the waf build system into providing the
actual compiler output?
Cheerio,
Hauke
(As they say: You never miss autohell till it's gone...)
--
The ASCII Ribbon Campaign Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
Respect for open standards Ruf +49-6151-16-21344
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list