From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076331021256.tru64-unix-managers.marc@archive.invalid> From: Magali.Bernard () univ-st-etienne ! fr (Magali BERNARD) Date: Thu, 11 Apr 1996 14:23:21 +0000 To: tru64-unix-managers Subject: (SUMMARY) TULP 4.1 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076331021256 Last week I asked : > Did anyone success compiling tulp-4.1 with DU3.2c ? > > "make all" returns: > /usr/lib/cmplrs/cc/cfe: Error: l.c, line 492: 'HZ' undefined, reoccurrences > will not be reported > lTodhms(t.tms_utime/HZ); > -----------------------^ Thanks to: Michel.Royer@iut-nantes.univ-nantes.fr (Michel.Royer) Jean-Claude Giese Benoit Maillard Erik Nolf Bernard BARBIER I modified l.c and lc.c (according to Christophe Wolfhugel in reply to the same question to Michel Royer) #include long HZ; HZ = sysconf(CLK_TCK); and it works fine. Other suggestions were (didn't try these): - Replace HZ with hz - Define HZ = 60 - Replace HZ with TICKS where TICKS = sysconf(_SC_CLK_TCK) or 60 - Replace HZ with CLOCKS_PER_SEC (but I found CLOCKS_PER_SEC = 1000000 in /usr/include/machine/machtime.h, seems not to be the solution...) If you are using perl-5 and deliver.pl, be aware to modify "listserv@..." with "listserv\@..." and "$arg-request@..." with "$arg-request\@..." _________________________________________ Magali BERNARD (magali@univ-st-etienne.fr) CRITeR - 23 rue du Dr Paul Michelon 42023 St-Etienne Cedex 2 - FRANCE Tel: 77.48.50.62