From owner-freebsd-ports Fri Mar 30 6:50: 9 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A5A1B37B720 for ; Fri, 30 Mar 2001 06:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2UEo1X19100; Fri, 30 Mar 2001 06:50:01 -0800 (PST) (envelope-from gnats) Received: from romy.carbonide.com (romy.carbonide.com [212.105.74.73]) by hub.freebsd.org (Postfix) with ESMTP id 20DD237B71E for ; Fri, 30 Mar 2001 06:45:38 -0800 (PST) (envelope-from mac@romy.carbonide.com) Received: by romy.carbonide.com (Postfix, from userid 1000) id 738BF3834; Fri, 30 Mar 2001 16:45:22 +0200 (CEST) Message-Id: <20010330144522.738BF3834@romy.carbonide.com> Date: Fri, 30 Mar 2001 16:45:22 +0200 (CEST) From: markush@acc.umu.se To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/26218: security/skip fix Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26218 >Category: ports >Synopsis: port build breaks due to include of osreldate.h in kld >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 30 06:50:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Markus Holmberg >Release: FreeBSD 4.3-BETA i386 >Organization: n/a >Environment: System: FreeBSD romy.carbonide.com 4.3-BETA FreeBSD 4.3-BETA #3: Wed Mar 21 08:30:21 CET 2001 mac@romy.carbonide.com:/usr/obj/usr/src/sys/ROMY i386 >Description: Port build of security/skip breaks due to include of osreldate.h in kld (it looks like). >How-To-Repeat: cd /usr/ports/security/skip && make [output removed] /usr/include/osreldate.h:29: #error "osreldate.h must not be used in the kernel, use sys/param.h" gmake[2]: *** [bin.x86/md5.o] Error 1 [more output removed] >Fix: Since sys/param.h is included unconditionally (and __FreeBSD_version is defined there, and __FreeBSD_version is the only thing osreldate.h defines), the following patch which removes #include should be sufficient, as far as I can tell. (I hope it isn't a problem to move up the include of sys/param.h..?) --- files/patch-bu.orig Wed Aug 9 00:19:19 2000 +++ files/patch-bu Fri Mar 30 16:37:56 2001 @@ -13,27 +12,26 @@ #include #include #include -@@ -69,6 +68,12 @@ +@@ -69,6 +68,11 @@ #include #endif -+#include -+ +#if defined(KERNEL) || defined(_KERNEL) +#include +#endif + ++#include #include #include #include -@@ -78,15 +82,20 @@ +@@ -78,15 +82,19 @@ #include #include #include +-#include +#if defined(KERNEL) || defined(_KERNEL) || __FreeBSD_version < 410000 +#include +#endif - #include #include #include #include >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message