conftest errors on configure of source nagios-3.2.0
Scott, Ewan
EWScott at scotborders.gov.uk
Thu Dec 17 16:52:39 CET 2009
Hi
I am trying to install nagios3 from source onto a ubuntu server. When running the ./configure statement I get the following error in the config.log. (Other errors for conftest then follow. )
.
.
.
configure:2230: test -s conftest.o
configure:2233: $? = 0
configure:2251: result: none needed
configure:2269: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me
'
configure:2275: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2408: checking whether make sets $(MAKE)
.
.
.
I have checked the packages installed and the basic configuration and I believe these to be as required. I have googled extensively and beyond checking the packages installed I can't see what changes I can make.
Any help gratefully received.
Supporting information listed below.
Regards
Ewan
1. Ununtu server
This is 64-bit.
root at sbc-omega-test:~/downloads/nagios-3.2.0# uname -a
Linux sbc-omega-test 2.6.31-14-server #48-Ubuntu SMP Fri Oct 16 15:07:34 UTC 2009 x86_64 GNU/Linux
Install type - LAMP
Packages then installed with apt-get:
apache2
build-essential
libgd2-xpm-dev
1. Users and groups
root at sbc-omega-test:~/downloads/nagios-3.2.0# egrep 'nagios|www' /etc/passwd
www-data:x:33:33:www-data:/var/www:/bin/sh
nagios:x:1001:1001::/home/nagios:/bin/sh
root at sbc-omega-test:~/downloads/nagios-3.2.0# egrep nag /etc/group
nagios:x:1001:
nagcmd:x:1002:www-data,nagios
1. nagios install info
version - 3.2.0
=====
#gcc -v
======
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
root at sbc-omega-test:~/downloads/nagios-3.2.0#<mailto:root at sbc-omega-test:~/downloads/nagios-3.2.0>
config.log file (part)
================
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 = sbc-omega-test
uname -m = x86_64
uname -r = 2.6.31-14-server
uname -s = Linux
uname -v = #48-Ubuntu SMP Fri Oct 16 15:07:34 UTC 2009
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1355: checking for a BSD-compatible install
configure:1410: result: /usr/bin/install -c
configure:1429: checking build system type
configure:1447: result: x86_64-unknown-linux-gnu
configure:1455: checking host system type
configure:1469: result: x86_64-unknown-linux-gnu
configure:1524: checking for gcc
configure:1540: found /usr/bin/gcc
configure:1550: result: gcc
configure:1794: checking for C compiler version
configure:1797: gcc --version </dev/null >&5
gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
Copyright (C) 2009 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:1800: $? = 0
configure:1802: gcc -v </dev/null >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu8' -
-with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,
fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-l
inker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gette
xt --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-
suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-
objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checki
ng=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linu
x-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
configure:1805: $? = 0
configure:1807: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:1810: $? = 1
configure:1833: checking for C compiler default output file name
configure:1836: gcc conftest.c >&5
configure:1839: $? = 0
configure:1885: result: a.out
configure:1890: checking whether the C compiler works
configure:1896: ./a.out
configure:1899: $? = 0
configure:1916: result: yes
configure:1923: checking whether we are cross compiling
configure:1925: result: no
configure:1928: checking for suffix of executables
configure:1930: gcc -o conftest conftest.c >&5
configure:1933: $? = 0
configure:1958: result:
configure:1964: checking for suffix of object files
configure:1985: gcc -c conftest.c >&5
configure:1988: $? = 0
configure:2010: result: o
configure:2014: checking whether we are using the GNU C compiler
configure:2038: gcc -c conftest.c >&5
configure:2044: $? = 0
configure:2048: test -z
|| test ! -s conftest.err
configure:2051: $? = 0
configure:2054: test -s conftest.o
configure:2057: $? = 0
configure:2070: result: yes
configure:2076: checking whether gcc accepts -g
configure:2097: gcc -c -g conftest.c >&5
configure:2103: $? = 0
configure:2107: test -z
|| test ! -s conftest.err
configure:2110: $? = 0
configure:2113: test -s conftest.o
configure:2116: $? = 0
configure:2127: result: yes
configure:2144: checking for gcc option to accept ANSI C
configure:2214: gcc -c -g -O2 conftest.c >&5
configure:2220: $? = 0
configure:2224: test -z
|| test ! -s conftest.err
configure:2227: $? = 0
configure:2230: test -s conftest.o
configure:2233: $? = 0
configure:2251: result: none needed
configure:2269: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me
'
configure:2275: $? = 1configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2408: checking whether make sets $(MAKE)
configure:2428: result: yes
configure:2439: checking for strip
configure:2457: found /usr/bin/strip
configure:2470: result: /usr/bin/strip
configure:2484: checking how to run the C preprocessor
configure:2519: gcc -E conftest.c
configure:2525: $? = 0
configure:2557: gcc -E conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:2563: $? = 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. */
| #include <ac_nonexistent.h>
configure:2602: result: gcc -E
configure:2626: gcc -E conftest.c
configure:2632: $? = 0
configure:2664: gcc -E conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:2670: $? = 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. */
| #include <ac_nonexistent.h>
configure:2714: checking for egrep
configure:2724: result: grep -E
configure:2729: checking for ANSI C header files
configure:2754: gcc -c -g -O2 conftest.c >&5
configure:2760: $? = 0
configure:2764: test -z
|| test ! -s conftest.err
configure:2767: $? = 0
configure:2770: test -s conftest.o
configure:2773: $? = 0
configure:2862: gcc -o conftest -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:26: warning: incompatible implicit declaration of built-in function '
exit'
configure:2865: $? = 0
configure:2867: ./conftest
configure:2870: $? = 0
configure:2885: result: yes
.
.
.
.
###other error lines:
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
conftest.c:68:22: error: pthreads.h: No such file or directory
conftest.c:34:22: error: pthreads.h: No such file or directory
conftest.c:71:20: error: socket.h: No such file or directory
conftest.c:37:20: error: socket.h: No such file or directory
conftest.c:87:17: error: uio.h: No such file or directory
conftest.c:53:17: error: uio.h: No such file or directory
.
.
.
.
###end of file:
#define USE_NANOSLEEP 1
#define USE_STATUSMAP 1
#define USE_STATUSWRL 1
#define USE_TRENDS 1
#define USE_XCDDEFAULT 1
#define USE_XDDDEFAULT 1
#define USE_XODTEMPLATE 1
#define USE_XPDDEFAULT 1
#define USE_XRDDEFAULT 1
#define USE_XSDDEFAULT 1
configure: exit 0
1. dpkg installed package info
adduser install
apache2 install
apache2-mpm-prefork install
apache2-utils install
apache2.2-bin install
apache2.2-common install
apparmor install
apparmor-utils install
apport install
apport-symptoms install
apt install
apt-transport-https install
apt-utils install
aptitude install
at install
base-files install
base-passwd install
bash install
bash-completion install
bind9-host install
binutils install
bsdmainutils install
bsdutils install
build-essential install
busybox-initramfs install
byobu install
bzip2 install
ca-certificates install
command-not-found install
command-not-found-data install
console-setup install
console-terminus install
coreutils install
cpio install
cpp install
cpp-4.4 install
cron install
dash install
debconf install
debconf-i18n install
debianutils install
defoma install
dhcp3-client install
dhcp3-common install
diff install
dmidecode install
dmsetup install
dnsutils install
dosfstools install
dpkg install
dpkg-dev install
e2fslibs install
e2fsprogs install
ed install
eject install
exim4 install
exim4-base install
exim4-config install
exim4-daemon-light install
fakeroot install
file install
findutils install
finger install
fontconfig install
fontconfig-config install
friendly-recovery install
ftp install
ftpd install
fuse-utils install
g++ install
g++-4.4 install
gcc install
gcc-4.4 install
gcc-4.4-base install
geoip-database install
gettext-base install
gnupg install
gpgv install
grep install
groff-base install
grub-common install
grub-pc install
guile-1.8-libs install
gzip install
hdparm install
hicolor-icon-theme install
hostname install
ifupdown install
info install
initramfs-tools install
initscripts install
insserv install
install-info install
installation-report install
iproute install
iptables install
iputils-arping install
iputils-ping install
iputils-tracepath install
iso-codes install
kbd install
klibc-utils install
landscape-common install
language-pack-en install
language-pack-en-base install
language-selector-common install
laptop-detect install
less install
libacl1 install
libapache2-mod-php5 install
libapparmor-perl install
libapparmor1 install
libapr1 install
libaprutil1 install
libaprutil1-dbd-sqlite3 install
libaprutil1-ldap install
libatk1.0-0 install
libatk1.0-data install
libatm1 install
libattr1 install
libavahi-client3 install
libavahi-common-data install
libavahi-common3 install
libbind9-50 install
libblkid1 install
libbsd0 install
libbz2-1.0 install
libc-bin install
libc-dev-bin install
libc6 install
libc6-dev install
libcairo2 install
libcap2 install
libclass-accessor-perl install
libcomerr2 install
libcompress-bzip2-perl install
libcups2 install
libcurl3-gnutls install
libcwidget3 install
libdatrie1 install
libdb4.6 install
libdb4.7 install
libdbd-mysql-perl install
libdbi-perl install
libdbus-1-3 install
libdbus-glib-1-2 install
libdevmapper1.02.1 install
libdirectfb-1.2-0 install
libdns50 install
libedit2 install
libelf1 install
libept0 install
libexpat1 install
libexpat1-dev install
libffi5 install
libfont-afm-perl install
libfontconfig1 install
libfontconfig1-dev install
libfontenc1 install
libfreetype6 install
libfreetype6-dev install
libfribidi0 install
libfuse2 install
libgc1c2 install
libgcc1 install
libgcrypt11 install
libgd2-xpm install
libgd2-xpm-dev install
libgdbm3 install
libgeoip1 install
libglade2-0 install
libglib2.0-0 install
libglib2.0-data install
libgmp3c2 install
libgnutls26 install
libgomp1 install
libgpg-error0 install
libgpm2 install
libgsasl7 install
libgssapi-krb5-2 install
libgtk2.0-0 install
libgtk2.0-bin install
libgtk2.0-common install
libhtml-format-perl install
libhtml-parser-perl install
libhtml-tagset-perl install
libhtml-template-perl install
libhtml-tree-perl install
libidn11 install
libio-string-perl install
libisc50 install
libisccc50 install
libisccfg50 install
libiw29 install
libjasper1 install
libjpeg62 install
libjpeg62-dev install
libjs-jquery install
libk5crypto3 install
libkeyutils1 install
libklibc install
libkrb5-3 install
libkrb5support0 install
libldap-2.4-2 install
liblocale-gettext-perl install
liblockfile1 install
libltdl7 install
liblwres50 install
libmagic1 install
libmailtools-perl install
libmailutils2 install
libmpfr1ldbl install
libmysqlclient15off install
libmysqlclient16 install
libncurses5 install
libncursesw5 install
libnet-daemon-perl install
libnewt0.52 install
libnl1 install
libntfs-3g54 install
libntlm0 install
libpam-modules install
libpam-runtime install
libpam0g install
libpango1.0-0 install
libpango1.0-common install
libparse-debianchangelog-perl install
libparted1.8-12 install
libpcap0.8 install
libpci3 install
libpcre3 install
libpcsclite1 install
libpixman-1-0 install
libplrpc-perl install
libpng12-0 install
libpng12-dev install
libpopt0 install
libpthread-stubs0 install
libpthread-stubs0-dev install
libpython2.6 install
libreadline5 install
libreadline6 install
librpc-xml-perl install
libsasl2-2 install
libsasl2-modules install
libselinux1 install
libsepol1 install
libsigc++-2.0-0c2a install
libslang2 install
libsqlite3-0 install
libss2 install
libssl0.9.8 install
libstdc++6 install
libstdc++6-4.4-dev install
libsub-name-perl install
libsysfs2 install
libt1-5 install
libtasn1-3 install
libterm-readkey-perl install
libtext-charwidth-perl install
libtext-iconv-perl install
libtext-wrapi18n-perl install
libthai-data install
libthai0 install
libtiff4 install
libtimedate-perl install
libts-0.0-0 install
libudev0 install
liburi-perl install
libusb-0.1-4 install
libuser1 install
libuuid1 install
libwrap0 install
libwww-perl install
libx11-6 install
libx11-data install
libx11-dev install
libxapian15 install
libxau-dev install
libxau6 install
libxcb-render-util0 install
libxcb-render0 install
libxcb1 install
libxcb1-dev install
libxcomposite1 install
libxcursor1 install
libxdamage1 install
libxdmcp-dev install
libxdmcp6 install
libxext6 install
libxfixes3 install
libxfont1 install
libxft2 install
libxi6 install
libxinerama1 install
libxml-parser-perl install
libxml2 install
libxmuu1 install
libxpm-dev install
libxpm4 install
libxrandr2 install
libxrender1 install
linux-firmware install
linux-headers-2.6.31-14 install
linux-headers-2.6.31-14-server install
linux-headers-server install
linux-image-2.6.31-14-server install
linux-image-server install
linux-libc-dev install
linux-server install
locales install
lockfile-progs install
login install
logrotate install
lsb-base install
lsb-release install
lshw install
lsof install
ltrace install
lvm2 install
lzma install
mailutils install
make install
makedev install
man-db install
manpages install
mawk install
memtest86+ install
mime-support install
mlocate install
module-init-tools install
mount install
mountall install
mtr-tiny install
mysql-client-5.1 install
mysql-common install
mysql-server install
mysql-server-5.1 install
mysql-server-core-5.1 install
nano install
ncurses-base install
ncurses-bin install
net-tools install
netbase install
netcat install
netcat-traditional install
ntfs-3g install
ntpdate install
openbsd-inetd install
openssh-client install
openssh-server install
openssl install
os-prober install
parted install
passwd install
patch install
pciutils install
perl install
perl-base install
perl-modules install
php5 install
php5-common install
php5-gd install
php5-mysql deinstall
pkg-config install
popularity-contest install
powermgmt-base install
ppp install
pppconfig install
pppoeconf install
procps install
psmisc install
python install
python-apport install
python-apt install
python-central install
python-dbus install
python-gdbm install
python-gnupginterface install
python-gobject install
python-httplib2 install
python-launchpadlib install
python-lazr-restfulclient install
python-lazr-uri install
python-minimal install
python-newt install
python-oauth install
python-openssl install
python-pam install
python-pexpect install
python-pkg-resources install
python-problem-report install
python-pycurl install
python-serial install
python-simplejson install
python-smartpm install
python-support install
python-twisted-bin install
python-twisted-core install
python-wadllib install
python-zope.interface install
python2.6 install
python2.6-minimal install
readline-common install
rsync install
rsyslog install
screen install
sed install
sgml-base install
shared-mime-info install
ssh install
ssl-cert install
strace install
sudo install
sysv-rc install
sysvinit-utils install
tar install
tasksel install
tasksel-data install
tcpd install
tcpdump install
telnet install
telnetd install
time install
tsconf install
ttf-dejavu install
ttf-dejavu-core install
ttf-dejavu-extra install
tzdata install
ubuntu-keyring install
ubuntu-minimal install
ubuntu-serverguide install
ubuntu-standard install
ucf install
udev install
ufw install
update-inetd install
update-manager-core install
update-notifier-common install
upstart install
usbutils install
usermode deinstall
util-linux install
uuid-runtime install
vim install
vim-common install
vim-runtime install
vim-tiny install
w3m install
watershed install
wget install
whiptail install
wireless-crda install
wireless-tools install
wpasupplicant install
x-ttcidfont-conf install
x11-common install
x11proto-core-dev install
x11proto-input-dev install
x11proto-kb-dev install
xauth install
xfonts-encodings install
xfonts-utils install
xkb-data install
xml-core install
xtrans-dev install
zlib1g install
zlib1g-dev install
=== end ====
**********************************************************************
This email and any files transmitted with it are privileged, confidential and subject to copyright. Any unauthorised use or disclosure of any part of this email is prohibited. If you are not the intended recipient please inform the sender immediately; you should then delete the email and remove any copies from your system.
The views or opinions expressed in this communication may not necessarily be those of Scottish Borders Council.
Please be advised that Scottish Borders Council's incoming and outgoing email is subject to regular monitoring and any email may require to be disclosed by the Council under the provisions of the Freedom of Information (Scotland) Act 2002.
**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091217/1bd76527/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list