Fehler beim compilieren von ls

F

flippy

Hallo,
ich wollte auf meinem Linuxrechner ls neu compilieren und hab mir deswegen coreutils-5.93 herruntergeladen. Ich hab es dann entpackt und mit ./configure und make auch compiliert bekommen.
Doch danach wollte ich es mit gcc 'von Hand' noch einmal neu compilieren, doch das funktionierte leider nicht.
Code:
/tmp/ccZpb9xS.o(.text+0x51f6): In function `length_of_file_name_and_frills':
: undefined reference to `umaxtostr'
/tmp/ccZpb9xS.o(.text+0x5291): In function `length_of_file_name_and_frills':
: undefined reference to `human_readable'
/tmp/ccZpb9xS.o(.text+0x584e): In function `init_column_info':
: undefined reference to `xnrealloc'
/tmp/ccZpb9xS.o(.text+0x587b): In function `init_column_info':
: undefined reference to `xnrealloc'
/tmp/ccZpb9xS.o(.text+0x58dc): In function `init_column_info':
: undefined reference to `xalloc_die'
/tmp/ccZpb9xS.o(.text+0x58f1): In function `init_column_info':
: undefined reference to `xnmalloc'
/tmp/ccZpb9xS.o(.text+0x5f51): In function `initialize_exit_failure':
Als Syntax hab ich
gcc -I /home/flippy/coreutils-5.93/lib -I /home/flippy/coreutils-5.93 -L /usr/lib/ ls.c -o kl verwendet!
Kann mir jemand sagen wie ich das richtig compiliert bekomme ohne make?

//edit: habs rausgefunden ...
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../lib -g -O2 -MT ls.o -MD -MP -MF ".deps/ls.Tpo" -c -o ls.o ls.c


gcc -g -O2 -o dir ls.o ls-dir.o ../lib/libcoreutils.a ../lib/libcoreutils.a -lrt
gcc -g -O2 -o vdir ls.o ls-vdir.o ../lib/libcoreutils.a ../lib/libcoreutils.a -lrt
gcc -g -O2 -o ls ls.o ls-ls.o ../lib/libcoreutils.a ../lib/libcoreutils.a -lrt
 
Zuletzt bearbeitet von einem Moderator:

Ähnliche Themen

Funktion nicht gefunden

Linker meckert über nicht definierte Funktion

Problem beim Kompilieren (Redhat 5)

Schwierigkeiten beim compillieren

Installation von monitord unter Debian wheezy

Zurück
Oben