Re: [Tack-devel] ACK compiles on NetBSD-macppc, sort of...
Moved to https://github.com/davidgiven/ack
Brought to you by:
dtrg
From: Gregory T. (t. K. <gt...@di...> - 2006-07-18 00:02:40
|
At 7:26 PM -0400 7/17/06, Gregory T. (tim) Kelly wrote: >make: don't know how to make ./trap_msg. Stop > >make: stopped in /home/lapd/ack/obj/util/int > >There are no trap_msg files. Ok, I got around this by running make depend. This led to another error in compiling, in linking moncalls.o. On BSD4_2 and later, ftime(2) is deprecated. This patch uses gettimeofday(2): Index: util/int/moncalls.c =================================================================== RCS file: /cvsroot/tack/Ack/util/int/moncalls.c,v retrieving revision 2.9 diff -r2.9 moncalls.c 59a60,62 > #ifdef BSD4_2 > extern off_t lseek(); > #else 60a64,65 > #endif > 741,744c746,758 < #ifdef BSD_X /* from system.h */ < ftime(&tb_buf); < #endif /* BSD_X */ < #ifdef SYS_V /* from system.h */ --- > #ifdef BSD_X /* from system.h */ > #ifndef BSD4_2 > ftime(&tb_buf); > #else /* BSD4_2 */ > rc = gettimeofday(&tv, 0); > tb_buf.time = tv.tv_sec; > tb_buf.millitm = tv.tv_usec * 1000; > tb_buf.timezone = timezone / 60; > tb_buf.dstflag = daylight; > #endif /* BSD4_2 */ > #endif /* BSD_X */ > #ifdef > SYS_V /* from system.h */ The make depend is temporary, though, since INSTALL will remove the dependencies, as far as I can tell. I do not know why this step fails without make depend. util/int does successfuly compile now, though. (At some point I will post a full patch kit but hopefully someone has a quick suggestion or two - I know David is very busy.) tim Gregory T. (tim) Kelly Owner Dialectronics.com P.O. Box 606 Newberry, SC 29108 "Anything war can do, peace can do better." -- Bishop Desmond Tutu |