Compile Asterisk11.1 For I586 VIA C3 CPU

Home » Asterisk Users » Compile Asterisk11.1 For I586 VIA C3 CPU
Asterisk Users 2 Comments

Hi,

I’ve compiled asterisk 11.1 for my MiniITX card with VIA C3 Samuel2
800MHz CPU. A small box to play with PBX at home.

I get this error when I start asterisk:

root@pbx01:/usr/src/asterisk-11.1.0# /etc/init.d/asterisk start Illegal instruction Starting Asterisk PBX: asteriskIllegal instruction

I compiled it on debian 6.0.6 with this options:
./configure –build=i386-pc-linux-gnu –host=i386-pc-linux-gnu \
–with-iksemel=/usr/src/iksemel-1.4 –with-pri=/usr/src/libpri-1.4.14 \
–with-dahdi=’/usr/src/dahdi-linux-complete-2.6.1+2.6.1′ –libdir=/usr/lib

I was able last days to compile asterisk 1.8 and it did work perfectly…. except with Gtalk, and this is why I have to compile v11.1
I have gone through these steps (v1.8):

1) ./configure –with-iksemel=/usr/src/iksemel-1.4
–with-pri=/usr/src/libpri-1.4.14
–with-dahdi=’/usr/src/dahdi-linux-complete-2.6.1+2.6.1′
–libdir=/usr/lib
2) in Makefile change : PROC=i586 (instead of i686)

3) in makeopts change:
#BUILD_PLATFORM=i686-pc-linux-gnu BUILD_PLATFORM=i586-pc-linux-gnu
#BUILD_CPU=i686
BUILD_CPU=i586
#HOST_PLATFORM=i686-pc-linux-gnu HOST_PLATFORM=i586-pc-linux-gnu
#HOST_CPU=i686
HOST_CPU=i586
PROC=i586

4) # make && make install

But I can’t do the same changes for asterisk 11.1 because the makefiles haven’t the same content as for asterisk v1.8

I need asterisk 11.1 to be able to receive and make calls to gtalk accounts

Do you have any idea where is the problem ?

My VIA CPU:

root@pbx01:/usr/src/asterisk-11.1.0# cat /proc/cpuinfo processor : 0
vendor_id : CentaurHauls cpu family : 6
model : 7
model name : VIA Samuel 2
stepping : 3
cpu MHz : 799.892
cache size : 64 KB
fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1
wp : yes flags : fpu de tsc msr cx8 mtrr pge mmx 3dnow bogomips : 1599.78
clflush size : 32
cache_alignment : 32
address sizes : 32 bits physical, 32 bits virtual power management:

2 thoughts on - Compile Asterisk11.1 For I586 VIA C3 CPU

  • Thanks George it works now !

    Message: 6
    Date: Sun, 30 Dec 2012 17:18:45 -0700
    From: George Joseph
    Subject: Re: [asterisk-users] Compile asterisk11.1 for i586 VIA C3 CPU
    To: Asterisk Users Mailing List – Non-Commercial Discussion

    Message-ID:

    Content-Type: text/plain; charset=”utf-8″

    Try this… In menuselect, uncheck BUILD_NATIVE under Compiler Flags and recompile.