Welcome! Log In Create A New Profile

Advanced

Compiling asterisk 1.6.2.13 fails

Posted by gurkendoktor 
Compiling asterisk 1.6.2.13 fails
October 21, 2010 08:42AM
Hello,
I know there is a ready-made package that I could install. But thats only version 1.4 and not 1.6. I tried to compile asterisk from scratch, but after a while, it fails with an error:
   [CC] src/add.c -> src/add.o
Assembler messages:
Error: unknown architecture `armv5tel'

Error: unrecognized option -march=armv5tel
src/add.c:1: error: bad value (armv5tel) for -march= switch
make[2]: *** [src/add.o] Error 1
make[1]: *** [gsm/lib/libgsm.a] Error 2
make: *** [codecs] Error 2

How can I solve this problem?
Re: Compiling asterisk 1.6.2.13 fails
October 21, 2010 09:57AM
You might want to give 1.4 a try anyway, unless there are features only available in 1.6, which IMHO is broken
Digium considers 1.4 a long term support release, as will be 1.8
It seems that they would rather forget all the 1.6 versions as quickly as possible.


Just one long time Asterisk users opinion!

JN
Re: Compiling asterisk 1.6.2.13 fails
October 21, 2010 10:04AM
Ok, I understand.
But I need isdn-interconnection with chan_lcr/misdnv2, is this possible in 1.4 already? Or should I wait for 1.8 or even try one of the release candidates?
Re: Compiling asterisk 1.6.2.13 fails
October 21, 2010 10:49AM
I was successfully installed both 1.4 and 1.6. For 1.6, I tried upto 1.6.2.11 and settled with 1.6.2.9. I agree 1.4 is probably more stable and uses less RAM. I am right now mainly using 1.4.
Re: Compiling asterisk 1.6.2.13 fails
October 21, 2010 11:51AM
Where did you got 1.6?
I just tried the 1.8rc version, it has the same problem compiling the libgsm-stuff because of the architecture.



Edited 1 time(s). Last edit at 10/21/2010 11:53AM by gurkendoktor.
Re: Compiling asterisk 1.6.2.13 fails
October 21, 2010 05:24PM
I followed the instructions in http://forums.plugpbx.org/index.php?topic=109.0 step 3. You can change the Asterisk and other program's version and it should also work but not always.
Dan
Re: Compiling asterisk 1.6.2.13 fails
October 28, 2010 04:12PM
Hi guys,

I've installed debian squeeze following Jeff's guide.
I was trying to install Asterisk 1.8 using this guide.
When I'm running ./configure I'm getting an error (seems that doesn't have a C compiler or doesn't know where to
find it):
checking build system type... armv5tel-unknown-linux-gnueabi
checking host system type... armv5tel-unknown-linux-gnueabi
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/src/asterisk-1.8.0':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
Any help will be appreciated.
Thanks

Edit1:
I had to install gcc, g++ and make so far
"./configure" worked but "make" give me some errors (at the end I think)
Assembler messages:
Error: unknown architecture `armv5tel'
Error: unrecognized option -march=armv5tel
src/add.c:1: error: bad value (armv5tel) for -march= switch
make[2]: *** [src/add.o] Error 1
make[1]: *** [gsm/lib/libgsm.a] Error 2
make: *** [codecs] Error 2

Edit2:
Now I see somebody else had the same problem with 1.6
Most likely has something to do with the way squeeze identifies the hardware:
root@debian:/usr/src/asterisk-1.8.0# uname -a
Linux debian 2.6.32-5-kirkwood #1 Wed Oct 20 12:58:44 UTC 2010 armv5tel GNU/Linux



Edited 2 time(s). Last edit at 10/28/2010 08:19PM by Dan.
Re: Compiling asterisk 1.6.2.13 fails
October 28, 2010 07:17PM
I installed Asterisk 1.8 without problem. However, my soft phone/APA adapter cannot register. It says wrong password but there's nothing wrong about it. I used exactly the same sip.conf setting on a-1.6 and 1.4 without problem. Please let me know your experience once you installed it correctly.
I basically followed what given in http://forums.plugpbx.org/index.php?topic=109.0 steps 2 and 3. I don't think all of the files are needed but I did anyway. I didn't install the Kernel files in step 2. Also, I referenced http://www.freepbx.org/forum/freepbx/installation/asterisk-1-8-installation but that is for x86 machines so I don't mainly followed the first one. For gtalk, I used what shown in http://forums.digium.com/viewtopic.php?f=1&t=75868&sid=afa79921d1c14a77a52a28ba1828e4fb.
I am interested in your results.
BTW, I installed it on Lenny not Squeeze. Not sure if it will make any difference.
ianw
Re: Compiling asterisk 1.6.2.13 fails
November 02, 2010 08:18AM
To compile asterisk on dockstar, you need to manually change makeopts before you type make.

change PROC=armv5tel to PROC=arm, then run make
Dan
Re: Compiling asterisk 1.6.2.13 fails
November 02, 2010 04:04PM
ianw Wrote:
-------------------------------------------------------
> To compile asterisk on dockstar, you need to
> manually change makeopts before you type make.
>
> change PROC=armv5tel to PROC=arm, then run make

Thanks a lot, that did the trick.
I was thinking that string it's the problem but didn't know where to change it :)
nguyen
Re: Compiling asterisk 1.6.2.13 fails
November 15, 2010 01:08AM
twinclouds Wrote:
-------------------------------------------------------
> I installed Asterisk 1.8 without problem.
> However, my soft phone/APA adapter cannot
> register. It says wrong password but there's
> nothing wrong about it. I used exactly the same
> sip.conf setting on a-1.6 and 1.4 without problem.
> Please let me know your experience once you
> installed it correctly.
> I basically followed what given in
> http://forums.plugpbx.org/index.php?topic=109.0
> steps 2 and 3. I don't think all of the files are
> needed but I did anyway. I didn't install the
> Kernel files in step 2. Also, I referenced
> http://www.freepbx.org/forum/freepbx/installation/
> asterisk-1-8-installation but that is for x86
> machines so I don't mainly followed the first one.
> For gtalk, I used what shown in
> http://forums.digium.com/viewtopic.php?f=1&t=75868
> &sid=afa79921d1c14a77a52a28ba1828e4fb.
> I am interested in your results.
> BTW, I installed it on Lenny not Squeeze. Not
> sure if it will make any difference.

I have the same issue asterisk 1.8 on openWRT.
Check this error: https://issues.asterisk.org/view.php?id=18263
Re: Compiling asterisk 1.6.2.13 fails
November 20, 2010 04:28AM
./configure --build=arm-gnu-linux
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: