Jonathan Hunter
2007-Apr-07 10:09 UTC
[asterisk-users] Cannot compile 1.4.2 on Slackware 7
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
Kevin P. Fleming
2007-Apr-07 10:23 UTC
[asterisk-users] Cannot compile 1.4.2 on Slackware 7
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 2Given the age of your distribution, I suspect your compiler is too old. What version of GCC are you using?
Darrick Hartman
2007-Apr-07 12:01 UTC
[asterisk-users] Cannot compile 1.4.2 on Slackware 7
Jonathan Hunter wrote:> 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.0Slackware 7! Upgrade to something from this century! Seriously, 7.0 is so old that you should not be using it. It's not supported with security updates and uses older versions of glibc (which may be part of your problem).> If anyone can point me in the right direction, I'd appreciate it!Slackware 11.0 was recently released. Move to that. There isn't anything special that would make it run less fast than 7.0 does on your hardware. You'll also have the option of installing a 2.6x kernel which will bring you to the 21 century. I used slackware back to version 3.0. It's a very clean distro. If this is a dedicated Asterisk box, consider looking at Astlinux. We will be releasing 0.4.5 in the next week or so with some major upgrades/improvements. For now, you can grab the release candidate images from here: http://www.djhsolutions.com/astlinux Darrick -- Darrick Hartman DJH Solutions, LLC http://www.djhsolutions.com