LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Configure Problem (https://www.linuxquestions.org/questions/linux-software-2/configure-problem-70330/)

Snabber 07-05-2003 03:36 PM

Configure Problem
 
I downloaded ntp (Network Time Project). I then ran the configure program. Here is the full output:
checking build system type... ./config.guess: line 1: 5767 Aborted ( $c $dummy.c -c -o $dummy.o ) >/dev/null 2>&1
./config.guess: line 1: 5770 Aborted ( $c $dummy.c -c -o $dummy.o ) >/dev/null 2>&1
i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... mawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
checking build system type... ./config.guess: line 1: 6085 Aborted ( $c $dummy.c -c -o $dummy.o ) >/dev/null 2>&1
./config.guess: line 1: 6088 Aborted ( $c $dummy.c -c -o $dummy.o ) >/dev/null 2>&1
i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... mawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables

What is wrong??:confused:I had this same problem while trying to install apache.

Thanks,
Eric S.

jhorvath 07-05-2003 07:08 PM

...what distro are you using...what version of gcc,glibc,ld...etc.

i'd have to say your probably missing something :) (just a guess)

Snabber 07-05-2003 08:00 PM

I'm using RedHat 7.2, Kernel 2.4.20. How do I check my other versions? I know that I'm using the off the cd packages.

jhorvath 07-05-2003 09:04 PM

have you tried to compile anything *homebrew*?

(in case your not fluent in C programming...try this..if you are just skip this and write your own:) )

create a new file called hello.c with your favorite editor
insert the following into hello.c (exactly as shown)
Code:

#include <stdio.h>

int main() {
  printf("\nGOODBYE!! ...i bet you though i was gonna say hello\n");
  return 0;
}

next type : (note :: anywhere you see a ` ignore it )
`gcc -Wall -o hello.o hello.c`
===================== <then>
`ld -o hello hello.o`

next run it with:
`./hello`

...got any errors or warnings?


checking versions is as easy as3.14:
`gcc -v`
`ld -v`
try `locate libc.so` (whats this return?...may need to run `updatedb` as root)

Snabber 07-06-2003 12:56 PM

gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8)
I get no errors when compiling simple hello (or goodbye! ;) ) world programs. I lost all my old source code in a hdd crash, so that's all I have to test it with. locate libc.so returned nothing. I found out that I had to use slocate (secure locate). slocate libc.so returned:
/var/ftp/lib/libc.so.6
/usr/lib/libc.so
/usr/i386-glibc21-linux/lib/libc.so.6
/usr/i386-glibc21-linux/lib/libc.so
/home/swanson/lib/libc.so.6
/lib/i686/libc.so.6
/lib/libc.so.6
Thanks in advanced!

jhorvath 07-06-2003 02:25 PM

just for shits and giggles ....you downloaded this ntp from ntp.org?? if not ..from where and which version

Snabber 07-06-2003 05:24 PM

ntp-4.1.1.tar.gz. But that doesn't matter. The configure problem also doesn't work in any other software.

jhorvath 07-06-2003 09:07 PM

...i'm running out of ideas here :)

in your ntp-4.1.1 directory should be a "config.log" file ...if it's not that long..post it ...if it is pretty long email it to me. it should be short seeing how it bombed early tho'

oh...and try recompiling that hello(goodbye) program ...but with this command :

`gcc hello.c`

...it produces "a.out"? ...whatever it produced ...try running it "eg ./a.out"

Snabber 07-07-2003 11:17 AM

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.52. Invocation command line was

$ ./configure

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

hostname = alloscomp
uname -m = i686
uname -r = 2.4.20
uname -s = Linux
uname -v = #1 SMP Mon Jun 9 11:47:07 EDT 2003

/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/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:.:/root/bin

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

configure:1034: PATH=".;."; conftest.sh
./configure: conftest.sh: command not found
configure:1037: $? = 127
configure:1077: checking build system type
configure:1095: result: i686-pc-linux-gnu
configure:1102: checking host system type
configure:1116: result: i686-pc-linux-gnu
configure:1123: checking target system type
configure:1137: result: i686-pc-linux-gnu
configure:1181: checking for a BSD compatible install
configure:1230: result: /usr/bin/install -c
configure:1241: checking whether build environment is sane
configure:1284: result: yes
configure:1305: checking for mawk
configure:1320: found /usr/bin/mawk
configure:1328: result: mawk
configure:1338: checking whether make sets ${MAKE}
configure:1358: result: yes
configure:1495: checking for gcc
configure:1510: found /usr/bin/gcc
configure:1518: result: gcc
configure:1746: checking for C compiler version
configure:1749: gcc --version </dev/null >&5
2.96
configure:1752: $? = 0
configure:1754: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
configure:1757: $? = 0
configure:1759: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:1762: $? = 1
configure:1782: checking for C compiler default output
configure:1785: gcc conftest.c >&5
./configure: line 1: 10721 Aborted $CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5
configure:1788: $? = 134
configure: failed program was:
#line 1766 "configure"
#include "confdefs.h"

int
main ()
{

;
return 0;
}
configure:1811: error: C compiler cannot create executables

## ----------------- ##
## Cache variables. ##
## ----------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
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-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_path_install=$'/usr/bin/install -c'
ac_cv_prog_AWK=mawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu
ac_cv_var_atom_ok=no
ac_cv_var_oncore_ok=no

## ------------ ##
## confdefs.h. ##
## ------------ ##

#define STR_SYSTEM "i686-pc-linux-gnu"
#define PACKAGE "ntp"
#define VERSION "4.1.1"


configure: exit 77

Snabber 07-07-2003 11:18 AM

I get a message that the program eg doesn't exist. If I run it normally, all goes well. Still, configure bombs out.

jhorvath 07-07-2003 12:02 PM

...sorry i meant ..like for example "./a.out"

Snabber 07-07-2003 02:29 PM

Oh, sorry. If I run a.out, it works ok. Also, I modified my /etc/profile to add . to my path. I don't need ./ before a program name.


All times are GMT -5. The time now is 05:08 PM.