[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GCC Grundeinstellung ist daneben



Hartmut Niemann <Hartmut.Niemann@gmx.de> writes:

> Hallo *!
>
> Auf einem Squeeze-Rechner ist das Setup von gcc irgendwie daneben.
> Draufgekommen bin ich, weil ein configure-Skript gemosert hat:
>
> checking whether the C compiler works... no
> configure: error: in `/home/ha/dvbcut/dvbcut':
> configure: error: C compiler cannot create executables
>
> Deswegen habe ich es ganz simpel probiert:
>
> hello.c ist das typische Helloworld.
>
> $ gcc hello.c
> /usr/bin/ld: crt1.o: No such file: No such file or directory
> collect2: ld returned 1 exit status
>
> Das sollte doch eigentlich ohne irgendwelche Zusatzangaben funktionieren, oder?
>
> $ locate crt1.o
> /usr/lib/i386-linux-gnu/Mcrt1.o
> /usr/lib/i386-linux-gnu/Scrt1.o
> /usr/lib/i386-linux-gnu/crt1.o
> /usr/lib/i386-linux-gnu/gcrt1.o
>
> und das Paket libc6-dev, von dem mir ein Google-Treffer erzählt hat, dass crt1.o drin wäre, ist auch installiert.
>
> Weiss jemand, was da zu tun ist?

Ich bin mal so unverschämt und unterstell, dass das kein libc6-dev Paket
aus Squeeze ist. Das sieht nämlich nach multiarch aus (die Pfade jetzt).
Und wenn du Squeeze mit unstable mixt, ja dann kanns schon sein dass was
nicht funktioniert.
Dem ./configure-Skript sollt man den Pfad zu crt1 usw. irgendwie
mitgeben können, dann sollt auch das Compile wieder klappen.

> Viele Grüße
> Hartmut

-tom

-- 
You should never underestimate the predictability of stupidity. 
                -- Bullet Tooth Tony in Snatch


Reply to: