[Home]

Summary:ASTERISK-01927: zaptel fails to build on 2.4.18 kernel
Reporter:Peter Whisker (whiskerp)Labels:
Date Opened:2004-06-30 06:31:59Date Closed:2008-01-15 15:01:27.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I get a compile warning when building zaptel (current CVS head) against 2.4.18 kernel (Debian stable dist)

zaptel.c: In function `zt_net_close':
zaptel.c:1238: warning: implicit declaration of function `hdlc_close'

It completes but fails to install with modprobe finding unresolved references.

This error was introduced with the recent addition of the second clause of the statement below in zconfig.h

#if defined(CONFIG_HDLC)  || defined(CONFIG_HDLC_MODULE)
========================^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Clearly there is a problem building against the kernel modules in 2.14.18 as hdlc_close does not seem to exist. There is no problem if I comment out the second part from and including the || above and it builds and installs OK.


****** ADDITIONAL INFORMATION ******

It builds ok against 2.4.23 but I need to keep 2.4.18 for cnxadsl compatibility.
Comments:By: Peter Whisker (whiskerp) 2004-06-30 06:53:47

network*CLI> show version
Asterisk CVS-HEAD-06/28/04-14:50:20 built by root@network on a i586 running Linux

By: Brian West (bkw918) 2004-06-30 09:35:56

This is a zaptel problem.  Have you made sure you have the latest zaptel downloaded?

By: Mark Spencer (markster) 2004-06-30 09:49:38

I've updated CVS not to try to implicitly build CONFIG_ZAPATA_NET.  Just CVS update anytime after about an hour from when i place this comment and you should be fine.  In any case don't use the ZAPATA_NET unless you need it.  If you do need it, you may find it helpful to read the comments in zconfig to see if you can fiddle with it manually.

By: Digium Subversion (svnbot) 2008-01-15 15:01:27.000-0600

Repository: asterisk
Revision: 3362

U   trunk/channels/chan_iax2.c
U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r3362 | malcolmd | 2008-01-15 15:01:26 -0600 (Tue, 15 Jan 2008) | 2 lines

Bug ASTERISK-1927: iaxbuf now declared in chan_iax2.c and chan_sip.c

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=3362