[asterisk-users] Cannot compile 1.4.2 on Slackware 7

Jonathan Hunter jmhunter1 at gmail.com
Sat Apr 7 10:09:37 MST 2007


Hi All,

I am trying to upgrade an old Asterisk installation to 1.4.2 (it's
currently running CVS-08/02/04-15:15:26) but have hit a couple of
problems.

The first was easily fixed. I got "storage size of sin isn't known"
errors whilst compiling streamplayer.c, but after seeing
http://bugs.digium.com/view.php?id=4908#32012
I manually added "#include <netinet/in.h>" to the top of
streamplayer.c and this compiled OK. (Should I file a bug for this?)

However I'm currently stuck here:

/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

I don't know enough about the internals of Asterisk to know what I
should be looking for - is the configure script perhaps not checking
for a required library?

The machine is quite old, so it is possible I need to upgrade/add
something - but what?

# uname -a
Linux myserver 2.4.25 #5 Wed Jan 26 18:20:35 GMT 2005 i686 unknown
# cat /etc/slackware-version
7.0.0

If anyone can point me in the right direction, I'd appreciate it!

Cheers,

Jonathan

-- 
"If we knew what it was we were doing, it would not be called
research, would it?"
      - Albert Einstein


More information about the asterisk-users mailing list