[Home]

Summary:ASTERISK-12936: Compile fails at asterisk.c
Reporter:jmls (jmls)Labels:
Date Opened:2008-10-19 11:48:42Date Closed:2008-10-20 12:39:30
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When performing a "make" , the compile fails with the following message:

[CC] asterisk.c -> asterisk.o
asterisk.c: In function âmainâ:
asterisk.c:2994: warning: implicit declaration of function âioctlâ
asterisk.c:2994: error: âDAHDI_TIMERCONFIGâ undeclared (first use in this function)
asterisk.c:2994: error: (Each undeclared identifier is reported only once
asterisk.c:2994: error: for each function it appears in.)
make[1]: *** [asterisk.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-1.4/asterisk/main'
make: *** [main] Error 2



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

tzafrir_laptop on #asterisk-dev thinks that this is a bug and asked me to report it.
Comments:By: Holger Hornung (netview) 2008-10-19 14:09:08

I think line 77 of asterisk.c is wrong - change it to
#if defined(HAVE_ZAPTEL) || defined (HAVE_DAHDI).

By: jmls (jmls) 2008-10-19 14:14:10

that certainly allowed asterisk.c to compile. Thanks - I'll test and let you all know

By: BJ Weschke (bweschke) 2008-10-19 15:15:02

Netview's approach is correct and is already committed as r151167. For some reason, the bots are not automagically tagging notes and closing bugs in Mantis.

By: Digium Subversion (svnbot) 2008-10-20 12:39:29

Repository: asterisk
Revision: 151100

U   branches/1.4/main/asterisk.c

------------------------------------------------------------------------
r151100 | bweschke | 2008-10-20 12:39:28 -0500 (Mon, 20 Oct 2008) | 7 lines

Fix the 1.4 branch compile again broken with r150557 when using with Zaptel and not DAHDI

(closes issue ASTERISK-12936)
reported by: jmls
patch by: bweschke


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

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