tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Magali.Bernard () univ-st-etienne ! fr (Magali BERNARD)
To: tru64-unix-managers
Subject: (SUMMARY) TULP 4.1
Date: Thu, 11 Apr 1996 14:23:21 +0000	[thread overview]
Message-ID: <96076331021256.tru64-unix-managers.marc@archive.invalid> (raw)


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

                 reply	other threads:[~1996-04-11 14:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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