Unable to compile Asterisk 11

Hello,

I am having this error message while compiling Asterisk 11.0.0 & 11.0.1 also.

…/src/pj/ssl_sock_ossl.c: In function âcreate_sslâ:
…/src/pj/ssl_sock_ossl.c:605: warning: value computed is not used
…/src/pj/ssl_sock_ossl.c:606: warning: value computed is not used
…/src/pj/ssl_sock_ossl.c: In function âflush_write_bioâ:
…/src/pj/ssl_sock_ossl.c:1148: warning: value computed is not used
make[5]: ccar: Command not found
make[5]: *** […/lib/libpj-x86_64-unknown-linux-gnu.a] Error 127
make[4]: *** [pjlib] Error 2
make[3]: *** [all] Error 1
make[2]: *** [pjproject] Error 2
make[1]: *** [res] Error 2
make[1]: Leaving directory `/usr/src/install/asterisk-11.0.1’
make: *** [_cleantest_all] Error 2

Has anybody run into this?

You can report to issues.asterisk.org.

Be sure to include your system information - OS version, etc.

I’m also having the same problem on Centos 6.3 x64

I have reported the issue as suggested on issues.asterisk.org.

FYI I also am trying to compile on Centos 6.3 x86_64 just like dbbrito…

Found this: http://lists.digium.com/pipermail/asterisk-dev/2012-September/056899.html

The failure point is different in your case, but it seems to be the same cause. There appears to be a bug in the way the source is getting compiled in parallel. Where are you guys getting your source from, the asterisk.org server or git or OS repos?

You could try

to force the compiler to run in serial build on one core. Let me know if it works, please.

I ran make -j 1, same problem
[root@localhost asterisk-11.0.1]# make -j 1
make[1]: Entering directory /home/asterisk-11.0.1' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[2]: Entering directory/home/asterisk-11.0.1/menuselect’
make[2]: makeopts' is up to date. make[2]: Leaving directory/home/asterisk-11.0.1/menuselect’
make[5]: ccar: Command not found
make[5]: *** […/lib/libpj-i686-pc-linux-gnu.a] Error 127
make[4]: *** [pjlib] Error 2
make[3]: *** [all] Error 1
make[2]: *** [pjproject] Error 2
make[1]: *** [res] Error 2
make[1]: Leaving directory `/home/asterisk-11.0.1’
make: *** [_cleantest_all] Error 2
[root@localhost asterisk-11.0.1]# uname -r
2.6.18-308.4.1.el5
[root@localhost asterisk-11.0.1]#

Where did you get your asterisk source?

edit res/pjproject/build/cc-auto.mak
and remove the “cc” from “ccar” and "ccranlib"
This worked for me.

make -j 1 worked for me on ubuntu 12.04 Thanks

other error: centos 6.3 x64

can not be used when making a shared object; recompile with -fPIC
/usr/src/asterisk/asterisk-11.0.2/res/pjproject/pjnath/lib/libpjnath-x86_64-unknown-linux-gnu.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [res_rtp_asterisk.so] Error 1
make[1]: *** [res] Error 2
make[1]: Leaving directory `/usr/src/asterisk/asterisk-11.0.2’
make: *** [_cleantest_all] Error 2

Where did you get the source that you are trying to compile?

What exact commands did you issue to start the build?

I am seeing the same thing on Asterisk 11.1.0 (also saw it on previous Asterisk 11 versions).
My OS is Debian 64-bit.

I tried the [quote]make -j 1[/quote] and the same error occurs.

root@Genesis:/usr/src/asterisk-11.1.0# make -j 1
make[1]: Entering directory /usr/src/asterisk-11.1.0' make[5]: ccar: Command not found make[5]: *** [../lib/libpj-x86_64-unknown-linux-gnu.a] Error 127 make[4]: *** [pjlib] Error 2 make[3]: *** [all] Error 1 make[2]: *** [pjproject] Error 2 make[1]: *** [res] Error 2 make[1]: Leaving directory/usr/src/asterisk-11.1.0’
make: *** [_cleantest_all] Error 2

My code was retrieved from Asterisk.org as the current Asterisk 11 as of yesterday afternoon.
http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz

The following post describes a way around this. However, it would be nice to not have to edit the files retrieved directly from asterisk.org or at least given a description of additional libraries that should be installed for various versions of Linux.

http://forums.digium.com/viewtopic.php?f=13&t=84551&p=179665&hilit=ccar&sid=976e723c1d2487c3a07bc24e8d8606f1&sid=976e723c1d2487c3a07bc24e8d8606f1#p179665