[asterisk-users] Sangoma Wanpipe 2.3.4-3 compilation fails under FC2 with Zaptel 1.0.9.2

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sat Dec 23 18:21:19 MST 2006


On Sat, Dec 23, 2006 at 02:14:14PM +0200, Tzafrir Cohen wrote:
> On Fri, Dec 22, 2006 at 09:58:22AM -0700, Colin Anderson wrote:
> > 
> >   LD [M]  /root/wanpipe/patches/kdrivers/wanec/wanec.o
> >   Building modules, stage 2.
> >   MODPOST
> > *** Warning: "register_wanec_iface"
> > [/root/wanpipe/patches/kdrivers/wanec/wanec.ko] undefined!
> > *** Warning: "unregister_wanec_iface"
> > [/root/wanpipe/patches/kdrivers/wanec/wanec.ko] undefined!
> >   CC      /root/wanpipe/patches/kdrivers/wanec/wanec.mod.o
> >   LD [M]  /root/wanpipe/patches/kdrivers/wanec/wanec.ko
> > make[1]: Leaving directory `/lib/modules/2.6.10-1.771_FC2smp/build'
> > make -C /lib/modules/2.6.10-1.771_FC2smp/build SUBDIRS=/root/wanpipe/kdrvtmp
> > CC=gcc KBUILD_VERBOSE=0 modules
> > make[1]: Entering directory `/lib/modules/2.6.10-1.771_FC2smp/build'
> >   CC [M]  /root/wanpipe/kdrvtmp/sdla_tdmv.o
> >   CC [M]  /root/wanpipe/kdrvtmp/sdla_remora_tdmv.o
> > /root/wanpipe/kdrvtmp/sdla_remora_tdmv.c: In function `wp_remora_zap_ioctl':
> > /root/wanpipe/kdrvtmp/sdla_remora_tdmv.c:227: error: `ZT_SETPOLARITY'
> > undeclared (first use in this function)
> 
> Strange. What version of Zaptel do you build against?

My guess was that this was due to building vs. zaptel 1.0 headers. When
comparing zaptel.h from 1.0 and 1.2, one of the addition turns out to
be:

  diff -u <(wget -O- http://svn.digium.com/svn/zaptel/branches/1.0/zaptel.h) \
          <(wget -O- http://svn.digium.com/svn/zaptel/tags/1.2.0/zaptel.h)  \
  | less

/*
 * Set polarity -- implemented by individual driver.  0 = forward, 1 = reverse
 */
#define        ZT_SETPOLARITY          _IOW (ZT_CODE, 92, int)

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


More information about the asterisk-users mailing list