[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [bluetooth-dev] Adding BT to Kernel tree

i added this extern int bt_init(void); as well 
compiltion was ok.
but I am not sure about the result of grep
is it ok??
-----Original Message-----
From: owner-bluetooth-dev@xxxxxxx.com
[mailto:owner-bluetooth-dev@xxxxxxx.com]On Behalf Of Marc Haase
Sent: Monday, May 21, 2001 2:55 PM
To: V Kugan
Cc: bluetooth-dev@xxxxxxx.com
Subject: Re: [bluetooth-dev] Adding BT to Kernel tree

Hi Kugan,

i tried the same, but I can't compile the kernel. 

> When I add the Axis stack, Modify the Makefile, add
> bt_init() to the char/misc.c

Did you add an additional  
extern int bt_init(void);
declaration or did you include bluetooth.h or ...

When I compile the kernel I get that error:

ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o \
        --start-group \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
        fs/filesystems.a \
        net/network.a \
        drivers/block/block.a drivers/char/char.a drivers/misc/misc.a
drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a
drivers/pci/pci.a drivers/net/fc/fc.a drivers/pnp/pnp.a
drivers/video/video.a drivers/net/hamradio/hamradio.a \
        /usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a
/usr/src/linux/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
drivers/char/char.a(misc.o): In function `misc_init':
misc.o(.text.init+0x32): undefined reference to `bt_init'
make: *** [vmlinux] Error 1

Is there a common header file for statical linked kernel modules.


To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com