You are not logged in.

#1 2008-07-12 20:47:28

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Really stumped: compiling or pkgbuild help needed

Hi, guys... hopefully, this is the correct forum for this.  If not, perhaps a moderator will be kind enough to move it.

I'm not really familiar or had any experience with pkgbuilds other than downloading a few from AUR that have worked fine when I tried them, but I'm having one heck of a time trying to build one for my Realtek LAN controller, or by simply compiling the driver for it directly.  So, I'm wondering if it is possible to make an Arch pkgbuild for a LAN driver, or does it have to be compiled independently?

The controller uses the RTL8111c chip which doesn't work with the r8169 driver that is already included in the default kernel.

The Realtek website says to use their r8168 driver for this controller:   ftp://210.51.181.211/cn/nic/r8168-8.006.00.tar.bz2

I've tried it numerous times, but can't get it to compile:

Here are the errors given when trying to compile:

# make clean modules
make -C src/ clean
make[1]: Entering directory `/usr/src/r8168-8.006.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symversrset
make[1]: Leaving directory `/usr/src/r8168-8.006.00/src'
make -C src/ modules
make[1]: Entering directory `/usr/src/r8168-8.006.00/src'
make -C /lib/modules/2.6.25-ARCH/build SUBDIRS=/usr/src/r8168-8.006.00/src modules
make[2]: Entering directory `/usr/src/linux-2.6.25-ARCH' CC [M]  /usr/src/r8168-8.006.00/src/r8168_n.o
/usr/src/r8168-8.006.00/src/r8168_n.c: In function 'rtl8168_init_board':
/usr/src/r8168-8.006.00/src/r8168_n.c:2300: error: implicit declaration of function 'SET_MODULE_OWNER'
/usr/src/r8168-8.006.00/src/r8168_n.c: In function 'rtl8168_init_one':
/usr/src/r8168-8.006.00/src/r8168_n.c:2600: error: 'struct net_device' has no member named 'poll'
/usr/src/r8168-8.006.00/src/r8168_n.c:2601: error: 'struct net_device' has no member named 'weight'
/usr/src/r8168-8.006.00/src/r8168_n.c: In function 'rtl8168_rx_interrupt':
/usr/src/r8168-8.006.00/src/r8168_n.c:4029: error: 'struct net_device' has no member named 'quota'
/usr/src/r8168-8.006.00/src/r8168_n.c:4029: warning: type defaults to 'int' in declaration of '_y'
/usr/src/r8168-8.006.00/src/r8168_n.c:4029: error: 'struct net_device' has no member named 'quota'
/usr/src/r8168-8.006.00/src/r8168_n.c:4029: warning: comparison of distinct pointer types lacks a cast
/usr/src/r8168-8.006.00/src/r8168_n.c: In function 'rtl8168_interrupt':
/usr/src/r8168-8.006.00/src/r8168_n.c:4225: error: too few arguments to function 'netif_rx_schedule_prep'
/usr/src/r8168-8.006.00/src/r8168_n.c:4226: error: too few arguments to function '__netif_rx_schedule'
/usr/src/r8168-8.006.00/src/r8168_n.c: In function 'rtl8168_poll':
/usr/src/r8168-8.006.00/src/r8168_n.c:4274: error: 'struct net_device' has no member named 'quota'
/usr/src/r8168-8.006.00/src/r8168_n.c:4274: warning: type defaults to 'int' in declaration of '_y'
/usr/src/r8168-8.006.00/src/r8168_n.c:4274: error: 'struct net_device' has no member named 'quota'
/usr/src/r8168-8.006.00/src/r8168_n.c:4282: error: 'struct net_device' has no member named 'quota'
/usr/src/r8168-8.006.00/src/r8168_n.c:4285: error: too few arguments to function 'netif_rx_complete'
make[3]: *** [/usr/src/r8168-8.006.00/src/r8168_n.o] Error 1
make[2]: *** [_module_/usr/src/r8168-8.006.00/src] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.25-ARCH'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/r8168-8.006.00/src'
make: *** [modules] Error 2

Hope the errors are formatted correctly (it was all scrambled when I opened it with NotePad under WinXP).

Do any of you know what these errors mean, what I'm doing wrong, or what packages might be needed in order to get the driver properly installed?

Can a pkgbuild be created and used for this purpose if I have the downloaded source package already in my pkgbuild directory?  I can't download any packages once in Arch (no connection to net) but I can download them under Windows, then carry them over to Arch to complete the driver install so I can have Internet again.

Any help would really be appreciated because Windows XP is driving me nutty.

Thanks for your help.


oz

Offline

#2 2008-07-12 21:46:34

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: Really stumped: compiling or pkgbuild help needed

make clean modules?
try "make clean" or "make distclean" and then make modules. (but maybe i´m wrong...)

Last edited by DonVla (2008-07-12 21:48:16)

Offline

#3 2008-07-12 22:43:17

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: Really stumped: compiling or pkgbuild help needed

DonVla wrote:

make clean modules?
try "make clean" or "make distclean" and then make modules. (but maybe i´m wrong...)

No, you may very well be right, but I got that straight out of the 'readme' file that was included with the driver source package:

# make clean modules

I'll try it the other two ways you mentioned as soon as I'm able to get back into Arch.

Thanks for the suggestions.


oz

Offline

#4 2008-07-13 00:56:46

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Really stumped: compiling or pkgbuild help needed

The release notes for version 8.004.00, dated 2007/11/21, say "support linux kernel 2.6.23". The notes for the 8.005.00 and 8.006.00 releases do not specify support for any later kernel versions. You should search for a kernel 2.6.25 patch for it.

Offline

Board footer

Powered by FluxBB