The Samba-Bugzilla – Bug 5624
bad CFLAGS left by configure test - build fails on sles8
Last modified: 2008-07-21 06:51:53 UTC
on sles8 (gcc 3.2) the build fails with
libsmb/clikrb5.c:1531:2: #error UNKNOWN_KRB5_ENCTYPE_TO_STRING_FUNCTION
the problem are compile warnings - from config.log:
configure:49018: gcc -o conftest -O -D_SAMBA_BUILD_=3 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -I/usr/include -L/usr/src/packages/BUILD/heimdal-0.7.2-inst/lib -L./bin -L/usr/lib conftest.c >&5
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
this warnings cause the STRICT configure checks to fail (they require warning free compiles). /usr/include and /usr/local/include should usually not be put in CFLAGS or CPPFLAGS explicitly. AFAICS they are leftovers of the monstrous iconv checks in the configure script.
Created attachment 3419 [details]
Can you try the attached patch? To do so, you might want to run autoconf on a modern system and then transfer the whole directory to the SLES8, to avoid having to install a recent autoconf there.
looks good, thanks :-)