Date: Wed, 18 Sep 2002 16:57:12 +0930 (CST) From: "Greg 'groggy' Lehey" <grog@lemis.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/42921: Message-ID: <20020918072712.8BDB081461@wantadilla.lemis.com>
next in thread | raw e-mail | index | archive | help
>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 <machine/types.h> +#endif #endif #include <netinet/in.h> --- 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 <machine/types.h> +#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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020918072712.8BDB081461>