LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   configure: error: C compiler cannot create executables (https://www.linuxquestions.org/questions/linux-newbie-8/configure-error-c-compiler-cannot-create-executables-569046/)

Geneset 07-13-2007 08:55 AM

configure: error: C compiler cannot create executables
 
This problem seems to crop up all over the forum workld and noone has a general answer because of the nature of the issue. Standard story: I'm ./configuring a package and it fails with this error "configure: error: C compiler cannot create executables"
Here is the config.log

Quote:

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

$ ./configure

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

hostname = server
uname -m = i686
uname -r = 2.6.20-16-generic
uname -s = Linux
uname -v = #2 SMP Thu Jun 7 20:19:32 UTC 2007

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/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
PATH: /usr/bin/X11
PATH: /usr/games


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

configure:1753: checking for a BSD-compatible install
configure:1809: result: /usr/bin/install -c
configure:1820: checking whether build environment is sane
configure:1863: result: yes
configure:1878: checking whether make sets $(MAKE)
configure:1899: result: yes
configure:1931: checking for working aclocal-1.4
configure:1938: result: found
configure:1946: checking for working autoconf
configure:1953: result: found
configure:1961: checking for working automake-1.4
configure:1968: result: found
configure:1976: checking for working autoheader
configure:1983: result: found
configure:1991: checking for working makeinfo
configure:2002: result: missing
configure:2012: checking whether to enable maintainer-specific portions of Makefiles
configure:2021: result: no
configure:2084: checking for gcc
configure:2100: found /usr/bin/gcc
configure:2111: result: gcc
configure:2349: checking for C compiler version
configure:2356: gcc --version >&5
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Copyright (C) 2006 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:2359: $? = 0
configure:2366: gcc -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
configure:2369: $? = 0
configure:2376: gcc -V >&5
gcc: '-V' option must have argument
configure:2379: $? = 1
configure:2402: checking for C compiler default output file name
configure:2429: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2432: $? = 1
configure:2470: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "ophcrack"
| #define VERSION "2.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2477: 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_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PACKAGE_CFLAGS_set=
ac_cv_env_PACKAGE_CFLAGS_value=
ac_cv_env_PACKAGE_LIBS_set=
ac_cv_env_PACKAGE_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_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_path_install='/usr/bin/install -c'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='aclocal-1.4'
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='automake-1.4'
CC='gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='/mnt/Setup Progs/ophcrack-2.2/missing makeinfo'
OBJEXT=''
PACKAGE='ophcrack'
PACKAGE_BUGREPORT=''
PACKAGE_CFLAGS=''
PACKAGE_LIBS=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
SET_MAKE=''
SHELL='/bin/bash'
VERSION='2.2'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "ophcrack"
#define VERSION "2.2"

configure: exit 77
Any help would be greatly appreciated



Just an addition, I got past that problem with apt-getting the build-essentials package..... its the kinda thing u would expect to be in the distro automatically but thats it. Unfortunatly i have another problem, now it says that:
[QUOTE]
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PACKAGE... configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:

No package 'gtk+-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PACKAGE_CFLAGS
and PACKAGE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
[QUOTE]

and honestly, i dont even know where to start understanding what that means :D any help would be fantastic.

lord-fu 07-13-2007 10:13 AM

Quote:

checking for PACKAGE... configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:

No package 'gtk+-2.0' found
It is telling you that you do not have the gtk+-2.0 package. Install it and you should float past that error.

Geneset 07-13-2007 11:17 AM

yeah, that'd b nice if it was that simple, but there is no gtk+-2.0 package in the apt repos. as for autocompleting the apt request, theres 110 gtk related packages and theres nothing that stands out as being a master package

lord-fu 07-13-2007 12:09 PM

What about the devel libraries?

Not an Debian based distro user but I would imagine there is something.

A quick google looked promising.

http://www.google.com/search?hl=en&q...=Google+Search

Hope it helps some.

Geneset 07-13-2007 02:14 PM

looks like its a start, hadnt thought about the dev libs, thats life i guess, thanks.after a little bit of follow thru i fixed a couple of intermediary problems and am stuck on nw the openssl headers arnt being found but I've reinstalled the package and makes no difference. Any ideas?

lord-fu 07-13-2007 02:22 PM

Most of the experiences I have had required development libraries if anything, try openssl-devel or something similar. Actually if it is looking for headers I can almost guarantee that it wants dev libs. Of course I reserve the right to be wrong ;}
Hope it helps some.

Geneset 07-13-2007 02:53 PM

bingo, libssl-dev. after that everything is a charm. Thanks very much. U wer a great help

lord-fu 07-13-2007 03:11 PM

Glad it worked for you.


All times are GMT -5. The time now is 10:50 PM.