tc1000 Ubuntu installation continues

From: Jeffrey Gordon <jeffreygordonchachacha_at_yahoo.com>
Date: Fri, 23 Jun 2006 17:20:45 -0700

Okay, I'm still struggling with this. Vadim pointed me to the gentoo on
tc1000 how-to which is what I've been following. I think my only
problem is that I can't get fpi2002-0.5 to compile.

If I run:
uname -r

I get:
2.6.15-25-386

Which makes me think that I need to run the 2.6 version of the Makefile.
If I do, it tells me:
make -C /lib/modules/2.6.15-25-386/build
SUBDIRS=/home/jeffrey/Desktop/fpi2002-0.5 modules
make: *** /lib/modules/2.6.15-25-386/build: No such file or directory.
Stop.
make: *** [fpi2002.ko] Error 2

So I mkdir the directory (I know there's probably a larger underlying
problem here.)

make then gives me:

make -C /lib/modules/2.6.15-25-386/build
SUBDIRS=/home/jeffrey/Desktop/fpi2002-0.5 modules
make[1]: Entering directory `/lib/modules/2.6.15-25-683/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.15-25-683/build'
make: *** [fpi2002.ko] Error 2

If I run make on the original Makefile from the achive, I get:

cc -O2 -Wall -D__KERNEL__ -DMODULE -fomit-frame-pointer
-I/lib/modules/2.6.15-25-386/build/include -I/usr/src/linux/include
-fno-strict-aliasing -c fpi2002.c -o fpi2002.o
In file included from /usr/include/linux/sched.h:16,
                 from /usr/include/linux/module.h:9,
                 from fpi2002.c:27:
/usr/include/linux/signal.h:2:2: warning: #warning "You should include
<signal.h>. This time I will do it for you."
In file included from /usr/include/linux/resource.h:4,
                 from /usr/include/linux/sched.h:79,
                 from /usr/include/linux/module.h:9,
                 from fpi2002.c:27:
/usr/include/linux/time.h:9: error: redefinition of 'struct timespec'
/usr/include/linux/time.h:15: error: redefinition of 'struct timeval'
/usr/include/linux/time.h:20: error: redefinition of 'struct timezone'
/usr/include/linux/time.h:47: error: redefinition of 'struct itimerval'
In file included from fpi2002.c:27:
/usr/include/linux/module.h:41: error: field 'attr' has incomplete type
/usr/include/linux/module.h:49: error: field 'kobj' has incomplete type
In file included from fpi2002.c:29:
/usr/include/linux/config.h:1:2: error: #error "Compilation aborted.
Please read the FAQ for linux-libc-headers package."
/usr/include/linux/config.h:2:2: error: #error "(can be found at
http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/)"
fpi2002.c:39: error: syntax error before 'driver_lock'
fpi2002.c:39: warning: type defaults to 'int' in declaration of
'driver_lock'
fpi2002.c:39: error: 'SPIN_LOCK_UNLOCKED' undeclared here (not in a
function)
fpi2002.c:39: warning: data definition has no type or storage class
fpi2002.c:44: warning: 'struct pci_dev' declared inside parameter list
fpi2002.c:44: warning: its scope is only this definition or declaration,
which is probably not what you want
fpi2002.c: In function 'enable_superio_config':
fpi2002.c:47: warning: implicit declaration of function
'pci_read_config_byte'
fpi2002.c:53: warning: implicit declaration of function
'pci_write_config_byte'
fpi2002.c: In function 'superio_config_read':
fpi2002.c:58: warning: implicit declaration of function 'outb'
fpi2002.c:59: warning: implicit declaration of function 'inb'
fpi2002.c: In function 'fpi2002_init':
fpi2002.c:74: warning: implicit declaration of function
'pci_find_device'
fpi2002.c:74: warning: assignment makes pointer from integer without a
cast
fpi2002.c:78: warning: implicit declaration of function 'spin_lock_irq'
fpi2002.c:84: warning: passing argument 1 of 'enable_superio_config'
from incompatible pointer type
fpi2002.c:107: warning: passing argument 1 of 'enable_superio_config'
from incompatible pointer type
fpi2002.c:110: warning: implicit declaration of function
'spin_unlock_irq'
fpi2002.c:114: warning: implicit declaration of function 'printk'
fpi2002.c:114: error: 'KERN_INFO' undeclared (first use in this
function)
fpi2002.c:114: error: (Each undeclared identifier is reported only once
fpi2002.c:114: error: for each function it appears in.)
fpi2002.c:114: error: syntax error before string constant
fpi2002.c:118: error: syntax error before string constant
fpi2002.c: In function 'fpi2002_exit':
fpi2002.c:133: warning: assignment makes pointer from integer without a
cast
fpi2002.c:144: warning: passing argument 1 of 'enable_superio_config'
from incompatible pointer type
fpi2002.c:156: warning: passing argument 1 of 'enable_superio_config'
from incompatible pointer type
fpi2002.c:163: error: 'KERN_INFO' undeclared (first use in this
function)
fpi2002.c:163: error: syntax error before string constant
make: *** [fpi2002.o] Error 1

Can anyone help?
Received on Fri Jun 23 2006 - 20:20:58 EDT

This archive was generated by hypermail 2.2.0 : Fri Jun 23 2006 - 20:21:24 EDT