From owner-freebsd-ports Wed Sep 18 0:20: 4 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 B4DE837B401 for ; Wed, 18 Sep 2002 00:20:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E40C43E75 for ; Wed, 18 Sep 2002 00:20:02 -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 g8I7K1Co057409 for ; Wed, 18 Sep 2002 00:20:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8I7K12K057408; Wed, 18 Sep 2002 00:20:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3366237B401 for ; Wed, 18 Sep 2002 00:14:26 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id EECF643E75 for ; Wed, 18 Sep 2002 00:14:24 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 95E6D8146D; Wed, 18 Sep 2002 16:44:22 +0930 (CST) Message-Id: <20020918071422.95E6D8146D@wantadilla.lemis.com> Date: Wed, 18 Sep 2002 16:44:22 +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/42919: archivers/rpm fails to build with redefined __size_t 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: 42919 >Category: ports >Synopsis: archivers/rpm fails to build with redefined __size_t >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:20:01 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/cpio.c fails 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 cpio.c -fPIC -DPIC -o .libs/cpio.lo In file included from ../system.h:279, from cpio.c:1: ../misc/glob.h:51: redefinition of `__size_t' /usr/include/machine/_types.h:81: `__size_t' previously declared here gmake[2]: *** [cpio.lo] Error 1 >How-To-Repeat: Attempt to build the port >Fix: --- misc/glob.h~ Wed Jun 14 22:04:31 2000 +++ misc/glob.h Wed Sep 18 16:38:18 2002 @@ -48,7 +48,9 @@ /* We need `size_t' for the following definitions. */ #ifndef __size_t # if defined __GNUC__ && __GNUC__ >= 2 +#ifndef __FreeBSD__ typedef __SIZE_TYPE__ __size_t; +#endif # ifdef _XOPEN_SOURCE typedef __SIZE_TYPE__ size_t; # endif >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message