C compiler cannot create executables.

Luci deepgarden at gmail.com
Tue Jul 13 15:37:41 PDT 2004


I have searched all over for the answer to my problem with no luck.  Maybe someone has had experience with these types of errors and can offer some sane advice.

I am running Debian w/ kernel 2.4.18.  I used apt-cache update then apt-get install to get the latest versions of CUPS and gimp-print.
Here is what I have:

:/usr/src/gimp-print-4.2.6# dpkg -l | grep cups
ii  cupsys         1.1.14-5       Common UNIX Printing System(tm) - server
ii  cupsys-bsd     1.1.14-5       Common UNIX Printing System(tm) - BSD comman
ii  cupsys-client  1.1.14-5       Common UNIX Printing System(tm) - client pro
rc  cupsys-driver- 4.2.0-4        gimp-print printer driver for CUPS
ii  cupsys-pstoras 1.1.14-5       Common UNIX Printing System(tm) - pstoraster
ii  libcupsys2     1.1.19final-1. Common UNIX Printing System(tm) - libs

After unpacking gimp-print in /usr/src then cd to /usr/src/gimp-print-4.2.6 I tried to run ./configure --with-cups.  Here is what happens:

:/usr/src/gimp-print-4.2.6# ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
checking for cups-config... no
checking whether to build CUPS driver... no
checking whether to build translated CUPS PPD files... yes
checking whether to use level 3 PostScript... no
checking whether to build ghostscript driver... no
checking for foomatic-configure... no
checking whether to build foomatic data files... no
checking for foomatic-ppdfile... no
checking whether to make use of Foomatic 3.x features... no
checking whether to use the old numerical Foomatic printer IDs... no
checking for ijs-config... no
checking whether to build IJS driver... no
checking whether to turn on debugging in build... no
checking whether to use readline... yes
checking for gimp-config... no
checking whether to build GIMP plugin... no
checking whether to install sample images... yes
checking whether to install user guide... yes
checking whether to build escputil... yes
checking whether to build testpattern generator... no
checking whether to build test programs... no
checking if user install is enabled... no
checking for strerror in -lcposix... no
checking for mawk... mawk
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.


It totally chokes.  Here is the part of config.log where the trouble seems to be:

configure:1653: checking for strerror in -lcposix
configure:1672: cc -o conftest    conftest.c -lcposix   1>&5
/usr/bin/ld: cannot find -lcposix
collect2: ld returned 1 exit status
configure: failed program was:
#line 1661 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char strerror();

int main() {
strerror()
; return 0; }
configure:1699: checking for mawk
configure:1731: checking for gcc
configure:1844: checking whether the C compiler (gcc  ) works
configure:1860: gcc -o conftest    conftest.c  1>&5
/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
elf-init.oS(.text+0x1c): undefined reference to `__init_array_end'
elf-init.oS(.text+0x22): undefined reference to `__init_array_start'
elf-init.oS(.text+0x37): undefined reference to `__init_array_start'
/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_fini':
elf-init.oS(.text+0x5b): undefined reference to `__fini_array_end'
elf-init.oS(.text+0x61): undefined reference to `__fini_array_start'
elf-init.oS(.text+0x7f): undefined reference to `__fini_array_start'
collect2: ld returned 1 exit status
configure: failed program was:

#line 1855 "configure"
#include "confdefs.h"

main(){return(0);}

I wrote a little "hello world" in c and tried to compile hoping to get to the bottom of things.  It seems the compiler is missing a library and gods knows what else.

k:/usr/src/gimp-print-4.2.6# gcc -o world world.c
/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
elf-init.oS(.text+0x1c): undefined reference to `__init_array_end'
elf-init.oS(.text+0x22): undefined reference to `__init_array_start'
elf-init.oS(.text+0x37): undefined reference to `__init_array_start'
/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_fini':
elf-init.oS(.text+0x5b): undefined reference to `__fini_array_end'
elf-init.oS(.text+0x61): undefined reference to `__fini_array_start'
elf-init.oS(.text+0x7f): undefined reference to `__fini_array_start'
collect2: ld returned 1 exit status



I have googled these errors without much luck.  Please offer any advice and I will report back with the results.
Thanks!







More information about the cups mailing list