[Asterisk-bsd] Zaptel 1.2.1 under freebsd 6.0 stable...compiles ?

Calvin Hendryx-Parker calvin at sixfeetup.com
Tue Dec 27 14:03:03 CST 2005


I just installed zaptel this weekend successfully on FreeBSD 5.4.   
I'm so happy to be back on FreeBSD again!

It looks like you are using the drivers from the digium repository.   
I used the ones from https://svn.pbxpress.com:1443/repos/zaptel-bsd  
with no problems at all.  Make sure that you have the kernel source  
on the box when you do it.

Calvin

On Dec 27, 2005, at 2:46 PM, Rob Hendelman Jr wrote:

> I have been searching google/mailling lists for the last hour or two
> and haven't come up with anything concrete.  I'm probably missing
> something.  I'm more than willing to RTFM if someone nudges me in the
> right direction.  I'm trying to compile zaptel-1.2.1 under freebsd6
> stable and am coming up with this:
> =============================
> asterisk# gmake
> -p: not found
> chkconfig: not found
> gcc -I/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB
> -I/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer
> -I/drivers/net/wan -I/include/net   -DSTANDALONE_ZAPATA -o zaptel.o -c
> zaptel.c
> In file included from zaptel.c:40:
> zconfig.h:9:26: linux/config.h: No such file or directory
> zconfig.h:10:27: linux/version.h: No such file or directory
> zconfig.h:72:41: missing binary operator before token "("
> zaptel.c:42:26: linux/kernel.h: No such file or directory
> zaptel.c:43:25: linux/errno.h: No such file or directory
> zaptel.c:44:26: linux/module.h: No such file or directory
> zaptel.c:45:27: linux/proc_fs.h: No such file or directory
> zaptel.c:46:23: linux/pci.h: No such file or directory
> zaptel.c:47:24: linux/init.h: No such file or directory
> zaptel.c:49:24: linux/kmod.h: No such file or directory
> zaptel.c:56:28: linux/ppp_defs.h: No such file or directory
> In file included from zaptel.c:82:
> zaptel.h:45:22: linux/fs.h: No such file or directory
> zaptel.h:47:41: missing binary operator before token "("
> zaptel.h:51:41: missing binary operator before token "("
> In file included from ecdis.h:30,
>                 from zaptel.h:57,
>                 from zaptel.c:82:
> biquad.h:31: error: syntax error before "int32_t"
> biquad.h:42: error: syntax error before "int32_t"
> biquad.h:47: warning: function declaration isn't a prototype
> biquad.h: In function `biquad2_init':
> biquad.h:48: error: `bq' undeclared (first use in this function)
> biquad.h:48: error: (Each undeclared identifier is reported only once
> biquad.h:48: error: for each function it appears in.)
> biquad.h:48: error: `gain' undeclared (first use in this function)
> biquad.h:49: error: `a1' undeclared (first use in this function)
> biquad.h:50: error: `a2' undeclared (first use in this function)
> biquad.h:51: error: `b1' undeclared (first use in this function)
> biquad.h:52: error: `b2' undeclared (first use in this function)
> biquad.h: At top level:
> biquad.h:59: error: syntax error before "biquad2"
> biquad.h:59: error: syntax error before "int16_t"
> biquad.h:60: warning: return type defaults to `int'
> biquad.h:60: warning: function declaration isn't a prototype
> biquad.h: In function `biquad2':
> biquad.h:61: error: syntax error before "y"
> biquad.h:64: error: `z0' undeclared (first use in this function)
> biquad.h:64: error: `sample' undeclared (first use in this function)
> biquad.h:64: error: `bq' undeclared (first use in this function)
> biquad.h:65: error: `y' undeclared (first use in this function)
> In file included from zaptel.h:57,
>                 from zaptel.c:82:
> ecdis.h: In function `echo_can_disable_detector_init':
> ecdis.h:53: error: `int32_t' undeclared (first use in this function)
> ecdis.h: At top level:
> ecdis.h:69: error: syntax error before "int16_t"
> ecdis.h:70: warning: function declaration isn't a prototype
> ecdis.h: In function `echo_can_disable_detector_update':
> ecdis.h:71: error: syntax error before "notched"
> ecdis.h:73: error: `notched' undeclared (first use in this function)
> ecdis.h:73: error: `det' undeclared (first use in this function)
> ecdis.h:73: error: `amp' undeclared (first use in this function)
> ecdis.h:80: warning: implicit declaration of function `abs'
> zaptel.h:68:25: linux/ioctl.h: No such file or directory
> In file included from zaptel.h:165,
>                 from zaptel.c:82:
> kb1ec.h:31:24: linux/slab.h: No such file or directory
> In file included from zaptel.h:165,
>                 from zaptel.c:82:
> kb1ec.h: In function `echo_can_free':
> kb1ec.h:237: warning: implicit declaration of function `kfree'
> kb1ec.h: In function `echo_can_create':
> kb1ec.h:531: warning: implicit declaration of function `kmalloc'
> kb1ec.h:531: error: `GFP_KERNEL' undeclared (first use in this  
> function)
> kb1ec.h:540: warning: implicit declaration of function `memset'
> In file included from zaptel.c:82:
> zaptel.h:923:25: linux/types.h: No such file or directory
> zaptel.h:924:24: linux/poll.h: No such file or directory
> In file included from zaptel.c:82:
> zaptel.h: At top level:
> zaptel.h:954: error: syntax error before "u_char"
> zaptel.h:984: error: syntax error before "spinlock_t"
> zaptel.h:1006: error: syntax error before "u_char"
> zaptel.h:1030: error: syntax error before "u_char"
> zaptel.h:1033: error: syntax error before "wait_queue_head_t"
> zaptel.h:1038: error: syntax error before "wait_queue_head_t"
> zaptel.h:1045: error: syntax error before "wait_queue_head_t"
> zaptel.h:1084: error: syntax error before "wait_queue_head_t"
> zaptel.h:1222: error: syntax error before "spinlock_t"
> zaptel.h:1243: error: syntax error before "wait_queue_head_t"
> zaptel.h:1418: error: syntax error before "__zt_lin2mu"
> zaptel.h:1418: warning: type defaults to `int' in declaration of  
> `__zt_lin2mu'
> zaptel.h:1418: warning: data definition has no type or storage class
> zaptel.h:1419: error: syntax error before "__zt_lin2a"
> zaptel.h:1419: warning: type defaults to `int' in declaration of  
> `__zt_lin2a'
> zaptel.h:1419: warning: data definition has no type or storage class
> zaptel.c:120: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:120: warning: parameter names (without types) in function  
> declaration
> zaptel.c:120: warning: data definition has no type or storage class
> zaptel.c:121: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:121: warning: parameter names (without types) in function  
> declaration
> zaptel.c:121: warning: data definition has no type or storage class
> zaptel.c:122: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:122: warning: parameter names (without types) in function  
> declaration
> zaptel.c:122: warning: data definition has no type or storage class
> zaptel.c:123: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:123: warning: parameter names (without types) in function  
> declaration
> zaptel.c:123: warning: data definition has no type or storage class
> zaptel.c:124: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:124: warning: parameter names (without types) in function  
> declaration
> zaptel.c:124: warning: data definition has no type or storage class
> zaptel.c:125: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:125: warning: parameter names (without types) in function  
> declaration
> zaptel.c:125: warning: data definition has no type or storage class
> zaptel.c:130: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:130: warning: parameter names (without types) in function  
> declaration
> zaptel.c:130: warning: data definition has no type or storage class
> zaptel.c:131: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:131: warning: parameter names (without types) in function  
> declaration
> zaptel.c:131: warning: data definition has no type or storage class
> zaptel.c:133: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:133: warning: parameter names (without types) in function  
> declaration
> zaptel.c:133: warning: data definition has no type or storage class
> zaptel.c:134: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:134: warning: parameter names (without types) in function  
> declaration
> zaptel.c:134: warning: data definition has no type or storage class
> zaptel.c:135: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:135: warning: parameter names (without types) in function  
> declaration
> zaptel.c:135: warning: data definition has no type or storage class
> zaptel.c:136: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:136: warning: parameter names (without types) in function  
> declaration
> zaptel.c:136: warning: data definition has no type or storage class
> zaptel.c:137: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:137: warning: parameter names (without types) in function  
> declaration
> zaptel.c:137: warning: data definition has no type or storage class
> zaptel.c:138: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:138: warning: parameter names (without types) in function  
> declaration
> zaptel.c:138: warning: data definition has no type or storage class
> zaptel.c:139: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:139: warning: parameter names (without types) in function  
> declaration
> zaptel.c:139: warning: data definition has no type or storage class
> zaptel.c:140: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:140: warning: parameter names (without types) in function  
> declaration
> zaptel.c:140: warning: data definition has no type or storage class
> zaptel.c:141: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:141: warning: parameter names (without types) in function  
> declaration
> zaptel.c:141: warning: data definition has no type or storage class
> zaptel.c:142: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:142: warning: parameter names (without types) in function  
> declaration
> zaptel.c:142: warning: data definition has no type or storage class
> zaptel.c:143: warning: type defaults to `int' in declaration of  
> `EXPORT_SYMBOL'
> zaptel.c:143: warning: parameter names (without types) in function  
> declaration
> zaptel.c:143: warning: data definition has no type or storage class
> zaptel.c:187: error: syntax error before "fcstab"
> zaptel.c:187: warning: type defaults to `int' in declaration of  
> `fcstab'
> zaptel.c:221: warning: data definition has no type or storage class
> zaptel.c:301: warning: "struct inode" declared inside parameter list
> zaptel.c:301: warning: its scope is only this definition or
> declaration, which is probably not what you want
> zaptel.c:340: error: syntax error before "wait_queue_head_t"
> zaptel.c:347: error: syntax error before "zaptimerlock"
> zaptel.c:347: warning: type defaults to `int' in declaration of  
> `zaptimerlock'
> zaptel.c:347: error: `SPIN_LOCK_UNLOCKED' undeclared here (not in a  
> function)
> zaptel.c:347: warning: data definition has no type or storage class
> zaptel.c:348: error: syntax error before "bigzaplock"
> zaptel.c:348: warning: type defaults to `int' in declaration of  
> `bigzaplock'
> zaptel.c:348: warning: data definition has no type or storage class
> zaptel.c:375: error: syntax error before "__zt_lin2mu"
> zaptel.c:375: warning: type defaults to `int' in declaration of  
> `__zt_lin2mu'
> zaptel.c:375: warning: data definition has no type or storage class
> zaptel.c:377: error: syntax error before "__zt_lin2a"
> zaptel.c:377: warning: type defaults to `int' in declaration of  
> `__zt_lin2a'
> zaptel.c:377: warning: data definition has no type or storage class
> zaptel.c:380: error: syntax error before "defgain"
> zaptel.c:380: warning: type defaults to `int' in declaration of  
> `defgain'
> zaptel.c:380: warning: data definition has no type or storage class
> zaptel.c:386: error: syntax error before "zone_lock"
> zaptel.c:386: warning: type defaults to `int' in declaration of  
> `zone_lock'
> zaptel.c:386: error: `RW_LOCK_UNLOCKED' undeclared here (not in a  
> function)
> zaptel.c:386: warning: data definition has no type or storage class
> zaptel.c:387: error: syntax error before "chan_lock"
> zaptel.c:387: warning: type defaults to `int' in declaration of  
> `chan_lock'
> zaptel.c:387: warning: data definition has no type or storage class
> zaptel.c: In function `__qevent':
> zaptel.c:693: warning: implicit declaration of function  
> `wake_up_interruptible'
> zaptel.c:693: error: structure has no member named `eventbufq'
> zaptel.c:694: error: structure has no member named `readbufq'
> zaptel.c:695: error: structure has no member named `writebufq'
> zaptel.c:696: error: structure has no member named `sel'
> zaptel.c: In function `zt_qevent_lock':
> zaptel.c:708: warning: implicit declaration of function  
> `spin_lock_irqsave'
> zaptel.c:708: error: structure has no member named `lock'
> zaptel.c:710: warning: implicit declaration of function  
> `spin_unlock_irqrestore'
> zaptel.c:710: error: structure has no member named `lock'
> zaptel.c: At top level:
> zaptel.c:714: error: syntax error before '*' token
> zaptel.c:715: warning: function declaration isn't a prototype
> zaptel.c: In function `schluffen':
> zaptel.c:716: warning: implicit declaration of function  
> `DECLARE_WAITQUEUE'
> zaptel.c:716: error: `wait' undeclared (first use in this function)
> zaptel.c:716: error: `current' undeclared (first use in this function)
> zaptel.c:717: warning: implicit declaration of function  
> `add_wait_queue'
> zaptel.c:717: error: `q' undeclared (first use in this function)
> zaptel.c:718: error: `TASK_INTERRUPTIBLE' undeclared (first use in
> this function)
> zaptel.c:719: warning: implicit declaration of function  
> `signal_pending'
> zaptel.c:719: warning: implicit declaration of function `schedule'
> zaptel.c:720: error: `TASK_RUNNING' undeclared (first use in this  
> function)
> zaptel.c:721: warning: implicit declaration of function  
> `remove_wait_queue'
> zaptel.c:722: error: `ERESTARTSYS' undeclared (first use in this  
> function)
> zaptel.c: In function `calc_fcs':
> zaptel.c:729: error: `PPP_INITFCS' undeclared (first use in this  
> function)
> zaptel.c:730: error: structure has no member named `writebuf'
> zaptel.c:736: warning: implicit declaration of function `PPP_FCS'
> zaptel.c: In function `zt_reallocbufs':
> zaptel.c:755: error: `GFP_KERNEL' undeclared (first use in this  
> function)
> zaptel.c:755: warning: assignment makes pointer from integer  
> without a cast
> zaptel.c:757: error: `ENOMEM' undeclared (first use in this function)
> zaptel.c:762: error: structure has no member named `lock'
> zaptel.c:764: error: structure has no member named `readbuf'
> zaptel.c:765: error: structure has no member named `readbuf'
> zaptel.c:768: error: structure has no member named `readbuf'
> zaptel.c:769: error: structure has no member named `writebuf'
> zaptel.c:773: error: structure has no member named `readbuf'
> zaptel.c:774: error: structure has no member named `writebuf'
> zaptel.c:806: error: structure has no member named `lock'
> zaptel.c: At top level:
> zaptel.c:818: error: syntax error before "u_char"
> zaptel.c:819: warning: function declaration isn't a prototype
> zaptel.c: In function `__buf_pull':
> zaptel.c:820: error: `q' undeclared (first use in this function)
> zaptel.c:823: error: `data' undeclared (first use in this function)
> zaptel.c:824: error: `c' undeclared (first use in this function)
> zaptel.c:828: warning: implicit declaration of function `memcpy'
> zaptel.c: At top level:
> zaptel.c:846: error: syntax error before '*' token
> zaptel.c:847: warning: return type defaults to `int'
> zaptel.c: In function `__buf_pushpeek':
> zaptel.c:850: error: structure has no member named `buf'
> zaptel.c: At top level:
> zaptel.c:853: error: syntax error before '*' token
> zaptel.c:854: warning: return type defaults to `int'
> zaptel.c: In function `__buf_peek':
> zaptel.c:857: error: structure has no member named `buf'
> zaptel.c: At top level:
> zaptel.c:889: error: syntax error before "u_char"
> zaptel.c:890: warning: function declaration isn't a prototype
> zaptel.c: In function `__buf_push':
> zaptel.c:891: error: `q' undeclared (first use in this function)
> zaptel.c:895: error: `data' undeclared (first use in this function)
> zaptel.c: In function `reset_conf':
> zaptel.c:919: error: structure has no member named `buf'
> zaptel.c:919: error: structure has no member named `buffer'
> zaptel.c:924: error: structure has no member named `buf'
> zaptel.c:924: error: structure has no member named `buffer'
> zaptel.c: In function `close_channel':
> zaptel.c:941: error: structure has no member named `lock'
> zaptel.c:957: warning: implicit declaration of function  
> `init_waitqueue_head'
> zaptel.c:957: error: structure has no member named `sel'
> zaptel.c:958: error: structure has no member named `readbufq'
> zaptel.c:959: error: structure has no member named `writebufq'
> zaptel.c:960: error: structure has no member named `eventbufq'
> zaptel.c:961: error: structure has no member named `txstateq'
> zaptel.c:982: error: structure has no member named `rxgain'
> zaptel.c:983: error: structure has no member named `rxgain'
> zaptel.c:985: error: structure has no member named `rxgain'
> zaptel.c:986: error: structure has no member named `txgain'
> zaptel.c:1002: error: structure has no member named `lock'
> zaptel.c: In function `free_tone_zone':
> zaptel.c:1032: error: `EINVAL' undeclared (first use in this function)
> zaptel.c:1033: warning: implicit declaration of function `write_lock'
> zaptel.c:1036: warning: implicit declaration of function  
> `write_unlock'
> zaptel.c: In function `zt_register_tone_zone':
> zaptel.c:1045: error: `EINVAL' undeclared (first use in this function)
> zaptel.c:1055: warning: implicit declaration of function `printk'
> zaptel.c:1055: error: `KERN_INFO' undeclared (first use in this  
> function)
> zaptel.c:1055: error: syntax error before string constant
> zaptel.c:1055: warning: left-hand operand of comma expression has  
> no effect
> zaptel.c:1055: warning: left-hand operand of comma expression has  
> no effect
> zaptel.c:1055: error: syntax error before ')' token
> zaptel.c: In function `start_tone':
> zaptel.c:1061: error: `EINVAL' undeclared (first use in this function)
> zaptel.c:1079: error: `ENOSYS' undeclared (first use in this function)
> zaptel.c:1081: error: `ENODATA' undeclared (first use in this  
> function)
> zaptel.c: In function `set_tone_zone':
> zaptel.c:1092: error: `EINVAL' undeclared (first use in this function)
> zaptel.c:1094: warning: implicit declaration of function `read_lock'
> zaptel.c:1103: error: `ENODATA' undeclared (first use in this  
> function)
> zaptel.c:1106: warning: implicit declaration of function `read_unlock'
> zaptel.c: In function `zt_set_law':
> zaptel.c:1124: warning: assignment from incompatible pointer type
> zaptel.c:1131: warning: assignment from incompatible pointer type
> zaptel.c: In function `zt_chan_reg':
> zaptel.c:1187: warning: implicit declaration of function  
> `write_lock_irqsave'
> zaptel.c:1190: warning: implicit declaration of function  
> `spin_lock_init'
> zaptel.c:1190: error: structure has no member named `lock'
> zaptel.c:1197: error: structure has no member named `readchunk'
> zaptel.c:1198: error: structure has no member named `readchunk'
> zaptel.c:1198: error: structure has no member named `sreadchunk'
> zaptel.c:1199: error: structure has no member named `writechunk'
> zaptel.c:1200: error: structure has no member named `writechunk'
> zaptel.c:1200: error: structure has no member named `swritechunk'
> zaptel.c:1210: warning: implicit declaration of function
> `write_unlock_irqrestore'
> zaptel.c:1212: error: `KERN_ERR' undeclared (first use in this  
> function)
> zaptel.c:1212: error: syntax error before string constant
> zaptel.c: At top level:
> zaptel.c:1622: error: syntax error before "zt_chan_read"
> zaptel.c:1622: error: syntax error before "size_t"
> zaptel.c:1623: warning: return type defaults to `int'
> zaptel.c:1623: warning: function declaration isn't a prototype
> zaptel.c: In function `zt_chan_read':
> zaptel.c:1624: error: `unit' undeclared (first use in this function)
> zaptel.c:1630: error: `count' undeclared (first use in this function)
> zaptel.c:1632: error: `EINVAL' undeclared (first use in this function)
> zaptel.c:1636: error: structure has no member named `lock'
> zaptel.c:1638: error: structure has no member named `lock'
> zaptel.c:1644: error: structure has no member named `lock'
> zaptel.c:1646: error: `file' undeclared (first use in this function)
> zaptel.c:1646: error: `O_NONBLOCK' undeclared (first use in this  
> function)
> zaptel.c:1647: error: `EAGAIN' undeclared (first use in this function)
> zaptel.c:1648: error: structure has no member named `readbufq'
> zaptel.c:1667: error: structure has no member named `readbuf'
> zaptel.c:1668: warning: implicit declaration of function  
> `copy_to_user'
> zaptel.c:1668: error: `usrbuf' undeclared (first use in this function)
> zaptel.c:1669: error: `EFAULT' undeclared (first use in this function)
> zaptel.c:1678: error: structure has no member named `readbuf'
> zaptel.c:1682: error: structure has no member named `lock'
> zaptel.c:1697: error: structure has no member named `lock'
> zaptel.c: At top level:
> zaptel.c:1702: error: syntax error before "zt_chan_write"
> zaptel.c:1702: error: syntax error before "size_t"
> zaptel.c:1703: warning: return type defaults to `int'
> zaptel.c:1703: warning: function declaration isn't a prototype
> zaptel.c: In function `zt_chan_write':
> zaptel.c:1705: error: `unit' undeclared (first use in this function)
> zaptel.c:1708: error: `count' undeclared (first use in this function)
> zaptel.c:1710: error: `EINVAL' undeclared (first use in this function)
> zaptel.c:1714: error: structure has no member named `lock'
> zaptel.c:1723: error: structure has no member named `lock'
> zaptel.c:1727: error: structure has no member named `lock'
> zaptel.c:1730: error: `file' undeclared (first use in this function)
> zaptel.c:1730: error: `O_NONBLOCK' undeclared (first use in this  
> function)
> zaptel.c:1731: error: `EAGAIN' undeclared (first use in this function)
> zaptel.c:1733: error: structure has no member named `writebufq'
> zaptel.c:1764: warning: implicit declaration of function  
> `copy_from_user'
> zaptel.c:1764: error: `usrbuf' undeclared (first use in this function)
> zaptel.c:1765: error: `EFAULT' undeclared (first use in this function)
> zaptel.c:1768: error: structure has no member named `writebuf'
> zaptel.c:1773: error: structure has no member named `writebuf'
> zaptel.c:1781: error: structure has no member named `lock'
> zaptel.c:1794: error: structure has no member named `lock'
> zaptel.c: At top level:
> zaptel.c:1799: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_ctl_open':
> zaptel.c:1803: error: `MOD_INC_USE_COUNT' undeclared (first use in
> this function)
> zaptel.c: At top level:
> zaptel.c:1808: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_chan_open':
> zaptel.c:1812: error: `MOD_INC_USE_COUNT' undeclared (first use in
> this function)
> zaptel.c: At top level:
> zaptel.c:1817: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_ctl_release':
> zaptel.c:1821: error: `MOD_DEC_USE_COUNT' undeclared (first use in
> this function)
> zaptel.c: At top level:
> zaptel.c:1826: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_chan_release':
> zaptel.c:1830: error: `MOD_DEC_USE_COUNT' undeclared (first use in
> this function)
> zaptel.c: In function `zt_hangup':
> zaptel.c:1970: error: `EINVAL' undeclared (first use in this function)
> zaptel.c:2005: error: structure has no member named `readbuf'
> zaptel.c: In function `initialize_channel':
> zaptel.c:2032: error: structure has no member named `lock'
> zaptel.c:2058: error: `PPP_INITFCS' undeclared (first use in this  
> function)
> zaptel.c:2081: error: structure has no member named `sel'
> zaptel.c:2082: error: structure has no member named `readbufq'
> zaptel.c:2083: error: structure has no member named `writebufq'
> zaptel.c:2084: error: structure has no member named `eventbufq'
> zaptel.c:2085: error: structure has no member named `txstateq'
> zaptel.c:2110: error: structure has no member named `rxgain'
> zaptel.c:2111: error: structure has no member named `rxgain'
> zaptel.c:2112: error: structure has no member named `rxgain'
> zaptel.c:2113: error: structure has no member named `txgain'
> zaptel.c:2138: error: structure has no member named `lock'
> zaptel.c: At top level:
> zaptel.c:2147: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_timing_open':
> zaptel.c:2151: error: `GFP_KERNEL' undeclared (first use in this  
> function)
> zaptel.c:2151: warning: assignment makes pointer from integer  
> without a cast
> zaptel.c:2153: error: `ENOMEM' undeclared (first use in this function)
> zaptel.c:2156: error: structure has no member named `sel'
> zaptel.c:2157: error: dereferencing pointer to incomplete type
> zaptel.c:2159: error: `MOD_INC_USE_COUNT' undeclared (first use in
> this function)
> zaptel.c: At top level:
> zaptel.c:2168: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_timer_release':
> zaptel.c:2172: error: dereferencing pointer to incomplete type
> zaptel.c:2196: error: `MOD_DEC_USE_COUNT' undeclared (first use in
> this function)
> zaptel.c: At top level:
> zaptel.c:2202: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_specchan_open':
> zaptel.c:2209: error: `EBUSY' undeclared (first use in this function)
> zaptel.c:2227: error: `MOD_INC_USE_COUNT' undeclared (first use in
> this function)
> zaptel.c:2235: error: `ENXIO' undeclared (first use in this function)
> zaptel.c: At top level:
> zaptel.c:2239: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_specchan_release':
> zaptel.c:2249: error: `ENXIO' undeclared (first use in this function)
> zaptel.c:2251: error: `MOD_DEC_USE_COUNT' undeclared (first use in
> this function)
> zaptel.c: In function `zt_alloc_pseudo':
> zaptel.c:2263: error: `GFP_KERNEL' undeclared (first use in this  
> function)
> zaptel.c:2263: warning: assignment makes pointer from integer  
> without a cast
> zaptel.c:2275: warning: implicit declaration of function `sprintf'
> zaptel.c: At top level:
> zaptel.c:2291: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_open':
> zaptel.c:2293: warning: implicit declaration of function `MINOR'
> zaptel.c:2293: error: dereferencing pointer to incomplete type
> zaptel.c:2302: error: `ENXIO' undeclared (first use in this function)
> zaptel.c:2311: error: dereferencing pointer to incomplete type
> zaptel.c: At top level:
> zaptel.c:2334: error: syntax error before "zt_read"
> zaptel.c:2334: error: syntax error before "size_t"
> zaptel.c:2335: warning: return type defaults to `int'
> zaptel.c:2335: warning: function declaration isn't a prototype
> zaptel.c: In function `zt_read':
> zaptel.c:2336: error: `file' undeclared (first use in this function)
> zaptel.c:2341: error: `EINVAL' undeclared (first use in this function)
> zaptel.c:2351: error: `usrbuf' undeclared (first use in this function)
> zaptel.c:2351: error: `count' undeclared (first use in this function)
> zaptel.c: At top level:
> zaptel.c:2368: error: syntax error before "zt_write"
> zaptel.c:2368: error: syntax error before "size_t"
> zaptel.c:2369: warning: return type defaults to `int'
> zaptel.c:2369: warning: function declaration isn't a prototype
> zaptel.c: In function `zt_write':
> zaptel.c:2370: error: `file' undeclared (first use in this function)
> zaptel.c:2374: error: `EINVAL' undeclared (first use in this function)
> zaptel.c:2375: error: `count' undeclared (first use in this function)
> zaptel.c:2383: error: `usrbuf' undeclared (first use in this function)
> zaptel.c: In function `ioctl_load_zone':
> zaptel.c:2422: error: `EFAULT' undeclared (first use in this function)
> zaptel.c:2425: error: `EINVAL' undeclared (first use in this function)
> zaptel.c:2430: error: `E2BIG' undeclared (first use in this function)
> zaptel.c:2431: error: `GFP_KERNEL' undeclared (first use in this  
> function)
> zaptel.c:2433: error: `ENOMEM' undeclared (first use in this function)
> zaptel.c:2438: warning: implicit declaration of function `strncpy'
> zaptel.c: In function `__do_dtmf':
> zaptel.c:2561: warning: implicit declaration of function `strlen'
> zaptel.c:2564: warning: implicit declaration of function `memmove'
> zaptel.c: At top level:
> zaptel.c:2609: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_release':
> zaptel.c:2611: error: dereferencing pointer to incomplete type
> zaptel.c:2621: error: dereferencing pointer to incomplete type
> zaptel.c:2628: error: dereferencing pointer to incomplete type
> zaptel.c: At top level:
> zaptel.c:2708: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_timer_ioctl':
> zaptel.c:2713: warning: implicit declaration of function `_IOW'
> zaptel.c:2713: error: syntax error before "int"
> zaptel.c:2721: error: syntax error before "int"
> zaptel.c:2729: warning: implicit declaration of function `_IOR'
> zaptel.c:2729: error: syntax error before "int"
> zaptel.c:2738: warning: implicit declaration of function `put_user'
> zaptel.c:2740: error: syntax error before "int"
> zaptel.c:2743: error: structure has no member named `sel'
> zaptel.c:2746: error: syntax error before "int"
> zaptel.c:2752: error: `ENOTTY' undeclared (first use in this function)
> zaptel.c: At top level:
> zaptel.c:2757: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_common_ioctl':
> zaptel.c:2774: error: syntax error before "struct"
> zaptel.c:2789: error: `EINVAL' undeclared (first use in this function)
> zaptel.c:2789: error: `ENXIO' undeclared (first use in this function)
> zaptel.c:2849: error: `EFAULT' undeclared (first use in this function)
> zaptel.c:2851: error: syntax error before "struct"
> zaptel.c:2879: warning: implicit declaration of function `_IOWR'
> zaptel.c:2879: error: syntax error before "struct"
> zaptel.c:2891: error: structure has no member named `txgain'
> zaptel.c:2892: error: structure has no member named `rxgain'
> zaptel.c:2897: error: syntax error before "struct"
> zaptel.c:2907: error: structure has no member named `rxgain'
> zaptel.c:2907: error: `GFP_KERNEL' undeclared (first use in this  
> function)
> zaptel.c:2908: error: structure has no member named `rxgain'
> zaptel.c:2909: error: structure has no member named `rxgain'
> zaptel.c:2910: error: `ENOMEM' undeclared (first use in this function)
> zaptel.c:2913: error: structure has no member named `txgain'
> zaptel.c:2913: error: structure has no member named `rxgain'
> zaptel.c:2918: error: structure has no member named `rxgain'
> zaptel.c:2919: error: structure has no member named `txgain'
> zaptel.c:2921: warning: implicit declaration of function `memcmp'
> zaptel.c:2921: error: structure has no member named `rxgain'
> zaptel.c:2922: error: structure has no member named `txgain'
> zaptel.c:2926: error: structure has no member named `rxgain'
> zaptel.c:2927: error: structure has no member named `rxgain'
> zaptel.c:2928: error: structure has no member named `txgain'
> zaptel.c:2934: error: syntax error before "struct"
> zaptel.c:3022: error: `ENOTTY' undeclared (first use in this function)
> zaptel.c: At top level:
> zaptel.c:3064: warning: "struct inode" declared inside parameter list
> zaptel.c: In function `zt_ctl_ioctl':
> zaptel.c:3081: error: syntax error before "struct"
> zaptel.c:3084: error: `EINVAL' undeclared (first use in this function)
> zaptel.c:3084: error: `ENXIO' undeclared (first use in this function)
> zaptel.c:3085: warning: passing arg 1 of `zt_chan_ioctl' from
> incompatible pointer type
> zaptel.c:3086: error: syntax error before "struct"
> zaptel.c:3095: error: syntax error before "int"
> zaptel.c:3107: error: structure has no member named `lock'
> zaptel.c:3109: error: structure has no member named `lock'
> zaptel.c:3114: error: syntax error before "int"
> zaptel.c:3067: warning: unused variable `i'
> zaptel.c:3069: warning: unused variable `ch'
> zaptel.c:3070: warning: unused variable `sf'
> zaptel.c:3071: warning: unused variable `sigcap'
> zaptel.c:3074: warning: unused variable `newmaster'
> zaptel.c:3075: warning: unused variable `tdp'
> zaptel.c:3076: warning: unused variable `maint'
> zaptel.c:3079: warning: unused variable `rv'
> zaptel.c: At top level:
> zaptel.c:3115: error: syntax error before "while"
> zaptel.c:248: error: storage size of `zt_fops' isn't known
> zaptel.c:184: warning: 'deftaps' defined but not used
> zaptel.c:223: warning: 'debug' defined but not used
> zaptel.c:248: warning: 'zt_fops' defined but not used
> zaptel.c:619: warning: 'recalc_maxlinks' defined but not used
> zaptel.c:631: warning: 'zt_first_empty_conference' defined but not  
> used
> zaptel.c:642: warning: 'zt_get_conf_alias' defined but not used
> zaptel.c:819: warning: '__buf_pull' defined but not used
> zaptel.c:890: warning: '__buf_push' defined but not used
> zaptel.c:1021: warning: 'tone_zone_init' defined but not used
> zaptel.c:1029: warning: 'free_tone_zone' defined but not used
> zaptel.c:1060: warning: 'start_tone' defined but not used
> zaptel.c:2292: warning: 'zt_open' defined but not used
> zaptel.c:2404: warning: 'ioctl_load_zone' defined but not used
> zaptel.c:2558: warning: '__do_dtmf' defined but not used
> zaptel.c:2610: warning: 'zt_release' defined but not used
> zaptel.c:2709: warning: 'zt_timer_ioctl' defined but not used
> zaptel.c:2758: warning: 'zt_common_ioctl' defined but not used
> zaptel.c:3035: warning: 'recalc_slaves' defined but not used
> zaptel.c:3065: warning: 'zt_ctl_ioctl' defined but not used
> gmake: *** [zaptel.o] Error 1
> ==============================================
>
> Thanks in advance for any help provided.
>
> Rob
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd

-- 
S i x  F e e t  U p , I n c .  |  "Nowhere to go but open source"
Silicon Valley: +1 (650) 401-8579 x602
Midwest: +1 (317) 861-5948 x602
Toll-Free: 1-866-SIX-FEET
mailto:calvin at sixfeetup.com
http://www.sixfeetup.com  |  Zope Hosting from $19.95/month




More information about the Asterisk-BSD mailing list