Subject: osrelease.sh / param.h
To: bsd-help \(E-mail\) \(E-mail\) <netbsd-help@netbsd.org>
From: Nicolas Saurbier <Nicolas.Saurbier@biodata.de>
List: netbsd-help
Date: 08/06/2002 12:16:26
Hi all,

has  any1 ever tried to change the osrelease??? Changing the ostype was =
easy, but the osrelease...
I found the files /sys/conf/osrelease.sh and /sys/sys/param.h and did =
the following changes:

osrelease.sh:

# Release number to use
# Also check __NetBSD_Version__ in sys/sys/param.h if you change this!
release=3D1.0.1

/sys/sys/param.h:

/*
 *      #define __NetBSD_Version__ MMmmrrpp00
 *
 *      M =3D major version
 *      m =3D minor version
 *      r =3D release ["",A-Z,Z[A-Z] but numeric]
 *      p =3D patchlevel
 *
 *      So:
 *           NetBSD-1.2D  =3D 102040000
 *      And:
 *           NetBSD-1.2.1 =3D 102000100
 *
 */

#define __NetBSD_Version__  100000100   /* Gateway 1.0.1 */

But building a new Kernel fails with the following error:

cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes  =
-Wpointer-arith
-Wno-uninitialized -Wno-main -I. -I../../../../arch -I../../../.. =
-nostdinc -DLK
M -DIPSEC_DEBUG -DMAXUSERS=3D32 -D_KERNEL -Di386  -c =
../../../../netinet/ip_fil.c
../../../../netinet/ip_fil.c: In function `ipl_enable':
../../../../netinet/ip_fil.c:281: too few arguments to function =
`pfil_add_hook'
cc1: warnings being treated as errors
../../../../netinet/ip_fil.c:337: warning: implicit declaration of =
function `tim
eout'
../../../../netinet/ip_fil.c: In function `ipl_disable':
../../../../netinet/ip_fil.c:370: warning: implicit declaration of =
function `unt
imeout'
../../../../netinet/ip_fil.c:396: too few arguments to function =
`pfil_remove_hoo
k'
*** Error code 1

Stop.


Any idea on that????