PDA

View Full Version : checking for C compiler default output file name... configure: error: C compiler cann


Tiposveglio
30-01-2006, 12:05
Ciao a tutti,
sto installando su un pc che usa Ubuntu v5.10 la versione 4.6 di sharutils. Ho letto il file "INSTALL" contenuto nella directory dove ho scompattato il tar.bz2 e faccio partire lo script di configurazione "./configure" e qui ho il seguente problema:
------------------------------------------------------------------------------------------------------------
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
------------------------------------------------------------------------------------------------------------

qui invece riporto il contenuto del file "config.log" che lo script produce:
--------------------------------------------------------------------------------------------------------
## --------- ##
## Platform. ##
## --------- ##

hostname = catarina
uname -m = i686
uname -r = 2.6.12-9-386
uname -s = Linux
uname -v = #1 Mon Oct 10 13:14:36 BST 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/bin
PATH: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/bin/X11
PATH: /usr/games


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

configure:1377: checking for a BSD-compatible install
configure:1432: result: /usr/bin/install -c
configure:1443: checking whether build environment is sane
configure:1486: result: yes
configure:1551: checking for gawk
configure:1567: found /usr/bin/gawk
configure:1577: result: gawk
configure:1587: checking whether make sets $(MAKE)
configure:1607: result: yes
configure:1827: checking for gcc
configure:1843: found /usr/bin/gcc
configure:1853: result: gcc
configure:2097: checking for C compiler version
configure:2100: gcc --version </dev/null >&5
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
Copyright (C) 2005 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:2103: $? = 0
configure:2105: gcc -v </dev/null >&5
Using built-in specs.
Target: i486-linux-gnu

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
configure:2108: $? = 0
configure:2110: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2113: $? = 1
configure:2136: checking for C compiler default output file name
configure:2139: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2142: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "sharutils"
| #define PACKAGE_TARNAME "sharutils"
| #define PACKAGE_VERSION "4.6"
| #define PACKAGE_STRING "sharutils 4.6"
| #define PACKAGE_BUGREPORT "bug-gnu-utils@gnu.org"
| #define PACKAGE "sharutils"
| #define VERSION "4.6"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2181: error: C compiler cannot create executables
See `config.log' for more details.

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

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_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /root/sharutils-4.6/missing --run aclocal-1.9'
ADD_SCRIPT='mail-files mailshar'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /root/sharutils-4.6/missing --run tar'
AUTOCONF='${SHELL} /root/sharutils-4.6/missing --run autoconf'
AUTOHEADER='${SHELL} /root/sharutils-4.6/missing --run autoheader'
AUTOMAKE='${SHELL} /root/sharutils-4.6/missing --run automake-1.9'
AWK='gawk'
BUILD_INCLUDED_LIBINTL=''
CATOBJEXT=''
CC='gcc'
CCDEPMODE=''
CFLAGS=''
COMPRESS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DATADIRNAME=''
DEFS=''
DEPDIR=''
DIFF=''
DIST_ALPHA=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GENCAT=''
GLIBC21=''
GLIBC2=''
GMSGFMT=''
HAVE_ASPRINTF=''
HAVE_POSIX_PRINTF=''
HAVE_SNPRINTF=''
HAVE_WPRINTF=''
INSTALL_COMPRESS_LINK=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INSTOBJEXT=''
INTLBISON=''
INTLLIBS=''
INTLOBJS=''
INTL_LIBTOOL_SUFFIX_PREFIX=''
INTL_MACOSX_LIBS=''
LDFLAGS=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAILER=''
MAKEINFO='${SHELL} /root/sharutils-4.6/missing --run makeinfo'
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
OBJEXT=''
PACKAGE='sharutils'
PACKAGE_BUGREPORT='bug-gnu-utils@gnu.org'
PACKAGE_NAME='sharutils'
PACKAGE_STRING='sharutils 4.6'
PACKAGE_TARNAME='sharutils'
PACKAGE_VERSION='4.6'
PATH_SEPARATOR=':'
PERL=''
POSUB=''
RANLIB=''
SET_MAKE=''
SH=''
SHELL='/bin/sh'
STRIP=''
TAR=''
USE_INCLUDED_LIBINTL=''
USE_NLS=''
UUCODE_FALSE=''
UUCODE_TRUE=''
VERSION='4.6'
XGETTEXT=''
ac_ct_CC='gcc'
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/root/sharutils-4.6/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
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 "sharutils"
#define PACKAGE_BUGREPORT "bug-gnu-utils@gnu.org"
#define PACKAGE_NAME "sharutils"
#define PACKAGE_STRING "sharutils 4.6"
#define PACKAGE_TARNAME "sharutils"
#define PACKAGE_VERSION "4.6"
#define VERSION "4.6"

configure: exit 77
--------------------------------------------------------------------------------------------------------
Qualcuno sa dirmi da cosa dipende quest'errore e come posso risolverlo?
Aggiungo che lo stesso pacchetto l'ho installato su una suse 10 e non mi ha dato nessuna noia!
Grazie in anticipo x la collaborazione!

Tiposveglio
30-01-2006, 12:17
Appena inserito il topic ho trovato la soluzione: ho installato il pacchetto "build-essential" ed ha funzionato tutto!
Alla prossima