LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-27-2004, 11:01 PM   #1
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Rep: Reputation: 15
compiling via-rhine module problem


Hi all,

I want to compile the latest via-rhine driver from the scyld site. I download the via-rhine.c, kern_compat.h, pci-scan.h, pci-scan.c as instructed here and put it all under /usr/src/linux/drivers/net directory (by saving my original via-rhine.c file first).

From inside the directory I do what the instruction suggested by running the following command:

gcc -DMOUDLE -D__KERNEL__ -O6 -I/usr/src/linux/include -include /usr/src/linux/include/linux/modversions.h -c via-rhine.c

but I got the following error (I just copy paste a few first line, the whole thing is quite long):

Quote:
via-rhine.c:97: warning: `struct drv_id_info' declared inside parameter list
via-rhine.c:97: warning: its scope is only this definition or declaration, which is probably not what you want
via-rhine.c:98: warning: `struct drv_id_info' declared inside parameter list
via-rhine.c: In function `pci_drv_register':
via-rhine.c:158: error: dereferencing pointer to incomplete type
via-rhine.c:164: error: dereferencing pointer to incomplete type
via-rhine.c:168: error: dereferencing pointer to incomplete type
via-rhine.c:183: error: invalid use of undefined type `struct pci_id_info'
via-rhine.c:183: error: dereferencing pointer to incomplete type
via-rhine.c:184: error: invalid use of undefined type `struct pci_id_info'
via-rhine.c:184: error: dereferencing pointer to incomplete type
.
.
.
I then decide to let slackware compile the driver for me. I save my .config file, do make clean and make mrproper, put back my orginal .config file, then do make oldconfig; make dep; make modules. But What I got is this (first few lines only):

Quote:
make[2]: Entering directory `/usr/src/linux-2.4.27/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.27/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.27/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=via_rhine -c -o via-rhine.o via-rhine.c
via-rhine.c:97: warning: `struct drv_id_info' declared inside parameter list
via-rhine.c:97: warning: its scope is only this definition or declaration, which is probably not what you want
via-rhine.c:98: warning: `struct drv_id_info' declared inside parameter list
via-rhine.c:108: error: `pci_drv_register' undeclared here (not in a function)
via-rhine.c:108: error: initializer element is not constant
via-rhine.c:108: error: (near initialization for `__ksymtab_pci_drv_register.value')
via-rhine.c:109: error: `pci_drv_unregister' undeclared here (not in a function)
via-rhine.c:109: error: initializer element is not constant
via-rhine.c:109: error: (near initialization for `__ksymtab_pci_drv_unregister.value')
via-rhine.c:110: error: `acpi_wake' undeclared here (not in a function)
via-rhine.c:110: error: initializer element is not constant
via-rhine.c:110: error: (near initialization for `__ksymtab_acpi_wake.value')
via-rhine.c:111: error: `acpi_set_pwr_state' undeclared here (not in a function)
via-rhine.c:111: error: initializer element is not constant
via-rhine.c:111: error: (near initialization for `__ksymtab_acpi_set_pwr_state.value')
via-rhine.c: In function `pci_drv_register':
via-rhine.c:158: error: dereferencing pointer to incomplete type
via-rhine.c:164: error: dereferencing pointer to incomplete type
via-rhine.c:168: error: dereferencing pointer to incomplete type
via-rhine.c:183: error: invalid use of undefined type `struct pci_id_info'
via-rhine.c:183: error: dereferencing pointer to incomplete type
via-rhine.c:184: error: invalid use of undefined type `struct pci_id_info'
via-rhine.c:184: error: dereferencing pointer to incomplete type
.
.
.
I really don't know what is going on. I belive that the compile command I used to compile this module under RH9 work with no problem. Any C's guru out there can help me with this ?

Thanks a million in advance.

Last edited by aherrys; 11-27-2004 at 11:04 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with compiling a simple module pele21 Linux - Software 2 04-28-2005 02:29 AM
Problem with compiling module under slackware Altos Programming 0 02-22-2003 12:46 PM
Problem compiling demonstration module using 2.4.18 johnvoisey Linux - Software 1 06-14-2002 03:14 AM
via-rhine module joeey21 Linux - Networking 3 08-20-2001 08:23 PM
Via-Rhine Module Won't Install? hismeat Linux - Networking 0 05-04-2001 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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