Subject: Re: pkg/20724: new pkgsrc/devel/bin86
To: David Laight <david@l8s.co.uk>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/15/2003 14:07:42
On Sat, 15 Mar 2003, David Laight wrote:

> > X# XXX as it this is now, it won't build under NetBSD
> > X# XXX maybe patches under devel/bcc will help
>
> I don't remember any real problems building dev86-0.16.3 under netbsd.
> I didn't make a package, and had to put the binaries into the
> 'expected place' etc - but it did work.

I will need to look closer, but bin86 did not build ld/ld86.

It has many errors attempting to create writebin.o:

cc -O2 -D_POSIX_SOURCE -DREL_OUTPUT -DBUGCOMPAT -DVERSION='"0.16.11"'  -c
writebin.c
In file included from /usr/include/a.out.h:42,
                 from bindef.h:21,
                 from writebin.c:13:
/usr/include/sys/exec.h:90: parse error before `u_int'
/usr/include/sys/exec.h:90: warning: no semicolon at end of struct or
union
/usr/include/sys/exec.h:107: parse error before `u_long'
/usr/include/sys/exec.h:111: parse error before `}'
/usr/include/sys/exec.h:119: parse error before `u_int'
...
In file included from /usr/include/sys/exec.h:235,
                 from /usr/include/a.out.h:42,
                 from bindef.h:21,
                 from writebin.c:13:
/usr/include/sys/exec_aout.h:46: parse error before `u_long'
/usr/include/sys/exec_aout.h:46: warning: no semicolon at end of struct or
union
/usr/include/sys/exec_aout.h:47: warning: data definition has no type or
storage
 class
...
writebin.c: In function `writebin':
writebin.c:566: dereferencing pointer to incomplete type
writebin.c:568: dereferencing pointer to incomplete type
....
writebin.c: In function `writeheader':
writebin.c:963: storage size of `header' isn't known
writebin.c:978: `A_MAGIC0' undeclared (first use in this function)
writebin.c:978: (Each undeclared identifier is reported only once
writebin.c:978: for each function it appears in.)
writebin.c:979: `A_MAGIC1' undeclared (first use in this function)
writebin.c:992: `A_SEP' undeclared (first use in this function)
writebin.c:992: `A_EXEC' undeclared (first use in this function)
writebin.c:994: `A_UZP' undeclared (first use in this function)
writebin.c:1005: `A_I80386' undeclared (first use in this function)
writebin.c:1005: `A_I8086' undeclared (first use in this function)
writebin.c: At top level:
/usr/include/sys/exec.h:132: storage size of `ep_vmcmds' isn't known
gmake[1]: *** [writebin.o] Error 1


The make doesn't fail though -- it just continues to next part. And so is
not noticed at first.


   Jeremy C. Reed
   http://bsd.reedmedia.net/