Bug 185845 - net-wireless/acx-0.3.35_p20070101 compile fails w/2.6.22
|
Bug#:
185845
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: spb@gentoo.org
|
Reported By: thoward1120@comcast.net
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: net-wireless/acx-0.3.35_p20070101 compile fails w/2.6.22
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2007-07-19 08:43 0000
|
In response to a forum post about this, I looked into it. It was a simple fix,
but needs to be tested. Ebuild and patch attached.
Reproducible: Always
Oh, yeah, the original errors:
/var/tmp/portage/net-wireless/acx-0.3.35_p20070101/work/acx-20070101/common.c:
In function 'acx_l_rxmonitor':
/var/tmp/portage/net-wireless/acx-0.3.35_p20070101/work/acx-20070101/common.c:2757:
error: 'struct sk_buff' has no member named 'mac'
make[1]: ***
[/var/tmp/portage/net-wireless/acx-0.3.35_p20070101/work/acx-20070101/common.o]
Error 1
make[1]: *** Waiting for unfinished jobs....
/var/tmp/portage/net-wireless/acx-0.3.35_p20070101/work/acx-20070101/pci.c: In
function 'acxpci_e_open':
/var/tmp/portage/net-wireless/acx-0.3.35_p20070101/work/acx-20070101/pci.c:2107:
warning: 'deprecated_irq_flag' is deprecated (declared at
include/linux/interrupt.h:66)
make: ***
[_module_/var/tmp/portage/net-wireless/acx-0.3.35_p20070101/work/acx-20070101]
Error 2
make: Leaving directory `/usr/src/linux-2.6.22-gentoo-r1'
Thanks for the patch and ebuild, compiles and works perfectly.
Thomas, any chance you can improve the patch so that the ebuild can apply it
unconditionally?
You can do stuff like:
(random example from another bug)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
+ struct iphdr *ip = ip_hdr(skb);
+#else
struct iphdr *ip = skb->nh.iph;
+#endif
(In reply to comment #6)
> Thomas, any chance you can improve the patch so that the ebuild can apply it
> unconditionally?
>
> You can do stuff like:
> (random example from another bug)
>
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
> + struct iphdr *ip = ip_hdr(skb);
> +#else
> struct iphdr *ip = skb->nh.iph;
> +#endif
>
Yeah, that's fine. I actually was going to do it the way you prefer, but
thought maybe it was supposed to done in the ebuild, since I saw that
madwifi-ng handles it that way. You want that patch redone too?
thank you I fixed this. Btw, there is no need for a kernel_is check for
CONFIG_CHECK. WIRELESS_EXT is also in use in kernels prior to 2.6.22.
(In reply to comment #10)
> thank you I fixed this. Btw, there is no need for a kernel_is check for
> CONFIG_CHECK. WIRELESS_EXT is also in use in kernels prior to 2.6.22.
>
Yeah, but as far as I know, the driver needs NET_RADIO for a < 2.6.22 kernel,
which can be disabled even if WIRELESS_EXT is enabled. In 2.6.22, NET_RADIO is
gone, so I figured WIRELESS_EXT covered it.