LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-05-2003, 03:36 PM   #1
Snabber
Member
 
Registered: Dec 2002
Posts: 76

Rep: Reputation: 15
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??I had this same problem while trying to install apache.

Thanks,
Eric S.
 
Old 07-05-2003, 07:08 PM   #2
jhorvath
Member
 
Registered: Sep 2002
Location: OH, USA
Distribution: 2.6.16-1.2096_FC5 #1
Posts: 245

Rep: Reputation: 30
...what distro are you using...what version of gcc,glibc,ld...etc.

i'd have to say your probably missing something (just a guess)
 
Old 07-05-2003, 08:00 PM   #3
Snabber
Member
 
Registered: Dec 2002
Posts: 76

Original Poster
Rep: Reputation: 15
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.
 
Old 07-05-2003, 09:04 PM   #4
jhorvath
Member
 
Registered: Sep 2002
Location: OH, USA
Distribution: 2.6.16-1.2096_FC5 #1
Posts: 245

Rep: Reputation: 30
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)
 
Old 07-06-2003, 12:56 PM   #5
Snabber
Member
 
Registered: Dec 2002
Posts: 76

Original Poster
Rep: Reputation: 15
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!
 
Old 07-06-2003, 02:25 PM   #6
jhorvath
Member
 
Registered: Sep 2002
Location: OH, USA
Distribution: 2.6.16-1.2096_FC5 #1
Posts: 245

Rep: Reputation: 30
just for shits and giggles ....you downloaded this ntp from ntp.org?? if not ..from where and which version
 
Old 07-06-2003, 05:24 PM   #7
Snabber
Member
 
Registered: Dec 2002
Posts: 76

Original Poster
Rep: Reputation: 15
ntp-4.1.1.tar.gz. But that doesn't matter. The configure problem also doesn't work in any other software.
 
Old 07-06-2003, 09:07 PM   #8
jhorvath
Member
 
Registered: Sep 2002
Location: OH, USA
Distribution: 2.6.16-1.2096_FC5 #1
Posts: 245

Rep: Reputation: 30
...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"

Last edited by jhorvath; 07-06-2003 at 09:15 PM.
 
Old 07-07-2003, 11:17 AM   #9
Snabber
Member
 
Registered: Dec 2002
Posts: 76

Original Poster
Rep: Reputation: 15
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
 
Old 07-07-2003, 11:18 AM   #10
Snabber
Member
 
Registered: Dec 2002
Posts: 76

Original Poster
Rep: Reputation: 15
I get a message that the program eg doesn't exist. If I run it normally, all goes well. Still, configure bombs out.
 
Old 07-07-2003, 12:02 PM   #11
jhorvath
Member
 
Registered: Sep 2002
Location: OH, USA
Distribution: 2.6.16-1.2096_FC5 #1
Posts: 245

Rep: Reputation: 30
...sorry i meant ..like for example "./a.out"
 
Old 07-07-2003, 02:29 PM   #12
Snabber
Member
 
Registered: Dec 2002
Posts: 76

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



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
Problem with ./configure Chtiman Linux - Software 1 01-04-2005 09:53 AM
./configure problem :( moskal Mandriva 23 08-15-2004 10:33 PM
problem with ./configure vijay_souri Linux - Software 0 06-07-2004 12:04 PM
.\configure PROBLEM mla Linux - Software 13 10-13-2003 04:01 PM
configure problem. qanopus Linux - General 9 12-17-2002 08:07 AM

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

All times are GMT -5. The time now is 03:08 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