From owner-freebsd-ports Wed Sep 18 0:30:16 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5914237B401 for ; Wed, 18 Sep 2002 00:30:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6776C43E72 for ; Wed, 18 Sep 2002 00:30:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8I7U9Co059507 for ; Wed, 18 Sep 2002 00:30:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8I7U9Tq059506; Wed, 18 Sep 2002 00:30:09 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2454137B401 for ; Wed, 18 Sep 2002 00:27:16 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC07F43E88 for ; Wed, 18 Sep 2002 00:27:14 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 8BDB081461; Wed, 18 Sep 2002 16:57:12 +0930 (CST) Message-Id: <20020918072712.8BDB081461@wantadilla.lemis.com> Date: Wed, 18 Sep 2002 16:57:12 +0930 (CST) From: "Greg 'groggy' Lehey" Reply-To: "Greg 'groggy' Lehey" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/42921: Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 42921 >Category: ports >Synopsis: >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 18 00:30:08 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Greg 'groggy' Lehey >Release: FreeBSD 5.0-CURRENT i386 >Organization: LEMIS (SA) Pty Ltd >Environment: System: FreeBSD nameless 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Sep 17 01:28:02 GMT 2002 root@:/src/FreeBSD/5-CURRENT-WANTADILLA/src/sys/i386/compile/GENERIC i386 Probably any -CURRENT machine. >Description: archivers/rpm/work/rpm-3.0.6/lib/rpmlead.c and rpmio.c fail to compile: cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../build -I../misc -I/usr/local/include -I/usr/local/include -O -pipe -mcpu=pentiumpro -D_GNU_SOURCE -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -c rpmio.c -fPIC -DPIC -o .libs/rpmio.lo In file included from rpmio.c:17: /usr/include/machine/types.h:50: redefinition of `vm_offset_t' /usr/include/sys/types.h:163: `vm_offset_t' previously declared here /usr/include/machine/types.h:51: redefinition of `vm_ooffset_t' /usr/include/sys/types.h:164: `vm_ooffset_t' previously declared here /usr/include/machine/types.h:52: conflicting types for `vm_pindex_t' /usr/include/sys/types.h:165: previous declaration of `vm_pindex_t' /usr/include/machine/types.h:53: redefinition of `vm_size_t' /usr/include/sys/types.h:166: `vm_size_t' previously declared here /usr/include/machine/types.h:55: redefinition of `register_t' /usr/include/sys/types.h:152: `register_t' previously declared here /usr/include/machine/types.h:56: redefinition of `u_register_t' /usr/include/sys/types.h:156: `u_register_t' previously declared here The errors with rpmio.c are the same. >How-To-Repeat: Attempt to build the port >Fix: --- rpmio.c~ Thu Jul 20 13:40:14 2000 +++ rpmio.c Wed Sep 18 16:50:11 2002 @@ -14,7 +14,9 @@ #else /* __LCLINT__ */ #if HAVE_MACHINE_TYPES_H +#ifndef __FreeBSD__ # include +#endif #endif #include --- rpmlead.c~ Wed Jun 14 22:04:31 2000 +++ rpmlead.c Wed Sep 18 16:50:52 2002 @@ -1,7 +1,9 @@ #include "system.h" #if HAVE_MACHINE_TYPES_H +#ifndef __FreeBSD__ # include +#endif #endif #ifdef __LCLINT__ Note: it would appear possible to solve this problem by not defining HAVE_MACHINE_TYPES_H in ../config.h. This appears to be the incorrect way to do things, though: the system *does* have machine/types.h. The error is not in the definition, but in the treatment of this definition. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message