Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2002 23:29:45 -0400
From:      "Alexander N. Kabaev" <ak03@gte.com>
To:        Alex Zepeda <zipzippy@sonic.net>
Cc:        current@freebsd.org
Subject:   Re: compiling kdelibs3 fails with -current's gcc 3.2
Message-ID:  <20020903032945.GA43966@kan.dnsalias.net>
In-Reply-To: <20020903030547.GA862@blarf.homeip.net>
References:  <20020903002426.B1166-100000@nihil> <20020902232745.GA6352@blarf.homeip.net> <20020902201042.76ed5a66.kabaev@bellatlantic.net> <20020903030547.GA862@blarf.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <machine/types.h>
+-#endif
+-
+ #include <netinet/in.h>
+ #include <arpa/inet.h>		/* 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 <machine/types.h>
+-#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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020903032945.GA43966>