Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, I'm trying to compile a driver to my LAN Interface card Atheros 8132. Anyways I did the following:- 1) Downloaded the driver. (l1c-linux-v1.0.0.11-test.tar.gz) 2) Extract it using (tar - ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Location
    Amman/Jordan
    Posts
    6

    Exclamation Makefile error


    Hello,

    I'm trying to compile a driver to my LAN Interface card Atheros 8132.

    Anyways I did the following:-

    1) Downloaded the driver. (l1c-linux-v1.0.0.11-test.tar.gz)
    2) Extract it using (tar - zxvf l1c-linux-v1.0.0.11-test.tar.gz)
    3) entered the src directory
    4) make install
    I will get this error

    Makefile:61: *** Linux kernel source not found. Stop.

    I don't have an Idea what is this or how can I solve it, reminding that Im new to linux and Im using CentOS5.4

    Please help

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    You need the kernel-devel packages.

    HowTos/I need the Kernel Source - CentOS Wiki

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Location
    Amman/Jordan
    Posts
    6

    Red face One step forward

    Hello again,

    I got the kernel source like the link discribed and moved one step forward, the makefile error didn't come again, but I got stuck in another thing :-

    [root@localhost src]# ls
    at_common.h atl1c_main.c atl1e_main.c Makefile
    at_common_main.c atl1c_param.c atl1e_param.c modules.order
    atl1c_ethtool.c atl1e_ethtool.c at_osdep.h Module.symvers
    atl1c.h atl1e.h kcompat.c
    atl1c_hw.c atl1e_hw.c kcompat_ethtool.c
    atl1c_hw.h atl1e_hw.h kcompat.h

    [root@localhost src]# make install

    make -C /lib/modules/2.6.18-164.el5xen/build SUBDIRS=/MyTemp/src modules
    make[1]: Entering directory `/usr/src/kernels/2.6.18-164.el5-xen-x86_64'
    CC [M] /MyTemp/src/at_common_main.o
    In file included from /MyTemp/src/at_common.h:4,
    from /MyTemp/src/at_common_main.c:1:
    /MyTemp/src/kcompat.h:1575: error: redefinition of ‘struct napi_struct’
    make[2]: *** [/MyTemp/src/at_common_main.o] Error 1
    make[1]: *** [_module_/MyTemp/src] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.18-164.el5-xen-x86_64'
    make: *** [default] Error 2

    Need help again.
    Thanks

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I would suggest going the easier route and installing a prebuilt binary.

    The ELRepo has it. Enable that and install with
    Code:
    su -c 'yum install kmod-atl1c'

  6. #5
    Just Joined!
    Join Date
    Jan 2010
    Location
    Amman/Jordan
    Posts
    6
    I can't use yum install because I can't connect to the internet because of the drivers.

    Im trying to install the drivers for my LAN interface.

  7. #6
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Then download the rpm to a flash driver and transfer it over.
    Index of /linux/elrepo/el5/x86_64/RPMS

Posting Permissions

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