LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-31-2001, 03:57 AM   #1
vsuresh25
LQ Newbie
 
Registered: Aug 2001
Location: india
Posts: 1

Rep: Reputation: 0
Red face How to compile a network driver.


Hi,

I have added some additional code (or additional debugging statments into rtl8139.c file. After modifications i am able to compile with the following options:

gcc -DMODULE -D__KERNEL__ -06 -I/usr/src/linux/include -include /usr/src/linux/include/linux/modversions.h -c rtl8139.c

Comilation is going through. After that i am trying to add the driver using the command

insmod rtl8138

At this instant i am getting the following "symbols unresolved" errors:

rtl8139.o: unresolved symbol inb
rtl8139.o: unresolved symbol inl
rtl8139.o: unresolved symbol inw
rtl8139.o: unresolved symbol virt_to_phys
rtl8139.o: unresolved symbol skb_put
rtl8139.o: unresolved symbol __constant_memcpy
rtl8139.o: unresolved symbol __constant_c_memset
rtl8139.o: unresolved symbol __memcpy
rtl8139.o: unresolved symbol init_timer
rtl8139.o: unresolved symbol mark_bh
rtl8139.o: unresolved symbol test_and_set_bit
rtl8139.o: unresolved symbol kfree_skb
rtl8139.o: unresolved symbol dev_alloc_skb
rtl8139.o: unresolved symbol __constant_c_and_count_memset
rtl8139.o: unresolved symbol skb_reserve
rtl8139.o: unresolved symbol capable
rtl8139.o: unresolved symbol set_bit
rtl8139.o: unresolved symbol clear_bit
-------

Can any body help me to avoid this error.

Thanks,
suresh.
 
Old 08-31-2001, 09:22 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Was the module working before your modifications? If not have you recompiled you kernel to use it as a module?

cheers

Jamie...
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to compile D-Link DFE530TX network card driver in RH Linux 7.3 zy101 Linux - Hardware 6 04-25-2008 08:16 AM
Help needed installing Dlink network adapter driver - compile errors Arodef Linux - Hardware 0 08-12-2005 05:45 PM
How compile a new driver GregLille Linux - Networking 3 01-05-2005 05:42 AM
[newbie] Gentoo 1.4 and P4C800 - network driver compile problem barrel Linux - Hardware 2 11-06-2003 01:01 AM
driver compile rcarlino Mandriva 0 08-25-2003 07:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:55 AM.

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