Bug 5624 - bad CFLAGS left by configure test - build fails on sles8
Summary: bad CFLAGS left by configure test - build fails on sles8
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.2.0
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-18 07:14 UTC by Björn Jacke
Modified: 2008-07-21 06:51 UTC (History)
0 users

See Also:


Attachments
proposed patch (1.46 KB, patch)
2008-07-18 09:46 UTC, Volker Lendecke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Jacke 2008-07-18 07:14:32 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.
Comment 1 Volker Lendecke 2008-07-18 09:46:34 UTC
Created attachment 3419 [details]
proposed patch

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.

Volker
Comment 2 Björn Jacke 2008-07-21 06:51:53 UTC
looks good, thanks :-)