PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Fehler beim Kompilieren von util-linux



flo#bre
25.07.04, 00:10
Hallo,

ich versuche loop-aes nach diesem Artikel http://www.pl-forum.de/t_system/loop-aes.html zum Laufen zu bringen.

Bis zu dem Befehle "make ADD_RAW=no" funktioniert auch alles ohne fehlermeldungen, aber bei make bricht er mit folgenden Fehlermeldungen ab:



make[1]: Entering directory `/home/florian/Download/Verschiedenes/loopaes/util-linux-2.12a/po'
make[1]: Für das Target »all« gibt es nichts zu tun.
make[1]: Leaving directory `/home/florian/Download/Verschiedenes/loopaes/util-linux-2.12a/po'
make[1]: Entering directory `/home/florian/Download/Verschiedenes/loopaes/util-linux-2.12a/lib'
make[1]: Für das Target »all« gibt es nichts zu tun.
make[1]: Leaving directory `/home/florian/Download/Verschiedenes/loopaes/util-linux-2.12a/lib'
make[1]: Entering directory `/home/florian/Download/Verschiedenes/loopaes/util-linux-2.12a/getopt'
make[1]: Für das Target »all« gibt es nichts zu tun.
make[1]: Leaving directory `/home/florian/Download/Verschiedenes/loopaes/util-linux-2.12a/getopt'
make[1]: Entering directory `/home/florian/Download/Verschiedenes/loopaes/util-linux-2.12a/disk-utils'
cc -pipe -O2 -m486 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes -DNCH=1 -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -O2 -s blockdev.c -o blockdev
blockdev.c:70: parse error before `['
blockdev.c:70: initializer element is not constant
blockdev.c:70: (near initialization for `bdcms[4].ioc')
blockdev.c:73: parse error before `['
blockdev.c:73: initializer element is not constant
blockdev.c:73: (near initialization for `bdcms[5].ioc')
blockdev.c: In function `report_device':
blockdev.c:331: parse error before `['
make[1]: *** Fehler 1
make[1]: Leaving directory `/home/florian/Download/Verschiedenes/loopaes/util-linux-2.12a/disk-utils'
make: *** [all] Fehler 1


vorher bei ./configure kam folgendes



configuring util-linux-2.12a

You have <scsi/scsi.h>
You have <linux/blkpg.h>
You have <linux/kd.h>
You have <locale.h>
You have <langinfo.h>
You have <sys/user.h>
You have <rpcsvc/nfs_prot.h>
You have <asm/types.h>
You have <linux/raw.h>
You have <stdint.h>
You have inet_aton()
You have fsync()
You have getdomainname()
You have nanosleep()
You have personality()
You have updwtmp()
You have fseeko()
You have lchown()
You have rpmatch()
You don't need <linux/tqueue.h>
You have <term.h>
You have ncurses. Using <ncurses.h>.
You have termcap
[B]You need -lcrypt
You have <libintl.h> and gettext()
You have __progname
You have <pty.h> and openpty()
You have wide character support
You have SYS_pivot_root
You have a tm_gmtoff field in struct tm
Your rpcgen seems to work
You have zlib


ich brauche scheinbar lcrypt. Hat das was mit dem Fehler zu tun und woher bekomme ich das, wenn ich das brauche?

Vielen Dank

mfg

wolfpac
25.07.04, 13:19
vielleicht hat der patch irgendwas durcheinander gewürfelt
kamen denn beim patchen irgendwelche fehler?

flo#bre
25.07.04, 13:31
nein, da kamen keine fehler
lief alles fehlerfrei durch

wolfpac
26.07.04, 14:19
welchen kernel benutzt du? ab 2.6.x gabs probleme
versuchs mal hier mit: http://www.linuxfromscratch.org/patches/lfs/cvs/unstable/util-linux-2.12a-kernel_headers-1.patch

flo#bre
26.07.04, 17:18
hallo

ich hab den kernel 2.4.18
brauche ich den patch da?
wie setze ich den ein?

vielen dank

wolfpac
26.07.04, 20:30
ne dann brauchst du ihn nicht
hmm sonst fällt mir auch nix mehr ein (welche gcc-version)

meine blockdev.c ist 7557 bytes gross

flo#bre
26.07.04, 21:37
meine blockdev.c ist auch 7557 bytes groß und meine gcc version ist 2.95.4

meinereinerseiner
27.07.04, 09:49
hi,

welche loop-AES und util-linux Version hast du denn? Hab die erfahrung
gemacht, das nicht jede loop-aes version mit best. util-linux versionen
geht, auch wenn jeweils der vermeintlich richtige patch dabei war.

bei mir läuft loop-AES-v1.7c und util-linux-2.11z problemlos auf einem
2.4.20er Kernel mit gcc version 2.96. (RH 7.3)
howto-1 (http://devil.linux-site.net/~tom/zeugs/loopaes.htm)

sowie loop-AES-v2.1b und util-linux-2.12a mit einigen verränkungen auf einem
2.6.5-7.95er SuSE-Kernel mit gcc version 3.3.3. (SuSE 9.1)
howto-2 (http://devil.linux-site.net/~tom/zeugs/loopaes-suse9.1.txt)

der tom

flo#bre
27.07.04, 11:44
danke, das werde ich mal ausprobieren