Von: DI H. Arnold [SMTP:e8526705@fbma.tuwien.ac.at] Gesendet am: Montag, 26. Februar 2001 19:44
Von: DI H. Arnold [SMTP:e8526705@fbma.tuwien.ac.at] Gesendet am: Sonntag, 25. Februar 2001 19:47
Von: DI H. Arnold [SMTP:e8526705@fbma.tuwien.ac.at] Gesendet am: Samstag, 24. Februar 2001 04:15
Ich versuche gerade chrony-1.14 von (www.go.to/chrony) auf einem SuSE V 7.1 Kernel 2.2.18 zu installieren. [...] gcc -O2 -g LINUX -c rtc_linux.c:32: /usr/include/linux/mc146818rtc.h: 18 parse error before 'rtc_lock' /usr/include/linux/mc146818rtc.h: 18: warning: data definition has no type or storage class make: *** [rtc_linux.o] Error 1
Losung: ====== typedef int spinlock_t; in der Datei rtc_linux.c vor #include
hinzufugen Zur Erganzung (von der "chrony"-liste: Freza Holecek ): spinlock_t is not an int! (at least on linux 2.4.2), have a look at spinlock.h. However, the idea of fixing this bug in chrony sources (eg by including the spinlock.h header there) is probably a bit cleaner then messing with kernel sources... on the other side, why not to correct a bug instead of mangling software to conform it? ;-)
Weitere Erganzung, da fruher viele Anfrage wegen "chrony" stattgefunden haben:
Anmerkung: Thanks to John Hasler
spinlock_t is not an int!
Yes, but it doesn't matter because it is not actually used by chrony (there is no conceivable reason for any user-space program to need it). It (or '#include spinlock.h') is only there because mc146818rtc.h contains 'extern spinlock_t rtc_lock;' which the libc6-dev maintainer tells me is a bug.
[...]
lg Harald