Hi all,   Sorry to have to e-mail this question out to everyone, but I have 
asked it on linuxquestions.org and haven't received much help (and I don't have 
access to IRC behind my proxy).  I have a relatively clean LFS build and I'm 
working on putting some BLFS packages on.  My network card (a Realtek 
RTL8168/8111) had never been automatically recognized, so I tried to install 
the drivers provided by Realtek, but I had the following output after "make 
modules" that seems to indicate some unhappy 
errors:********************************************************
                        
                                make -C src/ modules
make[1]: Entering directory `/usr/src/r1000_v1.05/src'
make -C /lib/modules/2.6.16.27/build SUBDIRS=/usr/src/r1000_v1.05/src modules
make[2]: Entering directory `/sources/linux-2.6.16.27'

  WARNING: Symbol version dump /sources/linux-2.6.16.27/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /usr/src/r1000_v1.05/src/r1000_n.o
In file included from include/linux/module.h:10,
                 from /usr/src/r1000_v1.05/src/r1000.h:1,
                 from /usr/src/r1000_v1.05/src/r1000_n.c:5:
include/linux/sched.h:4:36: error: asm/param.h: No such file or directory
In file included from include/linux/types.h:15,
                 from include/linux/capability.h:16,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /usr/src/r1000_v1.05/src/r1000.h:1,
                 from /usr/src/r1000_v1.05/src/r1000_n.c:5:
include/linux/posix_types.h:47:29: error: asm/posix_types.h: No such file or 
directory
In file included from include/linux/capability.h:16,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /usr/src/r1000_v1.05/src/r1000.h:1,
                 from /usr/src/r1000_v1.05/src/r1000_n.c:5:
include/linux/types.h:16:23: error: asm/types.h: No such file or directory
In file included from include/linux/capability.h:16,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /usr/src/r1000_v1.05/src/r1000.h:1,
                 from /usr/src/r1000_v1.05/src/r1000_n.c:5:
include/linux/types.h:20: error: syntax error before '__kernel_dev_t'
include/linux/types.h:20: warning: type defaults to 'int' in declaration of 
'__kernel_dev_t'
include/linux/types.h:20: warning: data definition has no type or storage class
include/linux/types.h:23: error: syntax error before 'dev_t'
include/linux/types.h:23: warning: type defaults to 'int' in declaration of 
'dev_t'
include/linux/types.h:23: warning: data definition has no type or storage class
include/linux/types.h:24: error: syntax error before 'ino_t'
include/linux/types.h:24: warning: type defaults to 'int' in declaration of 
'ino_t'
include/linux/types.h:24: warning: data definition has no type or storage class
include/linux/types.h:25: error: syntax error before 'mode_t'
include/linux/types.h:25: warning: type defaults to 'int' in declaration of 
'mode_t'
include/linux/types.h:25: warning: data definition has no type or storage class
include/linux/types.h:26: error: syntax error before 'nlink_t'
include/linux/types.h:26: warning: type defaults to 'int' in declaration of 
'nlink_t'
include/linux/types.h:26: warning: data definition has no type or storage class
include/linux/types.h:27: error: syntax error before 'off_t'
include/linux/types.h:27: warning: type defaults to 'int' in declaration of 
'off_t'

/usr/src/r1000_v1.05/src/r1000_n.c:1698: error: invalid type argument of '->'
/usr/src/r1000_v1.05/src/r1000_n.c:1698: error: 'TIF_NEED_RESCHED' undeclared 
(first use in this function)
/usr/src/r1000_v1.05/src/r1000_n.c:1698: warning: passing argument 1 of
'test_ti_thread_flag' makes pointer from integer without a cast
/usr/src/r1000_v1.05/src/r1000_n.c:1698: error: dereferencing pointer to 
incomplete type
/usr/src/r1000_v1.05/src/r1000_n.c: In function 'r1000_get_stats':
/usr/src/r1000_v1.05/src/r1000_n.c:1705: error: dereferencing pointer to 
incomplete type
/usr/src/r1000_v1.05/src/r1000_n.c:1707: error: dereferencing pointer to 
incomplete type

... (lots more stuff like that) ...

make[3]: *** [/usr/src/r1000_v1.05/src/r1000_n.o] Error 1
make[2]: *** [_module_/usr/src/r1000_v1.05/src] Error 2
make[2]: Leaving directory `/sources/linux-2.6.16.27'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/r1000_v1.05/src'
make: *** [modules] Error 
2********************************************************It looks to me like 
the kernel headers aren't accessible or something like that, but I believe I 
followed all the steps in the book properly (and for good measure, I 
re-installed the kernel headers package).  Somebody on linuxquestions.org 
mentioned that the kernel is supposed to support this driver through r8169, but 
this doesn't seem to work for my card (the 8168) in 2.6.16.27.  However, after 
seeing some people mention that support has improved in later kernels, I tried 
installing later versions.  After finally sorting out issues with my SATA hard 
drive not being recognized, I can run the 2.6.21.1 kernel and it will recognize 
my network card using the built-in r8169 driver.  However, it always says 
"r8169: eth0: link down", and I can't get it to say anything else.  Others have 
mentioned that support has improved in 2.6.22, but I haven't been able to get 
this kernel running yet due to problems similar to the ones I had with SATA 
earlier.  I figure at this point I will get better NIC support if I can just 
find a way to install the Realtek driver.So, does anybody know why these sorts 
of errors might be occurring, and what I can do to fix them?  I assume it's 
preferable to keep the 2.6.16.27 kernel in favor of upgrading to a new one due 
to compatibility issues, so if I can get the Realtek driver running, that'd be 
awesome.  Also, the driver I'm referring to is the r1000 v1.05 package, 
downloadable from: 
http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=falseThanks
 in advance for any help you can offer!- Daniel
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to