[asterisk-users] Cannot compile 1.4.2 on Slackware 7

Kevin P. Fleming kpfleming at digium.com
Sat Apr 7 10:23:33 MST 2007


Jonathan Hunter wrote:
> /usr/src/asterisk-1.4.2# make
>   [LD] aelparse.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o
> ast_expr2.o strcompat.o -> aelparse
> aelparse.o: In function `ael_yylex':
> /usr/src/asterisk-1.4.2/include/asterisk/strings.h:167: undefined
> reference to `__builtin_expect'
> ast_expr2f.o: In function `ast_expr':
> /usr/src/asterisk-1.4.2/include/asterisk/strings.h:167: undefined
> reference to `__builtin_expect'
> collect2: ld returned 1 exit status
> make[1]: *** [aelparse] Error 1
> make: *** [utils] Error 2

Given the age of your distribution, I suspect your compiler is too old.
What version of GCC are you using?


More information about the asterisk-users mailing list