tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* (SUMMARY) TULP 4.1
@ 1996-04-11 14:23 Magali.Bernard
  0 siblings, 0 replies; only message in thread
From: Magali.Bernard @ 1996-04-11 14:23 UTC (permalink / raw)
  To: tru64-unix-managers


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 <Jean-Claude.Giese@loria.fr>
Benoit Maillard  <maillard@atyisa.enet.dec.com>
Erik Nolf <nolf@petaxp.rug.ac.be>
Bernard BARBIER <Bernard.BARBIER@creatis.insa-lyon.fr>

I modified l.c and lc.c (according to Christophe Wolfhugel in reply to
the same question to Michel Royer)

#include <time.h>
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-04-11 14:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-11 14:23 (SUMMARY) TULP 4.1 Magali.Bernard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox