Bug 531 - autoconf warnings during ./configure
Summary: autoconf warnings during ./configure
Status: RESOLVED DUPLICATE of bug 350
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.0
Hardware: All Solaris
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-28 16:33 UTC by Matt Selsky
Modified: 2005-11-14 09:30 UTC (History)
0 users

See Also:


Attachments
Tweak source/configure.in (1.98 KB, patch)
2003-09-28 16:35 UTC, Matt Selsky
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Selsky 2003-09-28 16:33:12 UTC
Environment:

$ uname -a
SunOS lisbon 5.9 Generic_112233-08 sun4u sparc SUNW,Ultra-5_10

I'm running configure as follows:

$ ./configure \
	--prefix=/opt/samba-3.0.0 \
	--with-fhs \
	--sysconfdir=/etc \
	--localstatedir=/var \
	--with-privatedir=/etc/samba \
	--without-ldap

I get the following warning messages:

configure: WARNING: net/if.h: present but cannot be compiled
configure: WARNING: net/if.h: check for missing prerequisite headers?
configure: WARNING: net/if.h: proceeding with the preprocessor's result
[...]
configure: WARNING: security/pam_modules.h: present but cannot be compiled
configure: WARNING: security/pam_modules.h: check for missing prerequisite headers?
configure: WARNING: security/pam_modules.h: proceeding with the preprocessor's
result
[...]
configure: WARNING: netinet/ip.h: present but cannot be compiled
configure: WARNING: netinet/ip.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result

This seems to be the same problem described @
http://mail.gnu.org/archive/html/bug-autoconf/2003-08/msg00316.html
Comment 1 Matt Selsky 2003-09-28 16:35:54 UTC
Created attachment 167 [details]
Tweak source/configure.in

Make sure to included proper headers so that headers will compile on Solaris.
Comment 2 Tim Potter 2003-09-28 16:48:46 UTC

*** This bug has been marked as a duplicate of 350 ***
Comment 3 Tim Potter 2003-09-28 16:52:56 UTC
Hi.  This is exactly the sort of thing I am trying to avoid.  We already have
the logic for which header files are needed to preprocess other header files -
it's in the Samba source code.  I think it's a bad idea to have to maintain this
information in another place.

There's the start of a debate about the issue on samba-technical, but it didn't
seem to go anywhere.

http://lists.samba.org/pipermail/samba-technical/2003-August/046743.html
Comment 4 Matt Selsky 2003-09-28 18:12:40 UTC
What did the autoconf guys have to say?  I didn't see anything further on the
autoconf list...

From looking at the docs for autoconf-2.57, if you use '-' as the 4th argument
to AC_CHECK_HEADERS() then it should do the old CPP-only checking.
Comment 5 Tim Potter 2003-09-28 19:15:35 UTC
The autoconf guys didn't respond to my suggestion about keeping the old macro. 
It looks like you just get the canned response or ignored if you ask a question
about it.

Thanks for the tip about the fourth argument.  It works well but I can't seem to
find any reference to it in the documentation, at least under the 'Generic
Header Checks' section.
Comment 6 Matt Selsky 2003-09-28 19:53:30 UTC
You are correct about not finding it in the documentation proper.  I found the
reference in the comments of lib/autoconf/headers.m4, around line 82.
Comment 7 Gerald (Jerry) Carter (dead mail address) 2005-11-14 09:30:34 UTC
database cleanup