[asterisk-users] Which oslec.h should will work?
sean darcy
seandarcy2 at gmail.com
Mon Sep 21 21:52:35 CDT 2009
Trying to build oslec. Following dahdi-linux README I copy
drivers/staging/echo to dahdi-linux/drivers/staging. I uncomment the 2
oslec lines in drivers/dahdi/Kbuild.
That doesn't work:
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.c:33:35:
error: ../staging/echo/oslec.h: No such file or directory
So:
wget http://svn.astfin.org/software/oslec/trunk/kernel/oslec.h
in drivers/staging/echo
Still no go:
CC [M]
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.o
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.c:
In function ‘echo_can_free’:
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.c:70:
error: implicit declaration of function ‘oslec_free’
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.c:
In function ‘echo_can_process’:
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.c:82:
error: implicit declaration of function ‘oslec_update’
..............
So I get it from kernel git:
http://git.kernel.org/?p=linux/kernel/git/eranian/linux-2.6.git;a=blob;f=drivers/staging/echo/oslec.h;h=913fc51d857fb4f19abf0f9deb390fc5a9325f4c;hb=17f8c114944de27e2fd9402fa2a75bccdac18502
That doesn't work:
CC [M]
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.o
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.c:40:
error: conflicting types for ‘echo_can_create’
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/../staging/echo/oslec.h:51:
note: previous declaration of ‘echo_can_create’ was here
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.c:42:
error: conflicting types for ‘echo_can_free’
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/../staging/echo/oslec.h:56:
note: previous declaration of ‘echo_can_free’ was here
Also tried:
wget http://svn.astfin.org/software/oslec/trunk/kernel-test/oslec.h
But on install:
Building modules, stage 2.
MODPOST 31 modules
WARNING: could not find
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/vpmadt032_loader/.vpmadt032_x86_64.o.cmd
for
/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_64.o
WARNING: "oslec_free"
[/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.ko]
undefined!
WARNING: "oslec_update"
[/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.ko]
undefined!
WARNING: "oslec_create"
[/home/asterisk/build/dahdi/svn/dahdi-linux/drivers/dahdi/dahdi_echocan_oslec.ko]
undefined!
.............
DEPMOD 2.6.31-33.fc12.x86_64
WARNING: /lib/modules/2.6.31-33.fc12.x86_64/dahdi/dahdi_echocan_oslec.ko
needs unknown symbol oslec_create
WARNING: /lib/modules/2.6.31-33.fc12.x86_64/dahdi/dahdi_echocan_oslec.ko
needs unknown symbol oslec_update
WARNING: /lib/modules/2.6.31-33.fc12.x86_64/dahdi/dahdi_echocan_oslec.ko
needs unknown symbol oslec_free
............
gcc-4.4.1.
Any suggestions appreciated.
sean
More information about the asterisk-users
mailing list