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-17 21:24:13
|
Still more progress. I brute forced arch to compile with: Index: util/arch/archiver.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/tack/Ack/util/arch/archiver.c,v retrieving revision 1.29 diff -r1.29 archiver.c 47c47,48 < long lseek(); --- >=20 > extern off_t lseek(); which just overrides the long lseek to match BSD. I'm not 100% sure, but= this shouldn't break anything on which off_t is a long. On BSD, though,= off_t is __uint64_t. This requires adjusting several typedefs.h files to= only define off_t if not already defined by BSD: Index: include/_tail_cc/sys/types.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/tack/Ack/include/_tail_cc/sys/types.h,v retrieving revision 1.10 diff -r1.10 types.h 72a73 > #if !defined(BSD) 73a75 > #endif Index: include/_tail_mon/sys/types.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/tack/Ack/include/_tail_mon/sys/types.h,v retrieving revision 1.10 diff -r1.10 types.h 72a73 > #if !defined(BSD) 73a75 > #endif Index: lib/minix/include/sys/types.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/tack/Ack/lib/minix/include/sys/types.h,v retrieving revision 1.2 diff -r1.2 types.h 43a44 > #if !defined(BSD) 44a46 > #endif This gets the test.c farther: > ../bin/bin/acc -mem44 -I$ACKDIR/include/tail_ac -ansi -o test test.c Unresolved references Procedures: Data: __ctype I've narrowed down a few other problems. I think something isn't working= properly with lib.bin/em_opt. Compiling mach/ gets a lot of errors with= lib.bin/em_opt dying with signal 11: (from obj/mach/arm/Out) arm: ./lib.bin/em_opt died with signal 11 One thing that is still failing in the INSTALL shell is the EM interpreter= for C: =46ailed for EM interpreter in C, see util/int/Out=20 util/int/Out has the following errors (modified for content): =2E/util/int/m_ioctl.c: In function `do_ioctl': =2E/ util/int/m_ioctl.c:63: error: storage size of `tc_buf' isn't known =2E/ util/int/m_ioctl.c:94: error: `TIOCSETN' undeclared (first use in this = function) =2E/ util/int/m_ioctl.c:94: error: (Each undeclared identifier is reported= only once =2E/ util/int/m_ioctl.c:94: error: for each function it appears in.) =2E/ util/int/m_ioctl.c:98: error: `TIOCSETC' undeclared (first use in this = function) =2E/ util/int/m_ioctl.c:101: error: `TIOCGETC' undeclared (first use in this= function) *** Error code 1 Stop. make: stopped in /home/lapd/ack/obj/util/int I'm not sure what to make of this one, as the ioctl stuff is actually= declared in /usr/include/sys/ioctl_compat.h with BSD. Perhaps this header= is not getting picked up? Where should it have been included? thanks in advance, 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 |