[Home]

Summary:ASTERISK-03138: __builtin_expect
Reporter:Dmitriy Yermakov (dyer)Labels:
Date Opened:2004-12-30 08:28:43.000-0600Date Closed:2005-01-02 20:19:26.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/Configuration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:chan_sip.c: In function `realtime_peer':
chan_sip.c:1162: warning: implicit declaration of function `__builtin_expect'

loader.c:309 ast_load_resource: /usr/lib/asterisk/modules/chan_sip.so: undefined symbol: __builtin_expect
Loading module chan_sip.so failed!

Solution
add #include <linux/compiler.h> into include/asterisk/astobj.h

Compiling and Asterisk start successfully.

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

# cvs diff include/asterisk/astobj.h
Index: include/asterisk/astobj.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/astobj.h,v
retrieving revision 1.4
diff -r1.4 astobj.h
17a18
> #include <linux/compiler.h>
Comments:By: Olle Johansson (oej) 2004-12-30 08:54:36.000-0600

Please check existing bugs before you open a new one!