Subject: Re: Can't make build on /usr/src
To: None <port-amiga@netbsd.org>
From: Gunther Nikl <gni@gecko.de>
List: port-amiga
Date: 08/10/2000 13:06:21
On Thu, Aug 10, 2000 at 03:56:14AM -0400, John Klos wrote:
> 
> I've tried to do a make build on the root level of /usr/src; it runs 
> for an hour or so, then I get:
> 
> all ===> sbin/mount_ados
> cc -O2 -m68060 -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes 
> -Wpointer-arith -Werror   -I/usr/src/sbin/mount_ados/../../sys 
> -I/usr/src/sbin/mount_ados/../mount -c mount_ados.c
> cc1: warnings being treated as errors
> mount_ados.c: In function `main':
> mount_ados.c:79: warning: implicit declaration of function `getopt'
> mount_ados.c:82: `optarg' undeclared (first use in this function)
> mount_ados.c:82: (Each undeclared identifier is reported only once
> mount_ados.c:82: for each function it appears in.)
> mount_ados.c:103: `optind' undeclared (first use in this function)
> mount_ados.c:110: warning: implicit declaration of function `getcwd'
> mount_ados.c: In function `a_mask':
> mount_ados.c:193: `optarg' undeclared (first use in this function)

  I don't have a 1.4.2 system available, only an older 1.4Z snapshot.
  The snapshot source for mount_ados.c looks ok.
  getopt() and its variables are declared in /usr/include/unistd.h
  That file should be included in mount_ados.c, if it is something
  else is screwed :-/
  I suppose the sources are ok since someone actually compiled an
  amiga release of 1.4.2.

> I've started building my second 68060 server, so I'm using 1.4.2 and 
> I wanted to make everything '060 optimised. Anyone know why I'm 
> getting stuck? Is this something I can skip, since I don't need to 
> use AmigaDOS partitions? How would I skip it if I wanted to?

  touch $(objdir)/mount_ados.o $(objdir)/mount_ados should do the trick.
  However, I am not sure that this will solve the problem. Its likely,
  that it will stop somethere else.

  Gunther