NetBSD Problem Report #35930
From www@NetBSD.org Mon Mar 5 21:35:58 2007
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
id 65C6063B8D4; Mon, 5 Mar 2007 21:35:58 +0000 (UTC)
Message-Id: <20070305213558.65C6063B8D4@narn.NetBSD.org>
Date: Mon, 5 Mar 2007 21:35:58 +0000 (UTC)
From: uli@habel.name
Reply-To: uli@habel.name
To: gnats-bugs@NetBSD.org
Subject: checkperms fails on Linux 2.4
X-Send-Pr-Version: www-1.0
>Number: 35930
>Category: pkg
>Synopsis: checkperms fails on Linux 2.4
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: rillig
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 05 21:40:00 +0000 2007
>Closed-Date: Mon Mar 05 23:13:10 +0000 2007
>Last-Modified: Mon Mar 05 23:15:01 +0000 2007
>Originator: Ulrich Habel
>Release: Linux 2.4 (Debian Sarge)
>Organization:
-
>Environment:
Linux newton 2.4.27-3-686 #1 Tue Dec 5 21:03:54 UTC 2006 i686 GNU/Linux
>Description:
sysutils/checkperms fails on Linux (Debian Sarge 2.4) with the following build error:
=> Required installed package digest>=20010302: digest-20060826 found
===> Skipping vulnerability checks.
WARNING: No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
=> Checksum SHA1 OK for checkperms-1.4.tar.gz
=> Checksum RMD160 OK for checkperms-1.4.tar.gz
===> Installing dependencies for checkperms-1.4nb1
=> Required installed package gcc>=2.95.3nb7: gcc-2.95.3nb7 found
===> Overriding tools for checkperms-1.4nb1
===> Extracting for checkperms-1.4nb1
===> Patching for checkperms-1.4nb1
===> Creating toolchain wrappers for checkperms-1.4nb1
===> Configuring for checkperms-1.4nb1
===> Building for checkperms-1.4nb1
gcc -O2 -I/usr/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror -I/usr/pkg/include -c checkperms.c
cc1: warnings being treated as errors
In file included from /usr/include/string.h:375,
from checkperms.c:32:
/usr/include/bits/string2.h: In function `__strcpy_small':
/usr/include/bits/string2.h:441: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:449: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:454: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:459: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:461: warning: pointer of type `void *' used in arithmetic
/usr/include/bits/string2.h:466: warning: pointer of type `void *' used in arithmetic
[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkgsrc/sysutils/checkperms/work/.gcc/bin/gcc -O2 -I/usr/pkgsrc/sysutils/checkperms/work/.buildlink/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror -c checkperms.c -L/usr/pkgsrc/sysutils/checkperms/work/.buildlink/lib
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/sysutils/checkperms/work/checkperms-1.4
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/sysutils/checkperms
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/sysutils/checkperms
>How-To-Repeat:
Try to build sysutils/checkperms on Debian Linux Sarge
>Fix:
I think this is more a Linux issue than a problem with pkgsrc. The problem seems to be located in /usr/include/bits/string2.h of the Linux Debian distribution. The following patch in unified diff format to the Makefile of sysutils/checkperms set gcc to treat warnings not as errors and the package can be build.
--- Makefile.orig 2006-10-07 00:55:10.000000000 +0200
+++ Makefile 2007-03-05 21:12:50.000000000 +0100
@@ -4,4 +4,13 @@
PROG= checkperms
WARNS= 4
+# Linux breaks this build due to a
+# buggy string2.h - so we need to
+# set NOGCCERROR to treat warnings
+# not as errors
+#
+#ifdef __linux__
+NOGCCERROR= 1
+#endif
+
.include <bsd.prog.mk>
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: rillig@netbsd.org
Responsible-Changed-When: Mon, 05 Mar 2007 23:13:10 +0000
Responsible-Changed-Why:
It's my package.
State-Changed-From-To: open->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Mon, 05 Mar 2007 23:13:10 +0000
State-Changed-Why:
It's fixed. Thanks for the PR.
From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35930 CVS commit: pkgsrc/sysutils/checkperms
Date: Mon, 5 Mar 2007 23:12:40 +0000 (UTC)
Module Name: pkgsrc
Committed By: rillig
Date: Mon Mar 5 23:12:40 UTC 2007
Modified Files:
pkgsrc/sysutils/checkperms: Makefile
Log Message:
Fixed PR 35930.
To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 pkgsrc/sysutils/checkperms/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.