[Asterisk-Users] some success with linux 2.6 and wcfxo

Ray Russell Reese III russ at zerotech.net
Mon Dec 8 19:35:17 MST 2003


I've attempted to get zaptel to compile with no success.  zaptel.c won't
compile because of many references to devfs, which from my understanding
was stipped down to nothing in 2.6 in favor of udev. Following is a
snipit of some of the devfs errors:

root at milton:~/zaptel# make -C /usr/src/linux SUBDIRS=`pwd` modules 2>&1
| more
make: Entering directory `/usr/src/linux-2.6.0-test11'
*** Warning: Overriding SUBDIRS on the command line can cause
***          inconsistencies
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CC [M]  /root/zaptel/zaptel.o
In file included from /root/zaptel/zaptel.c:79:
/root/zaptel/zaptel.h:1068: error: syntax error before "devfs_handle_t"
/root/zaptel/zaptel.h:1068: warning: no semicolon at end of struct or
union
/root/zaptel/zaptel.h:1069: warning: type defaults to `int' in
declaration of `fhandle_symlink'
/root/zaptel/zaptel.h:1069: warning: data definition has no type or
storage class
/root/zaptel/zaptel.h:1198: error: syntax error before "devfs_handle_t"
/root/zaptel/zaptel.h:1198: warning: no semicolon at end of struct or
union
/root/zaptel/zaptel.h:1207: error: syntax error before '}' token

I've applied the patch in your earlier post, plus the Makefile. Is there
anything specific I'm missing? Thanks.

- Russ


On Mon, 2003-12-08 at 04:08, Tristan 'Minty' Colgate wrote:
> The original mail with the Makefile and my comments has been held up waiting
> for mdoeration, it's probably a little to big. Here is just the makefile
> without all my previous ranting.
> 
> From the normal zaptel source, do a normal build, backup tones.h and the
> makefile, do a make clean, moves tones.h back, then copy this Makefile over the
> top of the old one, you can then use something like...
> 
> make -C /usr/src/linux SUBDIRS=`pwd` modules
> 
> That should build your .ko files, modules_install doesn't work, it all assumes
> your kernel source is in /usr/src/linux (it should really be using
> /lib/modules/`uname -r`/build, but I haven't tested that).
> 
> 
> BASEADDR=0xd0000
> DEFAULTZONE=0
> CFLAGS+=-DSTANDALONE_ZAPATA
> CFLAGS+=-I/usr/src/linux -I/usr/src/linux/include/asm/mach-default -I. -O4 -g -Wall -DBUILDING_TONEZONE #-DTONEZONE_DRIVER
> CFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi)
> CFLAGS+=-DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net \
> 	-Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net
> CFLAGS+=-DECHO_CAN_MARK2
> CFLAGS+=-DTORMENTA_BASE=$(BASEADDR)
> 
> CFLAGS+=-DDEFAULT_TONE_ZONE=$(DEFAULTZONE)
> CFLAGS+=-D__SMP__
> 
> obj-m += zaptel.o wcfxo.o wcfxs.o ztdynamic.o ztd-eth.o wct1xxp.o wct4xxp.o ztdummy.o
> PRIMARY=wcfxo
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list