Re: Which wireless card?
Sepherosa Ziehau wrote: On 5/14/07, Petr Janda <[EMAIL PROTECTED]> wrote: Sepherosa Ziehau wrote: .. > Best Regards, > sephe > Thanks a lot Sephe, I switched to onoe and I am waiting to see whats the stability like. Could you summarize the difference between amrr and onoe? AMRR will try to probe higher rate more often than ONOE. Sometimes the probing rate is wrong, then in that second, most TX will be retried or even fail. If the probing keeps failing, then AMRR will be degenerated to ONOE for sometime. Since acx111 part of acx(4) supports limited multi-rate retry, the situation will not be that bad though. One of my previous emails listed 3 different atheros chipsets, could you please tell me if they can be handled by the ath driver? The card using Ath SuperG chip is supported, as far as I can tell. Best Regards, sephe Thanks, I purchased the Netgear WG311T which is supposed to have 5212, so when i get it im gonna replace my current card which has a TI in it. Did you get my email with the logs? Petr
Re: Which wireless card?
On 5/14/07, Petr Janda <[EMAIL PROTECTED]> wrote: Sepherosa Ziehau wrote: > On 5/14/07, Petr Janda <[EMAIL PROTECTED]> wrote: >> Sepherosa Ziehau wrote: >> .. >> > Best Regards, >> > sephe >> > >> Thanks a lot Sephe, I switched to onoe and I am waiting to see whats the >> stability like. Could you summarize the difference between amrr and >> onoe? > > AMRR will try to probe higher rate more often than ONOE. Sometimes > the probing rate is wrong, then in that second, most TX will be > retried or even fail. If the probing keeps failing, then AMRR will be > degenerated to ONOE for sometime. Since acx111 part of acx(4) > supports limited multi-rate retry, the situation will not be that bad > though. > >> >> One of my previous emails listed 3 different atheros chipsets, could you >> please tell me if they can be handled by the ath driver? > > The card using Ath SuperG chip is supported, as far as I can tell. > > Best Regards, > sephe > Thanks, I purchased the Netgear WG311T which is supposed to have 5212, so when i get it im gonna replace my current card which has a TI in it. Did you get my email with the logs? Ah, yes, I think the reply is on its way :) Best Regards, sephe -- Live Free or Die
structure has no member named `kp_eproc'
Hi, I'm trying to compile net-snmp from SVN applying the pkgsrc patches and I can't seem to figure out why its failing on this error. What's the meaning of this error and how to fix it? Thanks, Petr
Re: structure has no member named `kp_eproc'
On 2007-05-14 17:48, Petr Janda wrote: Hi, I'm trying to compile net-snmp from SVN applying the pkgsrc patches and I can't seem to figure out why its failing on this error. What's the meaning of this error and how to fix it? You didn't tell us which struct, that should be included in the error message, so it's hard to tell. But my guess is that there's some structure that contains information about the system (used to pass data between the application and the kernel). That structure looks something like this: struct foo { int bar; int baz; char* forbar; } However in some earlier version or on some other system that struct looks different (and the application is not aware of this), some thing like this: struct foo { int bar; int baz; int kp_eproc; char* foobar; } So when you try to compile the code that assumes that the struct has a member kp_eproc but in reality it does not you get that error message. A question: If you applied patches from pkgsrc does that mean that the program is in pkgsrc and in that case, why not use it? -- Erik Wikström
Re: structure has no member named `kp_eproc'
Erik Wikström wrote: On 2007-05-14 17:48, Petr Janda wrote: Hi, I'm trying to compile net-snmp from SVN applying the pkgsrc patches and I can't seem to figure out why its failing on this error. What's the meaning of this error and how to fix it? So when you try to compile the code that assumes that the struct has a member kp_eproc but in reality it does not you get that error message. A question: If you applied patches from pkgsrc does that mean that the program is in pkgsrc and in that case, why not use it? Hi Erik, This is the full message, host/hr_swrun.c: In function `var_hrswrun': host/hr_swrun.c:603: error: structure has no member named `kp_eproc' host/hr_swrun.c:604: error: structure has no member named `kp_eproc' host/hr_swrun.c:605: error: structure has no member named `kp_eproc' host/hr_swrun.c:730: error: structure has no member named `kp_proc' host/hr_swrun.c:928: error: structure has no member named `kp_proc' host/hr_swrun.c:972: error: structure has no member named `kp_proc' host/hr_swrun.c:1079: error: structure has no member named `kp_eproc' host/hr_swrun.c:1080: error: structure has no member named `kp_eproc' host/hr_swrun.c:1081: error: structure has no member named `kp_eproc' host/hr_swrun.c:1171: error: structure has no member named `kp_eproc' host/hr_swrun.c: In function `Init_HR_SWRun': host/hr_swrun.c:1349: warning: unused variable `bytes' host/hr_swrun.c: In function `Get_Next_HR_SWRun': host/hr_swrun.c:1491: error: structure has no member named `kp_proc' host/hr_swrun.c:1492: error: structure has no member named `kp_proc' *** Error code 1 Stop in /root/net-snmp_svn/V5-4-patches/agent/mibgroup. and this is the part of code from around line 1079: #elif HAVE_KVM_GETPROCS #if defined(NOT_DEFINED) && defined(freebsd5) && __FreeBSD_version >= 500014 /* XXX: Accessing ki_paddr causes sig10 ... long_return = proc_table[LowProcIndex].ki_paddr->p_uticks + proc_table[LowProcIndex].ki_paddr->p_sticks + proc_table[LowProcIndex].ki_paddr->p_iticks; */ long_return = 0; #elif defined(freebsd5) long_return = proc_table[LowProcIndex].ki_runtime / 10; #elif defined(dragonfly) long_return = proc_table[LowProcIndex].kp_eproc.e_uticks + proc_table[LowProcIndex].kp_eproc.e_sticks + proc_table[LowProcIndex].kp_eproc.e_iticks; #else long_return = proc_table[LowProcIndex].kp_proc.p_uticks + proc_table[LowProcIndex].kp_proc.p_sticks + proc_table[LowProcIndex].kp_proc.p_iticks; #endif The reason I am doing this is because I am trying to get NET-SNMP supported upstream (at the moment its broken in pkgsrc stable and current) Thanks Petr
Re: structure has no member named `kp_eproc'
On 5/14/07, Petr Janda <[EMAIL PROTECTED]> wrote: Erik Wikström wrote: > On 2007-05-14 17:48, Petr Janda wrote: >> Hi, >> I'm trying to compile net-snmp from SVN applying the pkgsrc patches >> and I can't seem to figure out why its failing on this error. What's >> the meaning of this error and how to fix it? > > So when you try to compile the code that assumes that the struct has a > member kp_eproc but in reality it does not you get that error message. > > A question: If you applied patches from pkgsrc does that mean that the > program is in pkgsrc and in that case, why not use it? > Hi Erik, This is the full message, host/hr_swrun.c: In function `var_hrswrun': host/hr_swrun.c:603: error: structure has no member named `kp_eproc' host/hr_swrun.c:604: error: structure has no member named `kp_eproc' host/hr_swrun.c:605: error: structure has no member named `kp_eproc' host/hr_swrun.c:730: error: structure has no member named `kp_proc' host/hr_swrun.c:928: error: structure has no member named `kp_proc' host/hr_swrun.c:972: error: structure has no member named `kp_proc' host/hr_swrun.c:1079: error: structure has no member named `kp_eproc' host/hr_swrun.c:1080: error: structure has no member named `kp_eproc' host/hr_swrun.c:1081: error: structure has no member named `kp_eproc' host/hr_swrun.c:1171: error: structure has no member named `kp_eproc' host/hr_swrun.c: In function `Init_HR_SWRun': host/hr_swrun.c:1349: warning: unused variable `bytes' host/hr_swrun.c: In function `Get_Next_HR_SWRun': host/hr_swrun.c:1491: error: structure has no member named `kp_proc' host/hr_swrun.c:1492: error: structure has no member named `kp_proc' *** Error code 1 Stop in /root/net-snmp_svn/V5-4-patches/agent/mibgroup. and this is the part of code from around line 1079: #elif HAVE_KVM_GETPROCS #if defined(NOT_DEFINED) && defined(freebsd5) && __FreeBSD_version >= 500014 /* XXX: Accessing ki_paddr causes sig10 ... long_return = proc_table[LowProcIndex].ki_paddr->p_uticks + proc_table[LowProcIndex].ki_paddr->p_sticks + proc_table[LowProcIndex].ki_paddr->p_iticks; */ long_return = 0; #elif defined(freebsd5) long_return = proc_table[LowProcIndex].ki_runtime / 10; #elif defined(dragonfly) long_return = proc_table[LowProcIndex].kp_eproc.e_uticks + proc_table[LowProcIndex].kp_eproc.e_sticks + proc_table[LowProcIndex].kp_eproc.e_iticks; #else long_return = proc_table[LowProcIndex].kp_proc.p_uticks + proc_table[LowProcIndex].kp_proc.p_sticks + proc_table[LowProcIndex].kp_proc.p_iticks; #endif The reason I am doing this is because I am trying to get NET-SNMP supported upstream (at the moment its broken in pkgsrc stable and current) Thanks Petr Hi Petr, For the example you've given (Dragonfly section): long_return = proc_table[LowProcIndex].kp_eproc.e_uticks + proc_table[LowProcIndex].kp_eproc.e_sticks + proc_table[LowProcIndex].kp_eproc.e_iticks; becomes: long_return = proc_table[LowProcIndex].kp_lwp.kl_uticks + proc_table[LowProcIndex].kp_lwp.kl_sticks + proc_table[LowProcIndex].kp_lwp.kl_iticks; Check out http://fxr.watson.org/fxr/source/sys/kinfo.h?v=DFBSD#L145 for any other conversions you might need to do. It looks like corecode and tgen changed the proc stuff about 3 months ago. -- Dion
structure has no member named `rt_nodes' (was: structure has no member named `kp_eproc')
Dionysus Blazakis wrote: Hi Petr, For the example you've given (Dragonfly section): long_return = proc_table[LowProcIndex].kp_eproc.e_uticks + proc_table[LowProcIndex].kp_eproc.e_sticks + proc_table[LowProcIndex].kp_eproc.e_iticks; becomes: long_return = proc_table[LowProcIndex].kp_lwp.kl_uticks + proc_table[LowProcIndex].kp_lwp.kl_sticks + proc_table[LowProcIndex].kp_lwp.kl_iticks; Check out http://fxr.watson.org/fxr/source/sys/kinfo.h?v=DFBSD#L145 for any other conversions you might need to do. It looks like corecode and tgen changed the proc stuff about 3 months ago. -- Dion Hi and thanks, with your advise and following the file you gave me link to I was able to get the whole file to compile (had to be fixed on numerous occasions). Now I am facing another problem in file route_write.c The error is: mibII/route_write.c: In function `addRoute': mibII/route_write.c:122: error: structure has no member named `rt_nodes' mibII/route_write.c:127: error: structure has no member named `rt_pad1' mibII/route_write.c: In function `delRoute': mibII/route_write.c:217: error: structure has no member named `rt_nodes' mibII/route_write.c:222: error: structure has no member named `rt_pad1' *** Error code 1 In the source code line 122 contains: memcpy(&route.rt_dst, &dst, sizeof(struct sockaddr_in)); and line 127 contains: route.rt_hash = iff; which "links" to: #ifndef STRUCT_RTENTRY_HAS_RT_DST #define rt_dst rt_nodes->rn_key #endif #ifndef STRUCT_RTENTRY_HAS_RT_HASH #define rt_hash rt_pad1 #endif How would this be fixed for DragonFly? Petr
HEADS UP - development tree may be unstable for a few days
As people may have noticed from the commits I'm working on separating out the all the hardcoded references to struct disklabel. I'm separating out all the disk management layering code into distinct pieces (slice code, disklabel, partition management). I might make a mistake, and it could blow something up, like a filesystem, so this is a head's up that the development tree should be considered unstable this week. Eventually this will allow us to implement a pluggable disklabeling scheme (e.g. a 64 bit disklabel or GPT or something like that). I'm just getting some low-hanging fruit out of the way to make it easier later on. GPT looks aweful, but it isn't something I'm going to worry about right now. -Matt