Re: Debian backend fixes and other issues

2006-02-13 Thread giskard
Il giorno gio, 09/02/2006 alle 17.37 +, Antony J Mee ha scritto:
 Hi Tom,
 
 I'm not running Debian (rather Gentoo, it's illegitimate child) but I 
 have the same issue and
 adding #define HEADERS_KERNEL seems to fix this.

or you can use the patches that the `pkg-utopia debian guys` provide :)

http://svn.debian.org/wsvn/pkg-utopia

for the svn version
http://svn.debian.org/wsvn/pkg-utopia/packages/experimental/networkmanager/debian/patches

for 0.5.1
http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/networkmanager/debian/patches

-- 
ciao, giskard

D: marty! non stai pensando quadrimensionalmente!
M: lo so.. e' che mi rimane difficile..





signature.asc
Description: Questa parte del messaggio รจ firmata
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Debian backend fixes and other issues

2006-02-13 Thread Antony J Mee

giskard wrote:


Il giorno gio, 09/02/2006 alle 17.37 +, Antony J Mee ha scritto:
 


Hi Tom,

I'm not running Debian (rather Gentoo, it's illegitimate child) but I 
have the same issue and

adding #define HEADERS_KERNEL seems to fix this.
   



or you can use the patches that the `pkg-utopia debian guys` provide :)
 


Except that they also include (admittedly consistently across packages) some
strange patches to 'rebrand' dchdbd in a strange manner (the dbus stuff
I mean) - naff if you're trying to develop/debug on such a system with
a CVS version of NM.

Otherwise, yes, very cool overlay. I use most of the other packages.

tONY
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Debian backend fixes and other issues

2006-02-13 Thread Antony J Mee

Antony J Mee wrote:


giskard wrote:


or you can use the patches that the `pkg-utopia debian guys` provide :)


Except that they also include (admittedly consistently across 
packages) some

strange patches to 'rebrand' dchdbd in a strange manner (the dbus stuff
I mean) - naff if you're trying to develop/debug on such a system with
a CVS version of NM.

Otherwise, yes, very cool overlay. I use most of the other packages.


Apologies. I misread. I thought you meant the Gentopia overlay Gentoo stuff.
The `pkg-utopia debian guys` have a neat minimal patch set :-)

tOnY

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Debian backend fixes and other issues

2006-02-12 Thread Dan Williams
On Thu, 2006-02-09 at 11:59 +0100, Tom Parker wrote:
 After a long time of not having any time to look at NetworkManager, I decided 
 to 
 have another look. Tried compiling from the current CVS HEAD, and noted that 
 the 
 debian backend required a number of alterations (mainly because of unused 
 variables, and also to remove the nm_system_device_setup_static_ip4_config 
 item 
 from src/NetworkManagerSystem.h as it isn't used anywhere anymore). Patch to 
 fix 
 those is attached.

Committed, thanks.

 However, later on while trying to compile src/nm-device-802-3-ethernet.c I 
 got 
 the following. Any ideas anyone?

Yeah, Robert has the details.  Something about /usr/include/wireless.h
including the userspace version of those files, and mii.h including the
other?  Something like that I think.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Debian backend fixes and other issues

2006-02-09 Thread Tom Parker
After a long time of not having any time to look at NetworkManager, I decided to 
have another look. Tried compiling from the current CVS HEAD, and noted that the 
debian backend required a number of alterations (mainly because of unused 
variables, and also to remove the nm_system_device_setup_static_ip4_config item 
from src/NetworkManagerSystem.h as it isn't used anywhere anymore). Patch to fix 
those is attached.


However, later on while trying to compile src/nm-device-802-3-ethernet.c I got 
the following. Any ideas anyone?


if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../src/named-manager 
-I../src/vpn-manager -I../src/dhcp-manager -I../utils -I../libnm-util 
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DDBUS_VERSION_MAJOR=0 -DDBUS_VERSION_MINOR=60 
-DDBUS_VERSION_MICRO=0 -pthread -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal 
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include 
-DWPA_SUPPLICANT_BIN=\/usr/sbin/wpa_supplicant\ -DDBUS_API_SUBJECT_TO_CHANGE 
-DG_DISABLE_DEPRECATED -DBINDIR=\/usr/local/bin\ 
-DDATADIR=\/usr/local/share\ -DSYSCONFDIR=\/usr/local/etc\ 
-DLOCALSTATEDIR=\/usr/local/var\ 
-DNM_RUN_DIR=\/usr/local/var/run/NetworkManager\ -DARP_DEBUG   -Wall -Werror 
-std=gnu89 -g -O2 -Wshadow -Wmissing-declarations -Wmissing-prototypes 
-Wdeclaration-after-statement -Wfloat-equal -Wno-unused-parameter 
-Wno-sign-compare -MT NetworkManager-nm-device-802-3-ethernet.o -MD -MP -MF 
.deps/NetworkManager-nm-device-802-3-ethernet.Tpo -c -o 
NetworkManager-nm-device-802-3-ethernet.o `test -f 'nm-device-802-3-ethernet.c' 
|| echo './'`nm-device-802-3-ethernet.c; \
then mv -f .deps/NetworkManager-nm-device-802-3-ethernet.Tpo 
.deps/NetworkManager-nm-device-802-3-ethernet.Po; else rm -f 
.deps/NetworkManager-nm-device-802-3-ethernet.Tpo; exit 1; fi

In file included from /usr/include/linux/mii.h:12,
 from nm-device-802-3-ethernet.c:364:
/usr/include/linux/if.h:95: error: redefinition of 'struct ifmap'
/usr/include/linux/if.h:131: error: redefinition of 'struct ifreq'
/usr/include/linux/if.h:181: error: redefinition of 'struct ifconf'

The /usr/include/linux/* files on my system are provided by the 
linux-kernel-headers package, and I've currently got the 2.6.13+0rc3-2 version 
of that installed.


Tom Parker
--
[EMAIL PROTECTED] - http://tevp.net
Illegitimus non carborundum
Index: src/NetworkManagerSystem.h
===
RCS file: /cvs/gnome/NetworkManager/src/NetworkManagerSystem.h,v
retrieving revision 1.15
diff -u -r1.15 NetworkManagerSystem.h
--- src/NetworkManagerSystem.h  23 Jan 2006 21:02:37 -  1.15
+++ src/NetworkManagerSystem.h  9 Feb 2006 10:48:43 -
@@ -46,7 +46,6 @@
 void   nm_system_device_flush_addresses
(NMDevice *dev);
 void   nm_system_device_flush_addresses_with_iface (const 
char *iface);
 
-gboolean   nm_system_device_setup_static_ip4_config
(NMDevice *dev);
 void   nm_system_enable_loopback   
(void);
 void   nm_system_flush_loopback_routes (void);
 void   nm_system_delete_default_route  (void);
Index: src/backends/NetworkManagerDebian.c
===
RCS file: /cvs/gnome/NetworkManager/src/backends/NetworkManagerDebian.c,v
retrieving revision 1.38
diff -u -r1.38 NetworkManagerDebian.c
--- src/backends/NetworkManagerDebian.c 23 Jan 2006 21:02:38 -  1.38
+++ src/backends/NetworkManagerDebian.c 9 Feb 2006 10:48:43 -
@@ -111,8 +111,6 @@
  */
 void nm_system_device_flush_routes (NMDevice *dev)
 {
-   char*buf;
-
g_return_if_fail (dev != NULL);
 
/* Not really applicable for test devices */
@@ -177,117 +175,6 @@
 }
 
 /*
- * nm_system_device_setup_static_ip4_config
- *
- * Set up the device with a particular IPv4 address/netmask/gateway.
- *
- * Returns:TRUEon success
- * FALSE on error
- *
- */
-#if 0
-gboolean nm_system_device_setup_static_ip4_config (NMDevice *dev)
-{
-#define IPBITS (sizeof (guint32) * 8)
-struct in_addr  temp_addr;
-struct in_addr  temp_addr2;
-char*s_tmp;
-char*s_tmp2;
-int i;
-guint32 addr;
-guint32 netmask;
-guint32 prefix = IPBITS;/* initialize with # bits in ipv4 
address */
-guint32 broadcast;
-char*buf;
-int err;
-const char*iface;
-
-g_return_val_if_fail (dev != NULL, FALSE);
-g_return_val_if_fail (!nm_device_config_get_use_dhcp (dev), FALSE);
-
-addr = nm_device_config_get_ip4_address (dev);
-netmask = 

Re: Debian backend fixes and other issues

2006-02-09 Thread Antony J Mee

Hi Tom,

I'm not running Debian (rather Gentoo, it's illegitimate child) but I 
have the same issue and

adding #define HEADERS_KERNEL seems to fix this.

I'd love to say I understand why this works, or tell you where I got 
this information but
sadly I know neither! :-)  Perhaps it was that Gentopia guys that found 
this.


More specifically:

Index: nm-device-802-3-ethernet.c
===
RCS file: /cvs/gnome/NetworkManager/src/nm-device-802-3-ethernet.c,v
retrieving revision 1.12
diff -u -r1.12 nm-device-802-3-ethernet.c
--- nm-device-802-3-ethernet.c  26 Jan 2006 21:55:11 -  1.12
+++ nm-device-802-3-ethernet.c  9 Feb 2006 17:33:26 -
@@ -18,6 +18,7 @@
 *
 * (C) Copyright 2005 Red Hat, Inc.
 */
+#define HEADERS_KERNEL

#include glib.h
#include glib/gi18n.h


Regards,

tOnY

Tom Parker wrote:

After a long time of not having any time to look at NetworkManager, I 
decided to have another look. Tried compiling from the current CVS 
HEAD, and noted that the debian backend required a number of 
alterations (mainly because of unused variables, and also to remove 
the nm_system_device_setup_static_ip4_config item from 
src/NetworkManagerSystem.h as it isn't used anywhere anymore). Patch 
to fix those is attached.


However, later on while trying to compile 
src/nm-device-802-3-ethernet.c I got the following. Any ideas anyone?



~snip~
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list