LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I am trying to compile the alt1 gigabit ethernet driver and run into this error, any (https://www.linuxquestions.org/questions/linux-newbie-8/i-am-trying-to-compile-the-alt1-gigabit-ethernet-driver-and-run-into-this-error-any-792302/)

mylvarab 03-01-2010 05:00 AM

I am trying to compile the alt1 gigabit ethernet driver and run into this error, any
 
root/atl1-2.0.7-linux-2.6.20/atl1_main.c:2415: error: dereferencing pointer to incomplete type
/root/atl1-2.0.7-linux-2.6.20/atl1_main.c: At top level:
/root/atl1-2.0.7-linux-2.6.20/atl1.h:276: error: storage size of `hw' isn't known
/root/atl1-2.0.7-linux-2.6.20/atl1_main.c:2058: warning: 'atl1_tx_timeout_task' defined but not used
/root/atl1-2.0.7-linux-2.6.20/atl1_main.c:2073: warning: 'atl1_link_chg_task' defined but not used
make[3]: *** [/root/atl1-2.0.7-linux-2.6.20/atl1_main.o] Error 1
make[2]: *** [_module_/root/atl1-2.0.7-linux-2.6.20] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-34.EL-i686'
make: *** [default] Error 2

MS3FGX 03-01-2010 09:41 AM

Is that the complete error mesage? None of it looks helpful, it seems like something is missing farther up. Post everything you can in CODE tags so we can see the whole picture.

TB0ne 03-01-2010 09:58 AM

Quote:

Originally Posted by MS3FGX (Post 3881067)
Is that the complete error mesage? None of it looks helpful, it seems like something is missing farther up. Post everything you can in CODE tags so we can see the whole picture.

And some details about your system wouldn't hurt either...like version/distro of Linux, etc...

mylvarab 03-02-2010 03:36 AM

Well I trying to compile it on RHEL4, I have downloaded the driver and trying to compile with the instructions in README file

knudfl 03-02-2010 04:42 AM

http://atl1.sourceforge.net/
QUOTE :
""IMPORTANT NOTE: Don't use a vendor version older than 1.2.40.2 !""

ftp://hogchain.net/pub/linux/attansi....2.40.3.tar.gz
> > l1-linux-v1.2.40.3.tar.gz

Is this the link you used ? And did you get that version ?
= recommended for older kernels.


Atheros drivers ... ( if madwifi is usable ? )
http://rpms.arrfab.net/rpmforge/pack...nel.group.html
> > madwifi-0.9.4-0.1.r2598.el5.rf
http://rpms.arrfab.net/rpmforge/pack...98.el5.rf.html

# yum install madwifi
.. from the rpmforge.repo or atrpms.repo ..
.. .....

mylvarab 03-02-2010 05:12 AM

okay I have installed centos 5.3, new kernel version and the driver you pointed me to. This is the error I run into when I compile the driver

[root@localhost src]# make install
make -C /lib/modules/2.6.18-128.el5xen/build SUBDIRS=/root/l1-linux-v1.2.40.3/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.el5-xen-i686'
CC [M] /root/l1-linux-v1.2.40.3/src/at_main.o
In file included from /root/l1-linux-v1.2.40.3/src/at.h:29,
from /root/l1-linux-v1.2.40.3/src/at_main.c:27:
/root/l1-linux-v1.2.40.3/src/kcompat.h:1116: error: redefinition of typedef ‘irq_handler_t’
include/linux/interrupt.h:67: error: previous declaration of ‘irq_handler_t’ was here
make[2]: *** [/root/l1-linux-v1.2.40.3/src/at_main.o] Error 1
make[1]: *** [_module_/root/l1-linux-v1.2.40.3/src] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.el5-xen-i686'
make: *** [default] Error 2

knudfl 03-02-2010 06:21 AM

How about trying out the 'madwifi' package ?

Or wait for the upcoming CentOS 5.5 :
http://www.desktoplinux.com/news/NS6...09.html?kc=rss
"" There has been a particular focus on WiFi drivers .. ""

.....


All times are GMT -5. The time now is 11:42 PM.