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
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.
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
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.