LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-31-2006, 06:15 PM   #1
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Rep: Reputation: 31
Problem compiling Nagios 2.1


Hello all,

I'm having problems configuring nagios. I downloaded the program, untar'd it, then ran ./configure like I am supposed to.

Btw, this is nagios 2.1 for those who may want to know. My c compiler is gcc. Slackware linux 10.2

This is where the problem lies, I get the error --->

configure: error: C compiler cannot create executables
See `config.log' for more details.

I attached the log, as you can already see, hope it helps. I would like someone tell me why this is happening not just the fix for the problem.

charlie r



-------------------------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 --prefix=/usr/local/nagios --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-group=nagios

## --------- ##
## Platform. ##
## --------- ##

hostname = macbre
uname -m = i686
uname -r = 2.4.31
uname -s = Linux
uname -v = #6 Sun Jun 5 19:04:47 PDT 2005

/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: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/www/htdig/bin
PATH: /usr/lib/java/bin
PATH: /usr/lib/java/jre/bin
PATH: /opt/kde/bin
PATH: /usr/lib/qt/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1356: checking for a BSD-compatible install
configure:1411: result: /usr/bin/ginstall -c
configure:1430: checking build system type
configure:1448: result: i686-pc-linux-gnuoldld
configure:1456: checking host system type
configure:1470: result: i686-pc-linux-gnuoldld
configure:1525: checking for gcc
configure:1541: found /usr/bin/gcc
configure:1551: result: gcc
configure:1795: checking for C compiler version
configure:1798: gcc --version </dev/null >&5
gcc (GCC) 3.3.6
Copyright (C) 2003 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:1801: $? = 0
configure:1803: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/specs
Configured with: ../gcc-3.3.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking
Thread model: posix
gcc version 3.3.6
configure:1806: $? = 0
configure:1808: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1811: $? = 1
configure:1834: checking for C compiler default output file name
configure:1837: gcc conftest.c >&5
gcc: installation problem, cannot exec `as': No such file or directory
configure:1840: $? = 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. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1879: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnuoldld
ac_cv_build_alias=i686-pc-linux-gnuoldld
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_host=i686-pc-linux-gnuoldld
ac_cv_host_alias=i686-pc-linux-gnuoldld
ac_cv_path_install='/usr/bin/ginstall -c'
ac_cv_prog_ac_ct_CC=gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

BASEEXTRALIBS=''
BROKERLIBS=''
BROKER_H=''
BROKER_LDFLAGS=''
BROKER_O=''
CC='gcc'
CFLAGS=''
CGIEXTRAS=''
COMMAND_OPTS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GDLIBS=''
INITDIR=''
INSTALL='/usr/bin/ginstall -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=''
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=''
THREADLIBS=''
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-gnuoldld'
build_alias=''
build_cpu='i686'
build_os='linux-gnuoldld'
build_vendor='pc'
cgiurl=''
command_grp=''
command_user=''
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnuoldld'
host_alias=''
host_cpu='i686'
host_os='linux-gnuoldld'
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='/usr/local/nagios'
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 77
 
Old 04-01-2006, 08:08 AM   #2
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Original Poster
Rep: Reputation: 31
back to the top
 
Old 04-01-2006, 09:32 AM   #3
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
Firstly, "gcc -V </dev/null >&5" is insane
Quote:
configure:1879: error: C compiler cannot create executables
Did you looked at the 1879th string in configure?
Generally this is a bad configure script and should be amended, be encouraged to report a bug. Meantime pay an attention to the pointed string.
 
Old 04-01-2006, 09:55 AM   #4
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Original Poster
Rep: Reputation: 31
Thanks for the reply. I unfortunately am not sure exactly what it should be. Or even how to get around this. I saw the error, but don't know what to do about it, or even how or why it got there. Sorry I'm an amateur.
 
Old 04-01-2006, 10:01 AM   #5
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
output?
Code:
cat -n configure | grep -w 1879
 
Old 04-01-2006, 03:55 PM   #6
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Original Poster
Rep: Reputation: 31
Hello all,

I'm having problems configuring nagios. I downloaded the program, untar'd it, then ran ./configure like I am supposed to.

Btw, this is nagios 2.1 for those who may want to know. My c compiler is gcc. Slackware linux 10.2

This is where the problem lies, I get the error --->

configure: error: C compiler cannot create executables
See `config.log' for more details.

I attached the log, as you can already see, hope it helps. I would like someone tell me why this is happening not just the fix for the problem.




-------------------------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 --prefix=/usr/local/nagios --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-group=nagios

## --------- ##
## Platform. ##
## --------- ##

hostname = macbre
uname -m = i686
uname -r = 2.4.31
uname -s = Linux
uname -v = #6 Sun Jun 5 19:04:47 PDT 2005

/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: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/www/htdig/bin
PATH: /usr/lib/java/bin
PATH: /usr/lib/java/jre/bin
PATH: /opt/kde/bin
PATH: /usr/lib/qt/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1356: checking for a BSD-compatible install
configure:1411: result: /usr/bin/ginstall -c
configure:1430: checking build system type
configure:1448: result: i686-pc-linux-gnuoldld
configure:1456: checking host system type
configure:1470: result: i686-pc-linux-gnuoldld
configure:1525: checking for gcc
configure:1541: found /usr/bin/gcc
configure:1551: result: gcc
configure:1795: checking for C compiler version
configure:1798: gcc --version </dev/null >&5
gcc (GCC) 3.3.6
Copyright (C) 2003 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:1801: $? = 0
configure:1803: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/specs
Configured with: ../gcc-3.3.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking
Thread model: posix
gcc version 3.3.6
configure:1806: $? = 0
configure:1808: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1811: $? = 1
configure:1834: checking for C compiler default output file name
configure:1837: gcc conftest.c >&5
gcc: installation problem, cannot exec `as': No such file or directory
configure:1840: $? = 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. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1879: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnuoldld
ac_cv_build_alias=i686-pc-linux-gnuoldld
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_host=i686-pc-linux-gnuoldld
ac_cv_host_alias=i686-pc-linux-gnuoldld
ac_cv_path_install='/usr/bin/ginstall -c'
ac_cv_prog_ac_ct_CC=gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

BASEEXTRALIBS=''
BROKERLIBS=''
BROKER_H=''
BROKER_LDFLAGS=''
BROKER_O=''
CC='gcc'
CFLAGS=''
CGIEXTRAS=''
COMMAND_OPTS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GDLIBS=''
INITDIR=''
INSTALL='/usr/bin/ginstall -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=''
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=''
THREADLIBS=''
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-gnuoldld'
build_alias=''
build_cpu='i686'
build_os='linux-gnuoldld'
build_vendor='pc'
cgiurl=''
command_grp=''
command_user=''
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnuoldld'
host_alias=''
host_cpu='i686'
host_os='linux-gnuoldld'
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='/usr/local/nagios'
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 77

Last edited by neocontrol; 05-06-2010 at 01:41 PM.
 
Old 04-01-2006, 04:56 PM   #7
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Original Poster
Rep: Reputation: 31
i also tried to run another configure file for a differnt program. it wasnt able to compile executable either. i imagine that there is something wrong with my compiler? if there is, how would i know rather than guessing what could be wrong?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios IP problem sumux Linux - Software 0 11-18-2005 06:19 AM
Nagios Problem kingcomein Linux - General 4 11-09-2005 11:31 PM
Nagios problem I_AM Linux - General 1 10-03-2005 03:22 PM
Nagios problem denis Linux - Software 1 04-27-2005 11:23 AM
Nagios Problem sbrewer Linux - Software 1 12-19-2004 04:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration