Date: Wed, 18 Sep 2002 16:44:22 +0930 (CST) From: "Greg 'groggy' Lehey" <grog@lemis.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/42919: archivers/rpm fails to build with redefined __size_t Message-ID: <20020918071422.95E6D8146D@wantadilla.lemis.com>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020918071422.95E6D8146D>