Subject: SS-10 upgrade to 1.5 - what did I do wrong?
To: None <port-sparc@netbsd.org>
From: Bruce Ediger <eballen1@qwest.net>
List: port-sparc
Date: 01/11/2001 14:45:46
Hi.  I've been running NetBSD 1.4.1 on a SPARCStation 10 for a while.  I
decided to go to NetBSD 1.5 last weekend.  I followed the "[U]pgrade" option
from the miniroot.fs boot.  I installed the whole furshlugginer NetBSD 1.5,
with the exception of the "etc" business, which I later did by hand.

Everything seems to work, networking, DHCP, my files are still around, etc.

But, every time I try to compile even the simplest of C programs, I get
a lot of weird problems.  I think I may have installed wrong, or missed
a piece.  Can anybody give me a hint?

Problem #1: The use of "#include <unistd.h>" causes a problem that I can
only solve by putting '-D_BSD_USECONDS_T_="unsigned long"' on the compile
line.  I get weird warning error messages like this:
/usr/include/unistd.h:248: warning: parameter names (without types) in function declaration
/usr/include/unistd.h:257: syntax error before `ualarm'
/usr/include/unistd.h:257: warning: parameter names (without types) in function declaration
/usr/include/unistd.h:257: warning: data definition has no type or storage class
/usr/include/unistd.h:258: warning: parameter names (without types) in function declaration

Problem #2: The use of "#include <string.h>" causes several warnings from
gcc:
/usr/include/string.h:54: warning: conflicting types for built-in function `memcmp'
/usr/include/string.h:55: warning: conflicting types for built-in function `memcpy'
/usr/include/string.h:57: warning: conflicting types for built-in function `memset'

Problem #3: The ELF stuff causes warning messages.  These come up in what
seem to me like odd places.

/usr/include/sys/cdefs_elf.h:36: warning: `_C_LABEL' redefined
/usr/include/machine/cdefs.h:11: warning: this is the location of the previous definition
/usr/include/sys/cdefs_elf.h:53: warning: `__indr_reference' redefined
/usr/include/machine/cdefs.h:21: warning: this is the location of the previous definition
/usr/include/sys/cdefs_elf.h:65: warning: `__warn_references' redefined
/usr/include/machine/cdefs.h:24: warning: this is the location of the previous definition

How do I fix what I did wrong during the upgrade?