[Asterisk-bsd] [OpenBSD 3.7] Zaptel/wcfxo module Asterisk

rene_404 rene_404 at thekrofties.net
Mon Aug 15 07:11:14 CDT 2005


Hi,

Currently i'm trying to compile the zaptel drivers under OpenBSD 3.7 for the 
X100P Clone card.I've already got an loading zaptel module, using zaptel-
freebsd-0.8 and the OpenBSD makefile from 0.9:

# gmake -f Makefile.openbsd
cc -D_KERNEL -I/sys -o gendigits gendigits.c -lm
./gendigits
cc -D_KERNEL -I/sys   -c -o zaptel.o zaptel.c
ld -r -o mod_zaptel.o  zaptel.o

# gmake -f Makefile.openbsd load
modload -o mod_zaptel -emod_zaptel mod_zaptel.o
Module loaded as ID 0
Aug 15 13:33:07 division /bsd: Zapata Telephony Interface Registered on 
major 196
Aug 15 13:33:07 division /bsd: Zapata Telephony Interface Registered on 
major 196
Aug 15 13:33:07 division /bsd: DDB symbols added: 246832 bytes
Aug 15 13:33:07 division /bsd: DDB symbols added: 246832 bytes

Now I want to compile the wcfxo module, when I used the version from Freebsd 
I got alot compile errors. So I tried the netbsd-20050404 wcfxo version, 
still some compile errors but not so many:

# cc -D_KERNEL -I/sys -I/usr/include -I/usr/src/sys/arch/ -I../zaptel -g -c -
o wcfxo.o wcfxo.c
wcfxo.c:38: error: syntax error before numeric constant
In file included from ../zaptel/zaptel.h:37,
                 from wcfxo.c:55:
../zaptel/os.h:78: warning: `struct stat' declared inside parameter list
../zaptel/os.h:78: warning: its scope is only this definition or 
declaration, which is probably not what you want
wcfxo.c:105: error: syntax error before "sizeof"
wcfxo.c:106: error: `wcfxo_match' redeclared as different kind of symbol
wcfxo.c:68: error: previous declaration of `wcfxo_match'
wcfxo.c:106: error: `wcfxo_attach' redeclared as different kind of symbol
wcfxo.c:69: error: previous declaration of `wcfxo_attach'
wcfxo.c:106: error: `wcfxo_detach' redeclared as different kind of symbol
wcfxo.c:70: error: previous declaration of `wcfxo_detach'
wcfxo.c:106: error: syntax error before numeric constant
wcfxo.c:129: error: `wcfxo_match' redeclared as different kind of symbol
wcfxo.c:106: error: previous declaration of `wcfxo_match'
wcfxo.c:705: error: `wcfxo_attach' redeclared as different kind of symbol
wcfxo.c:106: error: previous declaration of `wcfxo_attach'
wcfxo.c: In function `wcfxo_attach':
wcfxo.c:755: error: too few arguments to function `pci_mapreg_map'
wcfxo.c:777: error: too few arguments to function `pci_intr_establish'
wcfxo.c: At top level:
wcfxo.c:849: error: `wcfxo_detach' redeclared as different kind of symbol
wcfxo.c:106: error: previous declaration of `wcfxo_detach'
wcfxo.c:69: warning: `wcfxo_attach' used but never defined
wcfxo.c:70: warning: `wcfxo_detach' used but never defined

Is there a way to make the wcfxo module working?

THanks for the help.

Rene
The Netherlands

http://www.portaone.com/~sobomax/zaptel-freebsd-0.8.tar.gz
http://www.tastylime.net/netbsd/zaptel/zaptel-netbsd-20050404.tar.bz2


More information about the Asterisk-BSD mailing list