I’m installing nagios 3.0rc3 and I’m getting this error message when I try to run configure as outlined in the OpenSuse instructions. I’ve verifited that I have gc++ installed but it doesn’t seem to help. Any suggestions? I apologize, but I’m a nagios newbie and far from a linux expert.
Here’s my config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --with-command-group=nagcmd
---------
Platform.
---------
hostname = linux
uname -m = i686
uname -r = 2.6.22.17-0.1-default
uname -s = Linux
uname -v = #1 SMP 2008/02/10 20:01:04 UTC
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /home/mray/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /usr/lib/jvm/jre/bin
PATH: /usr/lib/mit/bin
PATH: /usr/lib/mit/sbin
-----------
Core tests.
-----------
configure:1352: checking for a BSD-compatible install
configure:1407: result: /usr/bin/install -c
configure:1426: checking build system type
configure:1444: result: i686-pc-linux-gnu
configure:1452: checking host system type
configure:1466: result: i686-pc-linux-gnu
configure:1521: checking for gcc
configure:1537: found /usr/bin/gcc
configure:1547: result: gcc
configure:1791: checking for C compiler version
configure:1794: gcc --version </dev/null >&5
gcc (GCC) 4.2.1 (SUSE Linu:evil:
Copyright © 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1797: $? = 0
configure:1799: gcc -v </dev/null >&5
Using built-in specs.
Target: i586-suse-linux
Configured with: …/configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.2.1 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.2 --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=i586-suse-linux
Thread model: posix
gcc version 4.2.1 (SUSE Linu:evil:
configure:1802: $? = 0
configure:1804: gcc -V </dev/null >&5
gcc: ‘-V’ option must have argument
configure:1807: $? = 1
configure:1830: checking for C compiler default output file name
configure:1833: gcc conftest.c >&5
configure:1836: $? = 0
configure:1882: result: a.out
configure:1887: checking whether the C compiler works
configure:1893: ./a.out
configure:1896: $? = 0
configure:1913: result: yes
configure:1920: checking whether we are cross compiling
configure:1922: result: no
configure:1925: checking for suffix of executables
configure:1927: gcc -o conftest conftest.c >&5
configure:1930: $? = 0
configure:1955: result:
configure:1961: checking for suffix of object files
configure:1982: gcc -c conftest.c >&5
configure:1985: $? = 0
configure:2007: result: o
configure:2011: checking whether we are using the GNU C compiler
configure:2035: gcc -c conftest.c >&5
configure:2041: $? = 0
configure:2045: test -z
|| test ! -s conftest.err
configure:2048: $? = 0
configure:2051: test -s conftest.o
configure:2054: $? = 0
configure:2067: result: yes
configure:2073: checking whether gcc accepts -g
configure:2094: gcc -c -g conftest.c >&5
configure:2100: $? = 0
configure:2104: test -z
|| test ! -s conftest.err
configure:2107: $? = 0
configure:2110: test -s conftest.o
configure:2113: $? = 0
configure:2124: result: yes
configure:2141: checking for gcc option to accept ANSI C
configure:2211: gcc -c -g -O2 conftest.c >&5
configure:2217: $? = 0
configure:2221: test -z
|| test ! -s conftest.err
configure:2224: $? = 0
configure:2227: test -s conftest.o
configure:2230: $? = 0
configure:2248: result: none needed
configure:2266: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘me’
configure:2272: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2405: checking whether make sets $(MAKE)
configure:2425: result: yes
configure:2436: checking for strip
configure:2454: found /usr/bin/strip
configure:2467: result: /usr/bin/strip
configure:2481: checking how to run the C preprocessor
configure:2516: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/limits.h:122,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/syslimits.h:7,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/limits.h:11,
from conftest.c:10:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
configure:2522: $? = 1
configure: failed program was:
| /* confdefs.h. /
|
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| / end confdefs.h. /
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2516: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/limits.h:122,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/syslimits.h:7,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/limits.h:11,
from conftest.c:10:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
configure:2522: $? = 1
configure: failed program was:
| / confdefs.h. /
|
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| / end confdefs.h. /
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2516: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:323,
from /usr/include/assert.h:38,
from conftest.c:13:
/usr/include/sys/cdefs.h:32: error: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:2522: $? = 1
configure: failed program was:
| / confdefs.h. /
|
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| / end confdefs.h. /
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2516: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:323,
from /usr/include/assert.h:38,
from conftest.c:13:
/usr/include/sys/cdefs.h:32: error: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:2522: $? = 1
configure: failed program was:
| / confdefs.h. /
|
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| / end confdefs.h. /
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2516: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/limits.h:122,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/syslimits.h:7,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/limits.h:11,
from conftest.c:10:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
configure:2522: $? = 1
configure: failed program was:
| / confdefs.h. /
|
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| / end confdefs.h. /
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2516: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/limits.h:122,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/syslimits.h:7,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/limits.h:11,
from conftest.c:10:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
configure:2522: $? = 1
configure: failed program was:
| / confdefs.h. /
|
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| / end confdefs.h. /
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2599: result: /lib/cpp
configure:2623: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/limits.h:122,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/syslimits.h:7,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/limits.h:11,
from conftest.c:10:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
configure:2629: $? = 1
configure: failed program was:
| / confdefs.h. /
|
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| / end confdefs.h. /
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2623: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/limits.h:122,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/syslimits.h:7,
from /usr/lib/gcc/i586-suse-linux/4.2.1/include/limits.h:11,
from conftest.c:10:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
configure:2629: $? = 1
configure: failed program was:
| / confdefs.h. /
|
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| / end confdefs.h. */
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:2698: error: C preprocessor “/lib/cpp” fails sanity check
See `config.log’ for more details.
----------------
Cache variables.
----------------
ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_STRIP=/usr/bin/strip
ac_cv_path_install=’/usr/bin/install -c’
ac_cv_prog_CPP=/lib/cpp
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_make_make_set=yes
-----------------
Output variables.
-----------------
BASEEXTRALIBS=’‘
BROKERLIBS=’‘
BROKER_H=’‘
BROKER_LDFLAGS=’‘
BROKER_O=’‘
CC=‘gcc’
CFLAGS=’-g -O2’
CGIEXTRAS=’‘
CHECKRESULTDIR=’‘
COMMAND_OPTS=’‘
CPP=’/lib/cpp’
CPPFLAGS=’‘
DEFS=’‘
ECHO_C=’‘
ECHO_N=’-n’
ECHO_T=’‘
EGREP=’‘
EXEEXT=’‘
GDLIBS=’‘
GLIB_INCLUDE=’‘
GLIB_LIBS=’‘
HTTPD_CONF=’‘
INITDIR=’‘
INSTALL=’/usr/bin/install -c’
INSTALLPERLSTUFF=’‘
INSTALL_DATA=’${INSTALL} -m 644’
INSTALL_OPTS=’‘
INSTALL_PROGRAM=’${INSTALL}‘
INSTALL_SCRIPT=’${INSTALL}‘
LDFLAGS=’‘
LIBOBJS=’‘
LIBS=’‘
LTLIBOBJS=’‘
MAIL_PROG=’‘
MOD_CFLAGS=’‘
MOD_LDFLAGS=’‘
OBJEXT=‘o’
PACKAGE_BUGREPORT=’‘
PACKAGE_NAME=’‘
PACKAGE_STRING=’‘
PACKAGE_TARNAME=’‘
PACKAGE_VERSION=’‘
PACKDIR=’‘
PATH_SEPARATOR=’:‘
PATH_TO_TRACEROUTE=’‘
PERL=’‘
PERLDIR=’‘
PERLLIBS=’‘
PERLXSI_O=’‘
SET_MAKE=’‘
SHELL=’/bin/sh’
SNPRINTF_O=’‘
SOCKETLIBS=’‘
STRIP=’/usr/bin/strip’
THREADLIBS=’‘
TMPDIR=’‘
USE_EVENTBROKER=’‘
VERSION=’‘
XCDC=’‘
XCDH=’‘
XDDC=’‘
XDDH=’‘
XODC=’‘
XODH=’‘
XPDC=’‘
XPDH=’‘
XRDC=’‘
XRDH=’‘
XSDC=’‘
XSDH=’‘
ac_ct_CC=‘gcc’
bindir=’${exec_prefix}/bin’
build=‘i686-pc-linux-gnu’
build_alias=’‘
build_cpu=‘i686’
build_os=‘linux-gnu’
build_vendor=‘pc’
cgiurl=’‘
command_grp=’‘
command_user=’‘
datadir=’${prefix}/share’
exec_prefix=‘NONE’
host=‘i686-pc-linux-gnu’
host_alias=’‘
host_cpu=‘i686’
host_os=‘linux-gnu’
host_vendor=‘pc’
htmurl=’‘
includedir=’${prefix}/include’
infodir=’${prefix}/info’
init_dir=’‘
libdir=’${exec_prefix}/lib’
libexecdir=’${exec_prefix}/libexec’
localstatedir=’${prefix}/var’
lockfile=’‘
mandir=’${prefix}/man’
nagios_grp=’‘
nagios_name=’‘
nagios_user=’‘
nagiostats_name=’‘
oldincludedir=’/usr/include’
prefix=‘NONE’
program_transform_name=‘s,x,x,‘
sbindir=’${exec_prefix}/sbin’
sharedstatedir=’${prefix}/com’
sysconfdir=’${prefix}/etc’
target_alias=’’
-----------
confdefs.h.
-----------
#define PACKAGE_BUGREPORT “”
#define PACKAGE_NAME “”
#define PACKAGE_STRING “”
#define PACKAGE_TARNAME “”
#define PACKAGE_VERSION “”
configure: exit 1
Matt