leon
04.08.01, 16:11
Hallo Leute. Ich versuche gerade ncurses-5.2 zu compilieren. Leider bricht der Compiler immer mit dieser Fehlermeldung ab.
cd ../obj_s; gcc -I../test -I. -DNDEBUG -I. -I../include -I/mnt/lfs/usr/include -DHAVE_CONFIG_H -O2 -fPIC -c ../test/tclock.c
gcc -o tclock ../obj_s/tclock.o -L../lib -L/mnt/lfs/lib -lform -lmenu -lpanel -lncurses -Wl,-rpath,/mnt/lfs/usr/src/ncurses-5.2/lib
../obj_s/tclock.o: In function `main':
../obj_s/tclock.o(.text+0x307): undefined reference to `sin'
../obj_s/tclock.o(.text+0x348): undefined reference to `cos'
../obj_s/tclock.o(.text+0x50e): undefined reference to `sin'
../obj_s/tclock.o(.text+0x546): undefined reference to `cos'
../obj_s/tclock.o(.text+0x5a3): undefined reference to `sin'
../obj_s/tclock.o(.text+0x5db): undefined reference to `cos'
../obj_s/tclock.o(.text+0x630): undefined reference to `sin'
../obj_s/tclock.o(.text+0x668): undefined reference to `cos'
collect2: ld returned 1 exit status
make[1]: *** [tclock] Error 1
make[1]: Leaving directory `/mnt/lfs/usr/src/ncurses-5.2/test'
make: *** [all] Error 2
Hat einer eine Idee, woran das liegt.
Ach so, ./configure mit
./configure --prefix=/usr --libdir=/lib \
--with-shared --disable-termcap
gcc --version 2.95.2
Kernel 2.2.16
GNU Make version 3.79.1
Vielen Dank an alle
Euer LEON
[ 04. August 2001: Beitrag editiert von: Leon ]
cd ../obj_s; gcc -I../test -I. -DNDEBUG -I. -I../include -I/mnt/lfs/usr/include -DHAVE_CONFIG_H -O2 -fPIC -c ../test/tclock.c
gcc -o tclock ../obj_s/tclock.o -L../lib -L/mnt/lfs/lib -lform -lmenu -lpanel -lncurses -Wl,-rpath,/mnt/lfs/usr/src/ncurses-5.2/lib
../obj_s/tclock.o: In function `main':
../obj_s/tclock.o(.text+0x307): undefined reference to `sin'
../obj_s/tclock.o(.text+0x348): undefined reference to `cos'
../obj_s/tclock.o(.text+0x50e): undefined reference to `sin'
../obj_s/tclock.o(.text+0x546): undefined reference to `cos'
../obj_s/tclock.o(.text+0x5a3): undefined reference to `sin'
../obj_s/tclock.o(.text+0x5db): undefined reference to `cos'
../obj_s/tclock.o(.text+0x630): undefined reference to `sin'
../obj_s/tclock.o(.text+0x668): undefined reference to `cos'
collect2: ld returned 1 exit status
make[1]: *** [tclock] Error 1
make[1]: Leaving directory `/mnt/lfs/usr/src/ncurses-5.2/test'
make: *** [all] Error 2
Hat einer eine Idee, woran das liegt.
Ach so, ./configure mit
./configure --prefix=/usr --libdir=/lib \
--with-shared --disable-termcap
gcc --version 2.95.2
Kernel 2.2.16
GNU Make version 3.79.1
Vielen Dank an alle
Euer LEON
[ 04. August 2001: Beitrag editiert von: Leon ]