[Asterisk-Users] Problem compiling zaptel on latest RHEL kernel(2.6.9-34.EL)

Nilesh Londhe lvnilesh at gmail.com
Mon Mar 13 11:54:47 MST 2006


Thanks Russ. I updated the Makefile under /usr/src/zaptel and issued
rebuild_zaptel. it worked flawlessly:)

On 3/13/06, Anthony Rodgers <Anthony_Rodgers at dnv.org> wrote:
>
> Many thanks, Russ - I'll give this a try.
>
> Thank goodness a) for test servers and b) for the ability of Linux to
> rollback with a simple change to grub.conf :-)
>
> Regards,
> --
> Anthony Rodgers
> Business Systems Analyst
> District of North Vancouver
> Web: http://www.dnv.org
> RSS Feed: http://www.dnv.org/rss.asp
>
> On 11-Mar-06, at 7:33 AM, Russ Price wrote:
>
> > Anthony Rodgers wrote:
> > > Greetings,
> > >
> > > I have just updated our test server to 2.6.9-34.EL and get the
> > following
> > > error messages when compiling zaptel:
> > >
> > > make[1]: Entering directory `/usr/src/kernels/2.6.9-34.EL-i686'
> > >   CC [M]  /usr/src/zaptel/zaptel-1.2.1/zaptel.o
> > > /usr/src/zaptel/zaptel-1.2.1/zaptel.c:383: error: syntax error
> > before
> > > "zone_lock"
> >
> > [snipped]
> >
> > This bit me with CentOS 4.2 as well.  The problem is actually a
> > typo in
> > the kernel spinlock.h file. See:
> >
> > <http://bugs.digium.com/view.php?id=6425>
> >
> > and
> >
> > <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=180568>
> >
> > for more information.
> >
> > Here's a quick fix.  In your zaptel Makefile, add the following
> > (line 38
> > for 1.2.4) - THIS SHOLD BE ALL ONE LINE:
> >
> > CFLAGS+=$(shell if uname -r | grep -q 2.6.9-34.EL; then echo
> > "-Drw_lock_t=\"rwlock_t\""; fi)
> >
> > This way, if this is fixed in the next kernel release, you won't
> > need to
> > make another change to the Makefile.
> >
> >         Russ
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060313/89370c21/attachment.htm


More information about the asterisk-users mailing list