[asterisk-bugs] [Asterisk 0015081]: [patch] undefined LOG_WARNING and LOG_NOTICE in main/alaw.c and main/ulaw.c

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 11 12:40:17 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=15081 
====================================================================== 
Reported By:                hmld
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15081
Category:                   Codecs/codec_alaw
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 193542 
Request Review:              
====================================================================== 
Date Submitted:             2009-05-11 11:03 CDT
Last Modified:              2009-05-11 12:40 CDT
====================================================================== 
Summary:                    [patch] undefined LOG_WARNING and LOG_NOTICE in
main/alaw.c and main/ulaw.c
Description: 

  [CC] alaw.c -> alaw.o
alaw.c: In Funktion »ast_alaw_init«:
alaw.c:186: Warnung: Implizite Deklaration der Funktion »ast_log«
alaw.c:186: Fehler: »LOG_WARNING« nicht deklariert (erste Benutzung in
dieser Funktion)
alaw.c:186: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal
aufgeführt
alaw.c:186: Fehler: für jede Funktion in der er auftritt.)
alaw.c:190: Fehler: »LOG_NOTICE« nicht deklariert (erste Benutzung in
dieser Funktion)
make[1]: *** [alaw.o] Fehler 1


Same for main/ulaw.c

====================================================================== 

---------------------------------------------------------------------- 
 (0104534) hmld (reporter) - 2009-05-11 12:40
 http://bugs.digium.com/view.php?id=15081#c104534 
---------------------------------------------------------------------- 
Don't know why I need to license to provide a patch here. Anyway, here it
is:

--- main/alaw.c.orig    2009-05-11 17:36:47.000000000 +0200
+++ main/alaw.c 2009-05-11 17:46:04.000000000 +0200
@@ -28,6 +28,7 @@
 ASTERISK_FILE_VERSION(__FILE__, "$Revision: 180259 $")

 #include "asterisk/alaw.h"
+#include "asterisk/logger.h"

 #ifndef G711_NEW_ALGORITHM
 #define AMI_MASK 0x55
--- main/ulaw.c.orig    2009-05-11 17:06:28.000000000 +0200
+++ main/ulaw.c 2009-05-11 17:06:42.000000000 +0200
@@ -24,6 +24,7 @@
  */

 #include "asterisk.h"
+#include "asterisk/logger.h"

 ASTERISK_FILE_VERSION(__FILE__, "$Revision: 89425 $") 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-11 12:40 hmld           Note Added: 0104534                          
======================================================================




More information about the asterisk-bugs mailing list