Yep - you could include linux/hz.h where the HZ macro is defined but then you will end up with unresolved symbol called __HZ during linktime.....
Plamen On Monday 01 March 2004 08:05, Erik Kunze wrote: > Hello, > > * Joerg Schilling <[EMAIL PROTECTED]> [040228 22:28]: > > Date: Sat, 28 Feb 2004 22:28:58 +0100 (CET) > > From: Joerg Schilling <[EMAIL PROTECTED]> > > Subject: Re: Compilation problem under SuSE 9.0 > > > > >From: [EMAIL PROTECTED] (Plamen Neykov) > > > > >I have problem compiling the cdrtools 2.01a25 under SuSE 9.0. > > >The error message is: > > > > >/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld: > > >cannot find -lscg > > > > >and in libscg I get the following error message: > > > > > ==> COMPILING "OBJ/i686-linux-cc/scsihack.o" > > >In file included from scsihack.c:127: > > >scsi-linux-sg.c: In function `sg_settimeout': > > >scsi-linux-sg.c:1135: error: `HZ' undeclared (first use in this function) > > >scsi-linux-sg.c:1135: error: (Each undeclared identifier is reported only > > >once > > >scsi-linux-sg.c:1135: error: for each function it appears in.) > > >make[2]: *** [OBJ/i686-linux-cc/scsihack.o] Error 1 > > >make[2]: Leaving directory `/root/src/cdrtools-2.01/libscg' > > >make[1]: *** [all] Error 2 > > >make[1]: Leaving directory `/root/src/cdrtools-2.01/libscg' > > > > > > If SuSE comes with defective include files, you need to send a bug report > > to SuSE..... > > Are you sure about this? HZ is no longer a constant value. To get > the value for HZ one needs to call a function, since it can change > during runtime :-o >
pgp9K0A0I3OGX.pgp
Description: signature