[asterisk-bugs] [JIRA] (ASTERISK-20681) Unable to compile pjproject in Asterisk 11

abelbeck (JIRA) noreply at issues.asterisk.org
Fri Jan 18 11:31:22 CST 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=201832#comment-201832 ] 

abelbeck commented on ASTERISK-20681:
-------------------------------------

The res/pjproject/build/cc-auto.mak file is optional in the res/pjproject/build/common.mak file (before commit 378582).

How about reverting commit 378582 so res/pjproject/build/cc-auto.mak gets created again, then remove build/cc-auto.mak in res/Makefile after calling ./configure if not cross-compiling.

Attached is a one line addition to res/Makefile, plus reverting commit 378582.  Tested and works for me.

If someone knows of a better way to determine if the main configure script determined cross-compiling, I'm all ears.

Ideally this could be done in res/pjproject/aconfigure, but that script does not work when set for cross-compiling (fails with /bin/sh not finding a command beginning with the --host value) with --build and --host set to different values.  Not to mention res/Makefile calls ./configure with no --build and --host options.
                
> Unable to compile pjproject in Asterisk 11
> ------------------------------------------
>
>                 Key: ASTERISK-20681
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20681
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/General
>    Affects Versions: 11.0.0, 11.0.1
>         Environment: Centos 6.3 x86_64
>            Reporter: Dinesh Ramjuttun
>      Target Release: 11.2.0
>
>         Attachments: 20121208__ccar_solved.diff.txt, 20130118-res-Makeifle.diff.txt, cc-auto.mak.txt, config.log, config.log
>
>
> Cannot compile. I am stuck with the error below. 
> FYI Asterisk 1.8.x compiles with no problem on same system/server.
> {noformat}
> ../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
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list