[asterisk-dev] Zaptel woes

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Jun 23 12:49:12 MST 2006


On Fri, Jun 23, 2006 at 10:38:18AM -0400, J. Oquendo wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello all, I've been trying to compile the zaptel drivers on a SuSE
> 10 machine:
> 
> Linux linux 2.6.13-15.10-default #1 Fri May 12 16:27:12 UTC 2006
> i686 i686 i386 GNU/Linux
> 
> I get no errors but the following warnings:
> 
> /temp/z/zaptel-1.2.6/zaptel.c:188: warning: âfcstabâ defined but
> not used

fcstab is a big static array in the zatel conde. It is also replicated
in two other udersace programs. As it is static, there should be no
references to it on run-time. 

Anybody for a patch to remove it?

> /temp/z/zaptel-1.2.6/torisa.c:1145: warning: âset_tor_baseâ defined
> but not used
> /temp/z/zaptel-1.2.6/pciradio.c:504: warning: âbyte2â is used
> uninitialized in this function
> /temp/z/zaptel-1.2.6/pciradio.c:504: warning: âbyte2â is used
> uninitialized in this function
> /temp/z/zaptel-1.2.6/pciradio.c:1440: warning: âbyte1â may be used
> uninitialized in this function
> /temp/z/zaptel-1.2.6/pciradio.c:1440: warning: âbyte2â may be used
> uninitialized in this function
> /temp/z/zaptel-1.2.6/xpp/xproto.h:131: warning: type qualifiers
> ignored on function return type

The code in the xpp subdirectory will soon be replced by the one in
trunk. I would appreciate bug reports on that one.

> /temp/z/zaptel-1.2.6/xpp/xproto.h:134: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xproto.h:131: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xproto.h:134: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xproto.h:131: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xproto.h:134: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xproto.c:79: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xproto.c:110: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xproto.h:131: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xproto.h:134: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xproto.h:131: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xproto.h:134: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xpp_zap.c:365:2: warning: #warning This
> module will not be usable since the kernel HZ
> /temp/z/zaptel-1.2.6/xpp/xpp_zap.c:664: warning: ISO C90 forbids
> mixed declarations and code
> /temp/z/zaptel-1.2.6/xpp/xpp_zap.c:955: warning: ISO C90 forbids
> mixed declarations and code
> /temp/z/zaptel-1.2.6/xpp/xpp_zap.c:975: warning: ISO C90 forbids
> mixed declarations and code
> /temp/z/zaptel-1.2.6/xpp/xpp_zap.c:1387: warning: ISO C90 forbids
> mixed declarations and code
> /temp/z/zaptel-1.2.6/xpp/xpp_zap.c:2229: warning: ISO C90 forbids
> mixed declarations and code
> /temp/z/zaptel-1.2.6/xpp/xpp_zap.c:365:2: warning: #warning This
> module will not be usable since the kernel HZ
> /temp/z/zaptel-1.2.6/xpp/xproto.h:131: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xproto.h:134: warning: type qualifiers
> ignored on function return type
> /temp/z/zaptel-1.2.6/xpp/xpp_usb.c:428: warning: ISO C90 forbids
> mixed declarations and code
> /temp/z/zaptel-1.2.6/xpp/xpp_usb.c:834: warning: ISO C90 forbids
> mixed declarations and code

Anyway, whereas all the above should be fixed, I don't think they pose
any problem with your system. What zaptel hardware do you have, BTW?

> 
> It seems to compile just fine and I did a make install-udev:
> 
> linux:/temp/z/zaptel-1.2.6 # ls /etc/udev/rules.d/zaptel.rules
> /etc/udev/rules.d/zaptel.rules
> linux:/temp/z/zaptel-1.2.6 # grep -i zap /etc/udev/rules.d/50-
> udev.rules
> KERNEL="zapctl",     NAME="zap/ctl"
> KERNEL="zaptimer",   NAME="zap/timer"
> KERNEL="zapchannel", NAME="zap/channel"
> KERNEL="zappseudo",  NAME="zap/pseudo"
> KERNEL="zap[0-9]*",  NAME="zap/%n"
> 
> All was done in accordance to all the relevant documentation I
> found but no devices are ever made in /dev/:
> 
> linux:/temp/z/zaptel-1.2.6 # ls /dev/z*
> /dev/zero

Is zaptel loaded? What's the output of 'ls /proc/zaptel' ? (error:
zaptel is not loaded or procfs not mounted. nothing: zaptel is loaded.
No spans. Something: at least one span).

> 
> Any suggestions or advice on getting this working. I've searched
> around for all documentation I could but can't find the solution
> for this. Also, when I try to load the zaptel module I get the
> following error:
> 
> insmod: error inserting 'zaptel.ko': -1 Unknown symbol in module

What error messages does the kernel give you? I'm not sure where the
kernel logs end up in SuSE, but there's always:

dmesg | tail

> 
> My compilation was:
> 
> make linux26
> make install
> make install-udev
> 
> Asterisk runs fine its Zaptel that's toasty.
> 
> TIA
> J. Oquendo
> -----BEGIN PGP SIGNATURE-----
> Note: This signature can be verified at https://www.hushtools.com/verify
> Version: Hush 2.5
> 
> wpwEAQECAAYFAkSb/NoACgkQVnroYexO+HJCDgQAlIbN2Ua2Shv2qdIYo+pVkcuCrpS5
> gNgkfN8Kx9Rwg8wzhkdB+aCT7HyCBWq0uQ79YssithV5gxGmoNclHrej/vz1xV9X4uby
> FND8QQMqIZDUM0ByhBF46Vonou0M4wMiDnHi3d7kFlrBgv+nfLu0kZb9yTkAbEUgfqPY
> E4iSRfM=
> =kmhu
> -----END PGP SIGNATURE-----
> 
> 
> 
> 
> Concerned about your privacy? Instantly send FREE secure email, no account required
> http://www.hushmail.com/send?l=480
> 
> Get the best prices on SSL certificates from Hushmail
> https://www.hushssl.com?l=485
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 

-- 
Tzafrir Cohen      sip:tzafrir at local.xorcom.com
icq#16849755       iax:tzafrir at local.xorcom.com
+972-50-7952406           
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the asterisk-dev mailing list