Subject: Re: MD/RAMDISK building
To: Chris Tribo <ctribo@college.dtcc.edu>
From: Tim Kelly <hockey@dialectronics.com>
List: port-macppc
Date: 12/28/2004 07:58:08
At 10:07 AM -0500 12/27/04, Chris Tribo wrote:
>
>I followed these instructions for building an embedded NetBSD that fits
>on my USB keychain.
>
>http://www.bsdnewsletter.com/2003/09/Features102.html

What about just the stock distro? All I'm wanting to do is replace the
kernel and fdisk in the stock MD. The link discusses a lot more than what
I'm looking for, and has already been done in src/distrib. However, I am
unable to get a successful build for many reasons. For example

Net7300# pwd
/usr/src/distrib/macppc
Net7300# nbmake
all ===> floppies
all ===> floppies/ramdisk
#   compile  ramdisk/getcap.o
/usr/src/tooldir.NetBSD-2.99.10-powerpc/bin/powerpc--netbsd-gcc -Os
-mmultiple -mstring  -Werror     -DSMALL  -nostdinc -isystem /usr/include
-c    /usr/src/distrib/utils/libhack/../../../lib/libc/gen/getcap.c
/usr/src/lib/libc/gen/getcap.c:218: error: conflicting types for `cgetent'
/usr/include/stdlib.h:245: error: previous declaration of `cgetent'
/usr/src/lib/libc/gen/getcap.c:734: error: conflicting types for `cgetfirst'
/usr/include/stdlib.h:246: error: previous declaration of `cgetfirst'
/usr/src/lib/libc/gen/getcap.c: In function `cgetfirst':
/usr/src/lib/libc/gen/getcap.c:740: warning: passing arg 2 of `cgetnext'
from incompatible pointer type
/usr/src/lib/libc/gen/getcap.c: At top level:
/usr/src/lib/libc/gen/getcap.c:767: error: conflicting types for `cgetnext'
/usr/include/stdlib.h:248: error: previous declaration of `cgetnext'
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/macppc/floppies/ramdisk
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/macppc/floppies
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/macppc
Net7300# nbmake -j 2
--- all-floppies ---
all ===> floppies
--- all-ramdisk ---
all ===> floppies/ramdisk
nbmake: nbmake: don't know how to make /usr/src/etc/MAKEDEV. Stop
*** [all-ramdisk] Error code 2
1 error

nbmake: stopped in /usr/src/distrib/macppc/floppies
*** [all-floppies] Error code 2
1 error

nbmake: stopped in /usr/src/distrib/macppc
Net7300#

I get different errors just by using -j, which specifies the number of
processors to use. I get the same errors with make instead of nbmake.
Surely it's not supposed to be this difficult to build the stock MD with
file system, and I'm missing something.

tim