help-cfengine
[Top][All Lists]
Advanced

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

Re: device not configured


From: Rajeev Agrawala
Subject: Re: device not configured
Date: Mon, 03 Jun 2002 12:08:16 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020513 Netscape/7.0b1


Mark.Burgess@iu.hio.no wrote:
I would recommend trying out cfengine version 2.0.2 and see if the
problem is fixed there, before doing anything else. You should be
able to just compile it an run it without necessarily installing
it at this time.

Mark

Yes the problem is fixed in version 2.0.2. I think the problem was in calculating size of struct ifreq in freebsd which got fixed by following piece of code in nameinfo.c


/* FreeBSD has size macro defined as ifreq is variable size */
#ifdef _SIZEOF_ADDR_IFREQ
#define SIZEOF_IFREQ(x) _SIZEOF_ADDR_IFREQ(x)
#else
#define SIZEOF_IFREQ(x) sizeof(struct ifreq)
#endif


Should I apply a suitable patch to cfengine-1.6.3, as I am not ready to go to version 2.0.2 yet as it seems a lot has changed between 1.6.3 and version 2.

Thanks,

rajeev




On 31 May, Rajeev Agrawala wrote:

I did some further troubleshooting for this and running in debug mode gets following suspicious output:

Found: 28 interfaces
Interface 1: fxp0
Host information for 6.4.6.0 not found
Interface 2: gø
myhost: No such network device
myhost: ioctl: Device not configured


The machine has only 2 interfaces. so I don't know where is it getting 28 interfaces also I don't know where is the 6.4.6.0 IP address coming from. INterface 2 is wrong. It looks like there is some structure mismatch in freebsd and vfengine code.

Has anyone else seen this. Is there a patch to fix this.

Thanks,

rajeev



Rajeev Agrawala wrote:

Hi,

I am using cfengine 1.6.3. on freebsd 4.2. WHen I run cfengine --parse, I get

% /opt/cfengine/sbin/cfengine --parse
myhost: No such network device
myhost: ioctl: Device not configured
myhost: (CFINPUTS is set to <nothing>)
myhost: Can't open file cfengine.conf


I get the error message about 'no such network device', whether or not I provide a cfengine.conf file. I was earlier using cfengine-1.4.15 without any problem

WHat could be causing this error.

Thanks,

rajeev



_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://mail.gnu.org/mailman/listinfo/help-cfengine




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://mail.gnu.org/mailman/listinfo/help-cfengine





reply via email to

[Prev in Thread] Current Thread [Next in Thread]