I'm compiling Samba with ADS support against a locally installed Heimdal 1.3.2 Kerberos installation and I'm getting a failure while compiling clikrb5.c This is using the IBM xl_C compiler. If I use the gcc compiler, the configure log has: configure:29740: checking whether krb5_mk_error takes 3 arguments MIT or 9 Heimdal configure:29758: gcc -c -I/opt/CMNSsamba/include -O -I/opt/CMNSsamba/include -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddn s -I./librpc -I./.. -I./../lib/popt -I/opt/CMNSsamba/include -DLDAP_DEPRECATED conftest.c >&5 conftest.c: In function 'main': conftest.c:525: error: too few arguments to function 'krb5_mk_error' configure:29758: $? = 1 If I use the xl_C compiler, the configure log has: configure:29740: checking whether krb5_mk_error takes 3 arguments MIT or 9 Heimdal configure:29758: cc -qlanglvl=extc89 -qlanglvl=extc99 -c -I/opt/CMNSsamba/include -D_LINUX_SOURCE_COMPAT -qmaxmem=32000 -D_LINUX_SOURCE_COMPAT -qmaxmem=3200 0 -I/opt/CMNSsamba/include -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. -I./../lib/popt -I/opt/CMNSsam ba/include -DLDAP_DEPRECATED conftest.c >&5 "conftest.c", line 524.18: 1506-098 (E) Missing argument(s). configure:29758: $? = 0 configure:29765: result: yes
Created attachment 5704 [details] config.log using gcc
Created attachment 5705 [details] config.log using xl_C
xlc throws an error: "conftest.c", line 524.18: 1506-098 (E) Missing argument(s). but exits with return code 0. What a bloody bastard...
from the xlc man page: -qhalt=<sev> Stops the compiler after the first phase if the severity level of errors detected equals or exceeds the specified level, <sev>. The severity levels in increasing order of severity are: i = information w = warning e = error s = severe error u = unrecoverable error The default is -qhalt=s. as non of our builds in the build farm seems to have an "error warning" I'm going to make -qhalt=e the default for the IBM compiler. When the buildfarm doesn't complain we'll pull that into there release branches.
can you please change the line in configure.in from CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000" to CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000 -qhalt=e" then run autogen.sh and configure again and test with that?
we should cherry-pick ff0872d59d78ad42212c88313ef924ea4eb7a8a1 to 3.5 to fix this issue. Metze, please review and reassign to Karolin...
ff0872d59d78ad42212c88313ef924ea4eb7a8a1 looks good
Pushed to v3-5-test. Will be included in Samba 3.5.4. Closing out bug report. Thanks!