public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] can't make rt2570 module
@ 2009-03-13 21:32 maxim wexler
  2009-03-14  2:59 ` Mike Kazantsev
  0 siblings, 1 reply; 2+ messages in thread
From: maxim wexler @ 2009-03-13 21:32 UTC (permalink / raw
  To: gentoo-user


Hi group,

I found a bug report for this but that involved a problem with the kernel config. In this case, portage doesn't seem to have a problem with that.

This is for a "NovaTech" usb-wifi gizmo. ID: 0eb0:9020

#emerge -v rt2570
<...>
 * Found sources for kernel version:
 *     2.6.23-gentoo-r6
 * Checking for suitable kernel configuration options...                                        [ ok ]
<...>
* Preparing rt2570 module
make: Entering directory `/usr/src/linux-2.6.23-gentoo-r6'
  CC [M]  /var/tmp/portage/net-wireless/rt2570-20070209/work/rt2570-20070209/Module/rtusb_main.o
  CC [M]  /var/tmp/portage/net-wireless/rt2570-20070209/work/rt2570-20070209/Module/mlme.o
/var/tmp/portage/net-wireless/rt2570-20070209/work/rt2570-20070209/Module/rtusb_main.c: In function 'usb_rtusb_probe':
/var/tmp/portage/net-wireless/rt2570-20070209/work/rt2570-20070209/Module/rtusb_main.c:1907: error: 'dev_base' undeclared (first use in this function)
/var/tmp/portage/net-wireless/rt2570-20070209/work/rt2570-20070209/Module/rtusb_main.c:1907: error: (Each undeclared identifier is reported only once
/var/tmp/portage/net-wireless/rt2570-20070209/work/rt2570-20070209/Module/rtusb_main.c:1907: error: for each function it appears in.)
/var/tmp/portage/net-wireless/rt2570-20070209/work/rt2570-20070209/Module/rtusb_main.c:1907: error: 'struct net_device' has no member named 'next'
make[1]: *** [/var/tmp/portage/net-wireless/rt2570-20070209/work/rt2570-20070209/Module/rtusb_main.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [_module_/var/tmp/portage/net-wireless/rt2570-20070209/work/rt2570-20070209/Module] Error 2
make: Leaving directory `/usr/src/linux-2.6.23-gentoo-r6'
 *
 * ERROR: net-wireless/rt2570-20070209 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3167:  Called linux-mod_src_compile
 *             environment, line 2429:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                            CROSS_COMPILE=${CHOST}-                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"       ${BUILD_FIXES}                                           ${BUILD_PARAMS}                              ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=  -C /usr/src/linux M=/var/tmp/portage/net-wireless/rt2570-20070209/work/rt2570-20070209/Module modules
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/net-wireless:rt2570-20070209:20090311-154403.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/rt2570-20070209/temp/environment'.
 *

 * Messages for package net-wireless/rt2570-20070209:

 *
 * ERROR: net-wireless/rt2570-20070209 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3167:  Called linux-mod_src_compile
 *             environment, line 2429:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                            CROSS_COMPILE=${CHOST}-                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"       ${BUILD_FIXES}                                           ${BUILD_PARAMS}                              ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=  -C /usr/src/linux M=/var/tmp/portage/net-wireless/rt2570-20070209/work/rt2570-20070209/Module modules
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/net-wireless:rt2570-20070209:20090311-154403.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/rt2570-20070209/temp/environment'.
 *



      __________________________________________________________________
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] can't make rt2570 module
  2009-03-13 21:32 [gentoo-user] can't make rt2570 module maxim wexler
@ 2009-03-14  2:59 ` Mike Kazantsev
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Kazantsev @ 2009-03-14  2:59 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 588 bytes --]

On Fri, 13 Mar 2009 14:32:08 -0700 (PDT)
maxim wexler <blissfix@yahoo.com> wrote:

> /var/tmp/portage/net-wireless/rt2570-20070209/work/rt2570-20070209/Module/rtusb_main.c:1907: error: 'dev_base' undeclared (first use in this function)

There's no such thing in recent kernels anymore.

In fact, rt2570 module in portage tree is outdated, so you can either
downgrade the kernel to use it or (much better approach) just update
ebuild to fetch newer sources from the project page.

http://rt2x00.serialmonkey.com/wiki/index.php/Downloads


-- 
Mike Kazantsev // fraggod.net

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-14  3:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-13 21:32 [gentoo-user] can't make rt2570 module maxim wexler
2009-03-14  2:59 ` Mike Kazantsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox