LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-10-2007, 12:43 PM   #1
alpha_hack
Member
 
Registered: Jul 2007
Location: Sofia, Bulgaria
Distribution: Slackware 13.1x86_64
Posts: 75

Rep: Reputation: 15
Problem with C compiler


Hey everybody !
I'm trying to install imlib2-1.4.0 on a Slackware 11 with kernel 2.6.22 . First when doing ./configure I got:
Code:
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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.
I thought that something is wrong with the program, because earlier I've installed xmms with ./configure and it worked fine...

When typing:
which gcc:
/usr/bin/gcc

gcc -v:
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.6


Also I have in my package (and installed):
gcc-g++4.1.2-i484-1
gcc-g77-3.4.6-i484-1
gcc-gnat-3.4.6-i484-1
gcc-java-3.4.6-i484-1
gcc-objc-3.4.6-i484-1

glib-1.2.10-i386-2
glib2-2.12.9-i683-1dl
glibc-2.5-i484-4



Could somebody please give me a hand with this one



 
Old 07-10-2007, 12:51 PM   #2
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
Post the config.log contents here. Might be some clues in there.
 
Old 07-10-2007, 01:57 PM   #3
alpha_hack
Member
 
Registered: Jul 2007
Location: Sofia, Bulgaria
Distribution: Slackware 13.1x86_64
Posts: 75

Original Poster
Rep: Reputation: 15
Code:
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.60.  Invocation command line was

  $ ./configure 

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

hostname = hackbox
uname -m = i686
uname -r = 2.6.21.4
uname -s = Linux
uname -v = #4 SMP Sat Jun 9 13:24:09 EEST 2007

/usr/bin/uname -p = pentium4
/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: /java/jdk1.5.0_12/bin
PATH: /java/bin
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: /opt/kde/bin
PATH: /usr/lib/qt/bin
PATH: /usr/share/texmf/bin


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

configure:1979: checking build system type
configure:1997: result: i686-pc-linux-gnu
configure:2019: checking host system type
configure:2034: result: i686-pc-linux-gnu
configure:2104: checking for gcc
configure:2120: found /usr/bin/gcc
configure:2131: result: gcc
configure:2369: checking for C compiler version
configure:2376: gcc --version >&5
gcc (GCC) 3.4.6
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:2379: $? = 0
configure:2386: gcc -v >&5
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.6
configure:2389: $? = 0
configure:2396: gcc -V >&5
gcc: `-V' option must have argument
configure:2399: $? = 1
configure:2422: checking for C compiler default output file name
configure:2449: gcc    conftest.c  >&5
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libc.so: file format not recognized; treating as linker script
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../libc.so:5: parse error
collect2: ld returned 1 exit status
configure:2452: $? = 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:2491: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=
ac_cv_env_CCAS_value=
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_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_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_prog_ac_ct_CC=gcc

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

ACLOCAL=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR=''
AR=''
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK=''
BUILD_AMD64_FALSE=''
BUILD_AMD64_TRUE=''
BUILD_BZ2_LOADER_FALSE=''
BUILD_BZ2_LOADER_TRUE=''
BUILD_GIF_LOADER_FALSE=''
BUILD_GIF_LOADER_TRUE=''
BUILD_ID3_LOADER_FALSE=''
BUILD_ID3_LOADER_TRUE=''
BUILD_JPEG_LOADER_FALSE=''
BUILD_JPEG_LOADER_TRUE=''
BUILD_MMX_FALSE=''
BUILD_MMX_TRUE=''
BUILD_PNG_LOADER_FALSE=''
BUILD_PNG_LOADER_TRUE=''
BUILD_TIFF_LOADER_FALSE=''
BUILD_TIFF_LOADER_TRUE=''
BUILD_X11_FALSE=''
BUILD_X11_TRUE=''
BUILD_ZLIB_LOADER_FALSE=''
BUILD_ZLIB_LOADER_TRUE=''
BZ2LIBS=''
CC='gcc'
CCAS=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXXCPP=''
CYGPATH_W=''
DEFS=''
DEPDIR=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FREETYPE_CONFIG=''
GIFLIBS=''
GREP=''
ID3LIBS=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_STRIP_PROGRAM=''
JPEGLIBS=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO=''
OBJEXT=''
PACKAGE=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PNGLIBS=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
TIFFLIBS=''
VERSION=''
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ZLIBLIBS=''
ac_ct_CC='gcc'
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot=''
am__quote=''
am__tar=''
am__untar=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p=''
my_includes=''
my_libs=''
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 ""

configure: exit 77
This is what's in the config.log

I've saw some other topics which matched my topic and saw that I'm needed glibc-devel , but I can't manage to find that package ?
Any hint ?

Last edited by alpha_hack; 07-10-2007 at 03:09 PM.
 
Old 07-10-2007, 06:01 PM   #4
alpha_hack
Member
 
Registered: Jul 2007
Location: Sofia, Bulgaria
Distribution: Slackware 13.1x86_64
Posts: 75

Original Poster
Rep: Reputation: 15
Oks..
After I did almost everything that was written in the forum about this problem and got a whole day on listing libs and stuff like that I fixed my problem doing this:

1) root@something:/# pkgtool -> remove
and I removed my gcc-* , gcc-g++-* glibc-* ( including the glibc-i18n-* , glibc-profile-* , glibc-solibs-* , glibc-zoneinfo-* )

* The version of the package


I rebooted and started all over.
Downloaded these packages from here / here:
gcc-3.4.6
gcc-gc++4.1.2
glibc-2.5
glibc-i18-2.5-noreach-4
glibc-profile-2.5-i486--4
glibc-solibs-2.5-i486-4
glibc-zoneinfo-2.5-noarch-4

and installed them via pktool

2) root@something:/dir_of_packages# pkgtool -> Current
.. root@something:/dir_of_packages# reboot

The error was gone and everything was working oks.
I hope that helps the next person who has the same problem, because I saw about 10 topics with this question

Good luck

Last edited by alpha_hack; 07-10-2007 at 06:02 PM.
 
  


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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 01:35 PM
C compiler problem... ramesh6056 Linux - Software 2 06-08-2007 06:37 AM
c++ compiler problem evian Linux - General 4 10-30-2003 12:29 PM
Compiler Problem ixion Linux - Software 2 06-17-2003 08:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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