Subject: pkg/33226: compiling libkver in current
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Cesar Catrian Carreño <ccatrian@eml.cc>
List: pkgsrc-bugs
Date: 04/09/2006 11:20:00
>Number:         33226
>Category:       pkg
>Synopsis:       compiling libkver in current
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 09 11:20:00 +0000 2006
>Originator:     Cesar Catrian Carreño
>Release:        NetBSD 3.99.17 i386
>Organization:
>Environment:


System: NetBSD 3.99.17 (SAT) #0: Sat Mar 18 17:44:01 CLT 2006
	cetrox@core.cjc.cl:/home/cetrox/src/netbsd-current/src/sys/arch/i386/compile/SAT



>Description:


pkgtools/libkver is not compiling in current.


>How-To-Repeat:





>Fix:


Workarounds:
· Setting PKG_INSTALLATION_TYPE
===> PKG_INSTALLATION_TYPE must be ``pkgviews'' or ``overwrite''.
===> This package doesn't support PKG_INSTALLATION_TYPE=none.
Otherwise pkg_comp enters into a loop looking for gcc3-c .

· The following patch, according to the latest sysctl.h:
--- lib/kver.c.orig     2006-04-08 22:57:36.000000000 -0400
+++ lib/kver.c  2006-04-08 22:58:03.000000000 -0400
@@ -153,7 +153,7 @@
 }
 
 int
-sysctl(int *name, u_int namelen, void *oldp, size_t * oldlenp, const void *newp,
+sysctl(const int *name, u_int namelen, void *oldp, size_t * oldlenp, const void *newp,
     size_t newlen)
 {
        _DIAGASSERT(name != NULL)