naemon / naemon-core

Networks, Applications and Event Monitor
http://www.naemon.io/
GNU General Public License v2.0
154 stars 63 forks source link

warnings when running autoreconf -i: Header Present But Cannot Be Compiled #6

Closed berendt closed 11 years ago

berendt commented 11 years ago

Probably I have missed to install some necessary packages on SLES11 SP3 (JeOS). But I think the WARNING should be handled like described here: http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Present-But-Cannot-Be-Compiled.html.

That's just an example WARNING. There are a lot of more warnings of the same type on my testing system.

checking arpa/inet.h usability... no
checking arpa/inet.h presence... yes
configure: WARNING: arpa/inet.h: present but cannot be compiled
configure: WARNING: arpa/inet.h:     check for missing prerequisite headers?
configure: WARNING: arpa/inet.h: see the Autoconf documentation
configure: WARNING: arpa/inet.h:     section "Present But Cannot Be Compiled"
configure: WARNING: arpa/inet.h: proceeding with the compiler's result
configure: WARNING:     ## ---------------------------------------------- ##
configure: WARNING:     ## Report this to naemon-dev@monitoring-lists.org ##
configure: WARNING:     ## ---------------------------------------------- ##
checking for arpa/inet.h... no
ageric commented 11 years ago

Shuld be fixed by commit 634d7957d22a79773afe114e47606a40026bbe1e Author: Andreas Ericsson ae@op5.se Date: Wed Nov 27 14:50:44 2013 +0100

autotools junk: Stop using (and checking for) arpa/inet.h

We don't actually need it, and it appears to break the autotools
chain on SLES 11 SP3. Since we only use it in one of the library
test-files, we just remove it and stop checking for it.

Signed-off-by: Andreas Ericsson <ae@op5.se>
berendt commented 11 years ago

There are a lot of more files, can you please have a look? I just posted an example warning message.

ctype.h
dirent.h
dlfcn.h
fcntl.h
getopt.h
grp.h
libgen.h
limits.h
locale.h
malloc.h
netdb.h
netinet/in.h
pwd.h
regex.h
stdarg.h
stdbool.h
syslog.h
sys/mman.h
sys/resource.h
sys/socket.h
sys/time.h
sys/timeb.h
sys/wait.h
wchar.h
atj commented 11 years ago

@ageric I can take a look at this in the next couple of days.

ageric commented 11 years ago

atj: That'd be awesome. I don't see the same issue on my system, and the docs at the provided link don't really make sense to me. ctype.h has no prerequisite headers, and neither has malloc.h (which really shouldn't be in that list at all).

berendt: Have you got all the necessary dev tools installed on the machine you're trying this? As it's SLES, I imagine the packages will be called something like "kernel-headers" and "glibc-devel" or some such.

atj commented 11 years ago

@berendt: I'm unable to reproduce this on an openSUSE 11.4 VM. Have a look at https://gist.github.com/atj/7699496.