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 05-07-2006, 10:03 AM   #1
hellmet
Member
 
Registered: May 2006
Location: Hyderabad,India
Distribution: Ubuntu
Posts: 35

Rep: Reputation: Disabled
Please Compile This Module For Me...


Hello people..
I am havin some tuff time trying to compile this thing.
I need Linux_source for this..which I don't have.
its a 35 MB file..that'll take ages to download for me.



I am Presently on Breezy Badger(Kernel 2.6x)
I need you guys to Compile the Kernal Module for me
There is the make file that must be edited acc. to your kernel
Please do it..I beg of u guys...



http://www.megaupload.com/?d=OGK2WNVP

is the file


thanks guys
 
Old 05-07-2006, 10:35 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Why, the file is for a 2.4.18 kernel and will not build for a 2.6 kernel.

Besides you can probably just 'modprobe 8139too' and then assign eth(whatever) an address.
 
Old 05-07-2006, 10:42 AM   #3
hellmet
Member
 
Registered: May 2006
Location: Hyderabad,India
Distribution: Ubuntu
Posts: 35

Original Poster
Rep: Reputation: Disabled
the make file is for 2.4X
but the 8139too is for 2.6X

tats why I said...u need to change the MAKE FILE
and then compile
PLEASE do it dude.
 
Old 05-07-2006, 10:51 AM   #4
nathanhillinbl
Member
 
Registered: Aug 2005
Location: Upstate NY
Distribution: Ubuntu 7.10 Gutsy Gibbon
Posts: 100

Rep: Reputation: 15
u would probably get better results if u didnt just say "do it" what i did with dialup is just leave thje dwnload overnight and it would be done in the morning, and then u could ask the ppl on here how to compile it and change the Makefile urself. Ive had quite a few problems, and all u have to do is ask how to do it urself and u get ppl replying.
 
Old 05-07-2006, 10:54 AM   #5
hellmet
Member
 
Registered: May 2006
Location: Hyderabad,India
Distribution: Ubuntu
Posts: 35

Original Poster
Rep: Reputation: Disabled
Yaa dude..But i have a stupid connection that has a limit of 1GB
per month..
If i exceed I am doomed.
Please understand man.
Please do it if its possible, for me.
 
Old 05-07-2006, 11:10 AM   #6
nathanhillinbl
Member
 
Registered: Aug 2005
Location: Upstate NY
Distribution: Ubuntu 7.10 Gutsy Gibbon
Posts: 100

Rep: Reputation: 15
o that sucks a big one. Im really new at this stuff, it kind of sucks when u post something and either noone wants to do it or noone knows how to.idk how to
 
Old 05-07-2006, 12:17 PM   #7
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31
Dear Lenard,

I badly need some help with load balancing using ip route. I can't post the picture of my topology but I can send it to you via email. Mine is "vishamr2000@gmail.com". If you want, pls do give me urs so that I can send you the topology..

Great if you could help me out dude..

Warm regards,
Visham
 
Old 05-07-2006, 01:23 PM   #8
dmartins
Member
 
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98

Rep: Reputation: 15
hellmet, this driver is already included in 2.6.x kernels. The network card this machine has uses this same driver and I tried ubuntu a couple of weeks ago with no problem. Why do you need this compiled when it is already available with your kernel?

Anyways, it won't compile against a 2.6.16 kernel, presumably because it is for a 2.4.x kernel. If you give some kind of explanation other than "please do it" we might be able to help.

Code:
gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX  -I /usr/src/linux/
include/ -c 8139too.c
In file included from /usr/src/linux/include/linux/sched.h:20,
                 from /usr/src/linux/include/linux/module.h:10,
                 from 8139too.c:107:
/usr/src/linux/include/asm/semaphore.h: In function `down':
/usr/src/linux/include/asm/semaphore.h:105: error: syntax error before "KBUILD_B
ASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `down_interruptible':
/usr/src/linux/include/asm/semaphore.h:130: error: syntax error before "KBUILD_B
ASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `down_trylock':
/usr/src/linux/include/asm/semaphore.h:155: error: syntax error before "KBUILD_B
ASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `up':
/usr/src/linux/include/asm/semaphore.h:105: error: syntax error before "KBUILD_BASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `down_interruptible':
/usr/src/linux/include/asm/semaphore.h:130: error: syntax error before "KBUILD_BASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `down_trylock':
/usr/src/linux/include/asm/semaphore.h:155: error: syntax error before "KBUILD_BASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `up':
/usr/src/linux/include/asm/semaphore.h:179: error: syntax error before "KBUILD_BASENAME"
In file included from /usr/src/linux/include/linux/irq.h:22,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/hardirq.h:7,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/linux/netdevice.h:534,
                 from 8139too.c:112:
/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/hardirq.h:7,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/linux/netdevice.h:534,
                 from 8139too.c:112:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:85: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:94,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/hardirq.h:7,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/linux/netdevice.h:534,
                 from 8139too.c:112:
/usr/src/linux/include/asm/hw_irq.h:30: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
8139too.c: In function `rtl8139_init_board':
8139too.c:813: warning: implicit declaration of function `init_etherdev'
8139too.c:813: warning: assignment makes pointer from integer without a cast
8139too.c:931: error: structure has no member named `slot_name'
8139too.c:932: error: structure has no member named `slot_name'
8139too.c: In function `rtl8139_init_one':
8139too.c:1053: error: structure has no member named `driver_data'
8139too.c: In function `rtl8139_remove_one':
8139too.c:1136: error: structure has no member named `driver_data'
8139too.c:1164: error: structure has no member named `driver_data'
8139too.c: In function `rtl8139_open':
8139too.c:1382: warning: passing arg 2 of `request_irq' from incompatible pointer type
8139too.c: In function `rtl8139CP_open':
8139too.c:1570: warning: passing arg 2 of `request_irq' from incompatible pointer type
8139too.c: In function `rtl8139_thread':
8139too.c:1926: error: too few arguments to function `daemonize'
8139too.c:1927: error: structure has no member named `sigmask_lock'
8139too.c:1929: error: too many arguments to function `recalc_sigpending'
8139too.c:1930: error: structure has no member named `sigmask_lock'
8139too.c: In function `rtl8139_set_rx_mode':
8139too.c:2994: warning: passing arg 2 of `set_bit' from incompatible pointer type
8139too.c: In function `rtl8139_suspend':
8139too.c:3019: error: structure has no member named `driver_data'
8139too.c: In function `rtl8139_resume':
8139too.c:3051: error: structure has no member named `driver_data'
8139too.c: At top level:
8139too.c:3074: warning: initialization from incompatible pointer type
make: *** [8139too.o] Error 1

Last edited by dmartins; 05-07-2006 at 01:32 PM.
 
Old 05-07-2006, 10:29 PM   #9
hellmet
Member
 
Registered: May 2006
Location: Hyderabad,India
Distribution: Ubuntu
Posts: 35

Original Poster
Rep: Reputation: Disabled
I read it in the very Forum that addin a line to the 8139too.c and then compiling it
wud enable support for RTL8139D NICs.
Thats what I want to do.
I can't edit an object file rite?
 
Old 05-08-2006, 03:59 AM   #10
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
There is no way I would download a file from megauploads.com and build it on my computer. Especially from someone with less than a dozen posts here. But if you could post the patch to 8139too.c I might try building using my own 2.6 src.
 
Old 05-08-2006, 05:30 AM   #11
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
No reason to download and build, this is from November 2001, it's a backport from the 2.4.18 kernel source for Red Hat Linux 7.1/2 kernels, from the readme.txt file for the patch;

Quote:
Comments for 8139too.c version 1.0.1
2001/11/21 by ShuChen Shao

1.It is able to support RTL8139C+ PCI ethernet chips in RedHat 7.2 (kernel 2.4.7).
In addition, it is backward compatiable with RedHat 7.1 (kerne 2.4.2).
Support for the RTL8139C+ PCI ethernet chips have been included in the 2.6 kernel series since 2.6.0 was released.
 
  


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
module compile failure hqking Linux - General 1 09-02-2005 04:53 PM
compile 2.6.10 with sata, sg as a module disleyg Debian 2 02-14-2005 07:18 PM
Compile A Single Module leohuang Linux - General 4 05-02-2004 06:20 AM
Do We Have to Compile ALSA As a Module? johnleemk Linux - Hardware 1 02-04-2004 01:06 PM
compile and install only one module dimopule Linux - Newbie 1 10-10-2003 09:56 PM

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

All times are GMT -5. The time now is 07:15 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