LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2004, 05:59 AM   #1
em0ng
LQ Newbie
 
Registered: Sep 2004
Location: Kelowna, BC
Distribution: Slackware 10
Posts: 3

Rep: Reputation: 0
When I try to make my ethernet driver under kernel 2.6.8.1 .. error.


Code:
bash-2.05b# make
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux/include  -D__SMP__   -c -o skge.o skge.c
In file included from /usr/src/linux/include/asm/processor.h:18,
                 from /usr/src/linux/include/asm/thread_info.h:16,
                 from /usr/src/linux/include/linux/thread_info.h:21,
                 from /usr/src/linux/include/linux/spinlock.h:12,
                 from /usr/src/linux/include/linux/capability.h:45,
                 from /usr/src/linux/include/linux/sched.h:7,
                 from /usr/src/linux/include/linux/module.h:10,
                 from skge.c:344:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from skge.c:344:
/usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from skge.c:344:
/usr/src/linux/include/asm/mpspec.h: At top level:
/usr/src/linux/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
In file included from /usr/src/linux/include/asm/smp.h:20,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from skge.c:344:
/usr/src/linux/include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/io_apic.h:160: error: conflicting types for `mp_irqs'
/usr/src/linux/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from skge.c:344:
/usr/src/linux/include/asm/smp.h:71:26: mach_apicdef.h: No such file or directory
In file included from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from skge.c:344:
/usr/src/linux/include/asm/smp.h: In function `hard_smp_processor_id':
/usr/src/linux/include/asm/smp.h:75: warning: implicit declaration of function `GET_APIC_ID'
In file included from /usr/src/linux/include/linux/irq.h:20,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:12,
                 from h/skdrv1st.h:161,
                 from skge.c:347:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:12,
                 from h/skdrv1st.h:161,
                 from skge.c:347:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:72,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:12,
                 from h/skdrv1st.h:161,
                 from skge.c:347:
/usr/src/linux/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/src/linux/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in a function)
skge.c: In function `skge_probe':
skge.c:504: warning: implicit declaration of function `pci_present'
skge.c:525: warning: integer constant is too large for "long" type
skge.c:530: warning: implicit declaration of function `init_etherdev'
skge.c:530: warning: assignment makes pointer from integer without a cast
skge.c:679: warning: assignment makes pointer from integer without a cast
skge.c: In function `SkGeBoardInit':
skge.c:1085: warning: passing arg 2 of `request_irq' from incompatible pointer type
skge.c:1088: warning: passing arg 2 of `request_irq' from incompatible pointer type
skge.c: In function `SkGeOpen':
skge.c:1793: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:555)
skge.c: In function `SkGeClose':
skge.c:1893: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:567)
make: *** [skge.o] Error 1
Under 2.4.26 it works fine though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to make alsa-driver: error 1 chirayan Red Hat 7 06-02-2005 04:48 AM
kernel 2.6.7 nvidia ethernet driver Da_Necromancer Linux - Software 15 10-10-2004 01:09 PM
error while installing bcm4400 RPM ethernet driver ksr Red Hat 1 10-08-2004 02:33 PM
Kernel make bzImage error "undefined reference" w/ Prism2.5 USB driver under 2.6 joachimvb Mandriva 1 09-24-2004 07:43 PM
How to install driver Ethernet card in Linux kernel 2.4.10 truong van lich Linux - Software 1 07-29-2003 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration