From owner-freebsd-current Mon Sep 2 20:30:10 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 486AB37B400 for ; Mon, 2 Sep 2002 20:29:57 -0700 (PDT) Received: from mx2.mail.ru (mx2.mail.ru [194.67.57.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B08C43E4A for ; Mon, 2 Sep 2002 20:29:56 -0700 (PDT) (envelope-from kan@mail.ru) Received: from drweb by mx2.mail.ru with drweb-scanned (Exim MX.2) id 17m4O2-00043B-00; Tue, 03 Sep 2002 07:29:54 +0400 Received: from [141.154.54.235] (helo=kan.dnsalias.net) by mx2.mail.ru with esmtp (Exim SMTP.2) id 17m4O2-00042G-00; Tue, 03 Sep 2002 07:29:54 +0400 Received: from kan.dnsalias.net (localhost [IPv6:::1]) by kan.dnsalias.net (8.12.5/8.12.5) with ESMTP id g833TpFd043975; Mon, 2 Sep 2002 23:29:52 -0400 (EDT) (envelope-from kan@kan.dnsalias.net) Received: (from kan@localhost) by kan.dnsalias.net (8.12.6/8.12.6/Submit) id g833TkhP043974; Mon, 2 Sep 2002 23:29:46 -0400 (EDT) Date: Mon, 2 Sep 2002 23:29:45 -0400 From: "Alexander N. Kabaev" To: Alex Zepeda Cc: current@freebsd.org Subject: Re: compiling kdelibs3 fails with -current's gcc 3.2 Message-ID: <20020903032945.GA43966@kan.dnsalias.net> References: <20020903002426.B1166-100000@nihil> <20020902232745.GA6352@blarf.homeip.net> <20020902201042.76ed5a66.kabaev@bellatlantic.net> <20020903030547.GA862@blarf.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020903030547.GA862@blarf.homeip.net> User-Agent: Mutt/1.5.1i X-Envelope-To: zipzippy@sonic.net, current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Sep 02, 2002 at 08:05:48PM -0700, Alex Zepeda wrote: > > And how does one do that? > You never posted any error messages you were getting, so I can only guess what is going on. The patch below gets rpm to compile on my -current. Never tested it on -stable though, it might break compiles there. -- Alexander Kabaev Index: files/patch-glob.h =================================================================== RCS file: files/patch-glob.h diff -N files/patch-glob.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-glob.h 3 Sep 2002 03:20:18 -0000 @@ -0,0 +1,18 @@ +--- misc/glob.h.orig Mon Sep 2 23:13:17 2002 ++++ misc/glob.h Mon Sep 2 23:14:04 2002 +@@ -46,6 +46,7 @@ + #endif /* C++ or ANSI C. */ + + /* We need `size_t' for the following definitions. */ ++#ifndef __FreeBSD__ + #ifndef __size_t + # if defined __GNUC__ && __GNUC__ >= 2 + typedef __SIZE_TYPE__ __size_t; +@@ -61,6 +62,7 @@ + definition. */ + # undef __size_t + # define __size_t size_t ++#endif + #endif + + /* Bits set in the FLAGS argument to `glob'. */ Index: files/patch-rpmio.c =================================================================== RCS file: files/patch-rpmio.c diff -N files/patch-rpmio.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-rpmio.c 3 Sep 2002 03:20:29 -0000 @@ -0,0 +1,13 @@ +--- lib/rpmio.c.orig Mon Sep 2 23:17:40 2002 ++++ lib/rpmio.c Mon Sep 2 23:17:55 2002 +@@ -13,10 +13,6 @@ + + #else /* __LCLINT__ */ + +-#if HAVE_MACHINE_TYPES_H +-# include +-#endif +- + #include + #include /* XXX for inet_aton and HP-UX */ + Index: files/patch-rpmlead.c =================================================================== RCS file: files/patch-rpmlead.c diff -N files/patch-rpmlead.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-rpmlead.c 3 Sep 2002 03:20:51 -0000 @@ -0,0 +1,12 @@ +--- lib/rpmlead.c.orig Mon Sep 2 23:15:35 2002 ++++ lib/rpmlead.c Mon Sep 2 23:15:58 2002 +@@ -1,9 +1,5 @@ + #include "system.h" + +-#if HAVE_MACHINE_TYPES_H +-# include +-#endif +- + #ifdef __LCLINT__ + #define ntohl(_x) (_x) + #define ntohs(_x) (_x) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message