Find the answer to your Linux question:
Results 1 to 6 of 6
Hello guys and welcome to my debut on this board... Since I'm posting on the newbie board it's quite obvious I'm not very familiar with linux (kind of self-explanatory?) but ...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    4

    [SOLVED] Make errors

    Hello guys and welcome to my debut on this board...
    Since I'm posting on the newbie board it's quite obvious I'm not very familiar with linux (kind of self-explanatory?) but also English isn't my native language, so please try to be patient with me, even if it may be hard
    After a few hours spend on google and various boards, I finally decided to ask for help, so here I go.

    My goal: Getting aircrack to work.
    (I'm familiar with the legal issues, I intend to use it solely within my own network)

    My problem is: I'm trying to 'make' a patched driver but keep getting errors.
    (By the way I got similar errors for nearly all things I tried to 'make' so far...)

    The driver is called rtl8180-0.21.
    The patch is the respective one from from Index of /

    This is the I/O when I run make in the driver's main directory:

    Code:
    spartan-117@ReachComplex-Mainframe:~/Desktop/rtl8180-0.21$ make
    make -C /lib/modules/2.6.24-19-generic/build SUBDIRS=/home/spartan-117/Desktop/rtl8180-0.21 modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.24-19-generic'
      CC [M]  /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.o
    In file included from /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c:43:
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211.h:43:1: warning: "BIT" redefined
    In file included from include/linux/kernel.h:15,
                     from include/linux/skbuff.h:17,
                     from include/linux/if_ether.h:113,
                     from include/linux/netdevice.h:29,
                     from include/linux/if_arp.h:26,
                     from /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c:25:
    include/linux/bitops.h:6:1: warning: this is the location of the previous definition
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c: In function ‘auth_parse’:
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c:57: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c: In function ‘auth_rq_parse’:
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c:70: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c: In function ‘assoc_rq_parse’:
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c:121: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c: In function ‘assoc_parse’:
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c:136: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c: In function ‘ieee80211_monitor_rx’:
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c:296: error: ‘struct sk_buff’ has no member named ‘mac’
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c: In function ‘ieee80211_r8180_rx’:
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c:1131: error: ‘struct sk_buff’ has no member named ‘mac’
    /home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.c:1131: error: ‘struct sk_buff’ has no member named ‘nh’
    make[2]: *** [/home/spartan-117/Desktop/rtl8180-0.21/ieee80211_rx.o] Error 1
    make[1]: *** [_module_/home/spartan-117/Desktop/rtl8180-0.21] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-generic'
    make: *** [2.6] Error 2
    I'd really appreciate any help you can give me on this topic, so thanks in advance,
    Harle
    Last edited by Harlekin; 07-28-2008 at 02:59 AM. Reason: title changed

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    Welcome to the forums.
    This is about the only thing I could find for you. Could be helpful or not.
    J!NX Forums - compile error on an r8180 patch
    Try this newbie guide.
    newbie_guide [Aircrack-ng]
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  3. #3
    Just Joined!
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    4
    I tried the aircrack newbie_guide before and it said to do the following:

    ifconfig wlan0 down
    rmmod r8180
    wget SourceForge.net: Downloading ...
    wget http://patches.aircrack-ng.org/rtl8180-0.21v2.patch
    tar -xvzf rtl8180-0.21.tar.gz
    cd rtl8180-0.21
    patch -Np1 -i ../rtl8180-0.21v2.patch
    make && make install
    depmod -a
    modprobe r8180

    On my machine, the whole process stops after I run 'make' and gives the beforementioned errors.
    I guessed this may be a problem unrelated to aircrack, because I'm experiencing said errors when I try to make other sourcecode, too.

    Thanks anyway, maybe the other link gives a hint to more experienced people, I can't really to use the information given there.

  4. #4
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    More than probably, this driver will only work with concrete versions of the kernel. It seems pretty much unmaintained.

    I know it's not what you were asking for, but, however, there's a new driver for rtl8180 on the newer kernels (since 2.6.25 or so, I think). You can try that.

    Some people also use ndiswrapper with success.

    This thread about the issue on the Gentoo forums might be useful for you:

    Gentoo Forums :: View topic - wlan rtl8180 with 2.6.25-gentoo-r1

    I hope this info helps in some way.

  5. #5
    Just Joined!
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    4
    What do you mean by concrete kernel version?

    The thing is, I apparently need this specific (patched) driver to get aircrack to work with my usb wlan stick because the driver I'm using atm doesn't support "packet injection"...
    (Normal wireless connection works just fine)
    A sure solution would be a new wlan device, known to work with aircrack but I'd like to go for less drastic solutions first...

  6. #6
    Just Joined!
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    4

    Exclamation Solved

    Problem solved, I simply was trying to use rtl8180 drivers for a rtl8187 chipset wlan stick...
    Sorry for any inconvenience I may have caused.
    So long,
    Harle

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...