Re: Gentoo ebuild compile problems...

Colin Walters wrote:
Try "--enable-more-warnings=no".  BTW, those warnings are all bugs in
the Gentoo backend; someone should fix them.

Attached gentoo.diff should do the trick. Not using Gentoo, so can't be totally sure, but I was getting the same errors on my Debian box when I told it to compile for Gentoo, and after this patch I'm not.

Tom Parker
Index: src/backends/NetworkManagerGentoo.c
RCS file: /cvs/gnome/NetworkManager/src/backends/NetworkManagerGentoo.c,v
retrieving revision 1.9
diff -u -r1.9 NetworkManagerGentoo.c
--- src/backends/NetworkManagerGentoo.c	5 Dec 2004 21:28:42 -0000	1.9
+++ src/backends/NetworkManagerGentoo.c	15 Dec 2004 22:19:20 -0000
@@ -25,8 +25,13 @@
 #include <stdio.h>
 #include <sys/types.h>
+#include <arpa/inet.h>
 #include <signal.h>
+/* get strnlen */
+#define __USE_GNU 
 #include <string.h>
 #include "NetworkManagerSystem.h"
 #include "NetworkManagerUtils.h"
@@ -56,7 +61,7 @@
 gboolean nm_system_device_run_dhcp (NMDevice *dev)
 	char		 buf [500];
-	char 		*iface;
+	const char 		*iface;
 	int		 err;
 	g_return_val_if_fail (dev != NULL, FALSE);
@@ -168,7 +173,7 @@
 	struct in_addr	ip_addr, net_addr, broad_addr, gate_addr;
 	int			i, err;
 	guint32		prefix = IPBITS;
-	char		*iface;
+	const char		*iface;
 	char		*buf;
 	char		*addr, *netmask, *broadcast, *gateway;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]