Re: Problem writing a device driver

Petko Manolov (petkan@varel.bg)
Thu, 10 Sep 1998 09:43:32 +0000


Colin Coe wrote:
>
> Hi all
>
> I have started work on a device driver for the ACL family of multi-port
> 'intelligent' serial cards. This is the first time I have attempted to
> do anything like this, so I have bought the following books: Linux
> Device Drivers; Linux Kernel Internals; and Operating System Concepts.
>
> After I have compiled 'acl_main.c' with 'gcc -c acl_main.c', I run
> 'insmod acl_main.o' and get the following errors:
> __outbc_p undefined
> __outb_p undefined
> __outbc undefined
> __outb undefined
> Loading failed! The module symbols (from linux-2.0.31) don't match your
> linux-2.0.31
>
> Please help! I have read these books, the ACL technical reference, but
> I am still having problems...

You have forgot to add two defines in your command line:
-D__KERNEL__ -DMODULE
Former is needed for all kernel stuff and latter is needed for
all modules.

Petkan

-- 
Petko Manolov - petkan@varel.bg
http://www.varel.bg/~petkan

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/faq.html