(SUMMARY) TULP 4.1

From: Magali BERNARD <Magali.Bernard_at_univ-st-etienne.fr>
Date: Thu, 11 Apr 96 16:23:21 +0200

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_at_iut-nantes.univ-nantes.fr (Michel.Royer)
Jean-Claude Giese <Jean-Claude.Giese_at_loria.fr>
Benoit Maillard <maillard_at_atyisa.enet.dec.com>
Erik Nolf <nolf_at_petaxp.rug.ac.be>
Bernard BARBIER <Bernard.BARBIER_at_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_at_..."
with "listserv\_at_..." and "$arg-request_at_..." with "$arg-request\_at_..."



_________________________________________
Magali BERNARD (magali_at_univ-st-etienne.fr)
CRITeR - 23 rue du Dr Paul Michelon
42023 St-Etienne Cedex 2 - FRANCE
Tel: 77.48.50.62
Received on Thu Apr 11 1996 - 16:59:27 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT