I have two servers that are Sun Netra 1405's that run debian linux 3.1.
(I have tested and reproduced the same problems on a third). I've
compiled cfengine on the hosts themselves, and they have a valid build
environment. I have successfully built other binaries, including the
cfengine-2.1.13 binaries that I'm currently running.
After building 2.1.19p1 I get the following
Address given by nameserver: 192.168.1.1
: Couldn't get interfaces
: ioctl: Cannot allocate memory
gcc version 3.3.5 (Debian 1:3.3.5-13)
GNU Make 3.80
Autoconf version 2.13
ltmain.sh (GNU libtool) 1.5.6 (1.1220.2.95 2004/04/11 05:50:42) Debian:
224 $
flex 2.5.31
bison (GNU Bison) 1.875d
libc6 install
libc6-dev install
libc6-dev-sparc64 install
libc6-sparc64 install
libdb3 install
libdb3-dev install
libdb3-util install
libssl-dev install
libssl0.9.7 install
libstdc++2.10-glibc2.2 install
openssl install
The error "Couldn't get interfaces: comes from nameinfo.c so I've tried
it by modifying the file and maybe this will provide a clue someone else
might understand ( I'll be frank and admit that I'm getting way in over my
head here).
#ifdef SIOCGIFCONF
if (ioctl(fd, SIOCGIFCONF, &list) == -1 || (list.ifc_len < (sizeof(struct
ifreq))))
#else
if (ioctl(fd, OSIOCGIFCONF, &list) == -1 || (list.ifc_len < (sizeof(struct
ifreq))))
#endif
{
CfLog(cferror,"Couldn't get interfaces","ioctl");
exit(1);
}
so that code gives
: Couldn't get interfaces
: ioctl: Cannot allocate memory
'
this code modfication gives
/* #ifdef SIOCGIFCONF
if (ioctl(fd, SIOCGIFCONF, &list) == -1 || (list.ifc_len < (sizeof(struct
ifreq))))
#else */
#ifdef OSIOCGIFCONF
if (ioctl(fd, OSIOCGIFCONF, &list) == -1 || (list.ifc_len < (sizeof(struct
ifreq))))
#endif
{
CfLog(cferror,"Couldn't get interfaces","ioctl");
exit(1);
}
gives the follwing errors
: Couldn't get interfaces
: ioctl: Success
The code modification that comments out that section leads to
GNU autoconf class from compile time: compiled_on_linux_gnu
Address given by nameserver:
Interface 7647: ~\~YX
Interface 7651:
Interface 7662:
Interface 7663: D
Interface 7734:
Interface 7737:
Interface 7744:
Interface 7745: ~C
Interface 7746:
Interface 7747: 96.48.40~Cp<v96.48.40~Cp;~F
Interface 7748:
Interface 7749:
Interface 7750:
Interface 7754:
Interface 7757: ~E(
Interface 7791:
Interface 7818:
Interface 7820: ~PI
Interface 7840:
Interface 7842:
Interface 7845: [EMAIL PROTECTED]
Interface 7846:
Interface 7850:
Interface 7853: ~U
Interface 7854:
Interface 7858: ~X
Interface 7859: pIh
Interface 7860:
Interface 7862:
Interface 7868:
Interface 7869: p^A~@
Interface 7871:
Interface 7872: [EMAIL PROTECTED]
Interface 7873: ~S`p<[EMAIL PROTECTED]@p^B~A~P~R
Interface 7879: ~Z
Interface 7880:
Interface 7881: p
Interface 7882:
Interface 7885:
Interface 7888:
Interface 7889:
Interface 7890:
Interface 7891:
Interface 7894:
Interface 7897:
Interface 7898:
Interface 7901: ~Vp<v
Interface 7903:
Interface 7907:
Interface 7908: ~W~@
Interface 7909:
Interface 7911:
Interface 7912:
Interface 7915: pH6
Interface 7918:
Interface 7919: pM
Interface 7920:
Interface 7924:
Interface 7926:
Interface 7928: 8
Interface 7929:
Interface 7967:
Interface 7969:
Interface 7977:
Interface 7979:
Interface 7980:
Interface 7982:
Interface 7983:
Interface 7984:
Interface 7986:
Interface 7989:
Interface 7993:
multi ohpM~Q!
^^pM~ITp;~F~B
Interface 7994: ~B
Interface 7996: ^A^A^A^A~B~B~B~B2.2
Interface 7999:
Interface 8000: [EMAIL PROTECTED]@pM~NT~P
Interface 8003: p<s~P
Interface 8004: ^X~D0*p^A
Interface 8005:
Interface 8006: ^PpM^HpM~F^PpM^A^A^A^A~B~B~B~Bp^A~L
Interface 8008: pOX8~H
Interface 8009:
Interface 8010:
Interface 8011: [EMAIL PROTECTED]@~X
Interface 8012:
Interface 8015: 4pI
Interface 8018: pI
Interface 8019: [EMAIL PROTECTED]
Interface 8022:
Interface 8023: @
Interface 8025: pI@
Interface 8026:
Interface 8027:
Interface 8028:
Interface 8040:
Interface 8042:
Interface 8044: ~P
Interface 8046:
Interface 8047: `p^A~X
Interface 8049: 0
Interface 8054: pIrL
Interface 8057:
Interface 8058:
Interface 8059: 00
Interface 8060: 21:00:14
Interface 8063:
Interface 8065: Tue Mar 21 21:00:14 2006
Interface 8085:
Interface 8086:
Interface 8087: `Xhp
Interface 8090:
Interface 8091:
Interface 8094:
Interface 8097:
Interface 8098: B~L~G
Interface 8101: p
Interface 8102:
Interface 8103:
Interface 8104:
Interface 8108: p
Interface 8110: p
Interface 8111:
Interface 8113:
Interface 8115: p
Interface 8117: p
Interface 8120:
Interface 8121: ~Hp
Interface 8122:
Interface 8124: p
Interface 8125: @Pp^A
Interface 8126:
Interface 8127:
Interface 8131:
Interface 8134:
Interface 8135:
Interface 8136:
Interface 8138:
Interface 8141:
Interface 8147:
Interface 8156: p<8
Interface 8157:
Interface 8160:
Interface 8162:
Interface 8165:
Interface 8166: p;p(p<s
Interface 8168:
Interface 8169: pI
Interface 8170:
Interface 8174:
Interface 8177:
Interface 8181:
Interface 8183:
Interface 8184:
Interface 8186:
Interface 8188: p& [EMAIL PROTECTED]
Interface 8189:
Interface 8190:
Trying to locate my IPv6 address
Looking for environment from cfenvd...
Loading environment...
Environment data loaded
cfengine:: No preconfiguration file
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
* (Changing context state to: main) *
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Manually overidden relative path (/var/cfengine/inputs/cfagent.conf)
Looking for an input file /var/cfengine/inputs/cfagent.conf
Looking for an input file cf.groups
Looking for an input file cf.snmp
Looking for an input file cf.linux
Finished with /var/cfengine/inputs/cfagent.conf
Defined Classes = ( 32_bit Day21 Hr21 Hr21_Q1 LoadAvg_high_dev1 March
Min00 Min00_05 Q1 Tuesday VMWare_ESX Yr2006 _ any cfengine_2 cfengine_2_1
cfengine_2_1_19p1
charter_com com compiled_on_linux_gnu debian debian_3 debian_3_1
entropy_cfengine_in_low entropy_cfengine_out_low entropy_dns_in_low
entropy_dns_out_low
entropy_ftp_in_low entropy_ftp_out_low entropy_icmp_in_low
entropy_icmp_out_low entropy_irc_in_low entropy_irc_out_low
entropy_misc_in_low entropy_misc_out_low
entropy_netbiosdgm_in_low entropy_netbiosdgm_out_low
entropy_netbiosns_in_low entropy_netbiosns_out_low
entropy_netbiosssn_in_low entropy_netbiosssn_out_low
entropy_nfsd_in_low entropy_nfsd_out_low entropy_smtp_in_low
entropy_smtp_out_low entropy_ssh_out_low entropy_tcpack_in_low
entropy_tcpack_out_low
entropy_tcpfin_in_low entropy_tcpfin_out_low entropy_tcpsyn_in_low
entropy_tcpsyn_out_low entropy_udp_in_low entropy_udp_out_low
entropy_www_in_low
entropy_www_out_low entropy_wwws_in_low entropy_wwws_out_low
linux linux_2_4_27_08032005 linux_sparc64 linux_sparc64_2_4_27_08032005
linux_sparc64_2_4_27_08032005__1_SMP_Wed_Aug_3_10_56_05_CDT_2005
net_iface_ net_iface_00
net_iface_21_00_14 net_iface_96_48_40____p_v_96_48_40____p___
net_iface_B___ net_iface_D___ net_iface_Tue_Mar_21_21_00_14_2006_
net_iface__ net_iface___0_p__
net_iface___5_p__hp_p_p___pI__pI__ net_iface____ net_iface____0
net_iface____4pI__ net_iface____8 net_iface____I net_iface_____
net_iface________
net_iface________Pp__ net_iface________X net_iface________X___hp
net_iface_________ net_iface_________2_2 net_iface________p
net_iface_____p net_iface_____pD__
net_iface_____pM______pM_T____
net_iface_____pM______pM______pM__________p___ net_iface_____p__8
net_iface_____p___ net_iface_____p___p6O_p_______ net_iface_____p_s_
net_iface_____p_v_ net_iface____p___H
net_iface__multi_o___hpM______pM_T____p____ net_iface_p net_iface_pH6_
net_iface_pI__ net_iface_pI______ net_iface_pI_h
net_iface_pIrL net_iface_
pM__ net_iface_pOX8________ net_iface_p__ net_iface_p___pIp8pI____0_D__y
nscaconfig postfixhost snmp sparc64 sysnull )
Negated Classes = ( )
This may prove nothing, but I'm desperately hoping that I can get a newer
release to compile so I can upgrade, so I'm hoping theres some sort of
clue in here somewhere.
There is a single network interface on this host. It is a Sun hme
interface and it is compiled into the kernel.
sunhme.c:v2.01 26/Mar/2002 David S. Miller (davem@redhat.com)
eth0: HAPPY MEAL (PCI/CheerIO) 10/100BaseT Ethernet 08:00:20:f7:df:f5
ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:20:F7:DF:F5
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27073379 errors:0 dropped:0 overruns:0 frame:0
TX packets:18390688 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11407840799 (10.6 GiB) TX bytes:2132464516 (1.9 GiB)
Interrupt:224 Base address:0x9000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1028829 errors:0 dropped:0 overruns:0 frame:0
TX packets:1028829 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3185398584 (2.9 GiB) TX bytes:3185398584 (2.9 GiB)
Does this have anything to do with it detecting as VMWareESX? I also
notice there is a _ class.
Any help in tracking this down greatly appreciated. Is anyone running
cfengine-2.1.17 - 19p1 on debian sparc without any problems?
Thanks.
Brian Seppanen
608.826.1464
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine