[asterisk-bugs] [JIRA] (ASTERISK-20980) [patch] ./configure fails with ptlib 2.10.9

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu Jan 24 17:25:58 CST 2013


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

Matt Jordan commented on ASTERISK-20980:
----------------------------------------

Patching the {{configure}} script, unfortunately, doesn't help. The configure script is generated from the autoconf {{configure.ac}}. The function that is apparently broken, {{AST_CHECK_PWLIB_VERSION}}, is actually implemented in {{autoconf/ast_check_pwlib.m4}} - so your fix should go into that function.
                
> [patch] ./configure fails with ptlib 2.10.9
> -------------------------------------------
>
>                 Key: ASTERISK-20980
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20980
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/BuildSystem
>    Affects Versions: SVN
>         Environment: Arch Linux, ptlib 2.10.9, Asterisk svn trunk 2013-01-24
>            Reporter: Stefan Reuter
>         Attachments: ASTERISK-20980.patch
>
>
> ./configure fails with
> {code}
> checking for ptlib-config... /usr/bin/ptlib-config
> ./configure: line 25551: 2*10000+10*100+9 ((major<<24)|(minor<<16)|build) >=: syntax error in expression (error token is "((major<<24)|(minor<<16)|build) >=")
> {code}
> The reason for this is that the grep on /usr/include/ptbuildopts.h returns multiple lines for recent versions of ptlib:
> {code}
> grep "P[WT]LIB_VERSION" /usr/include/ptbuildopts.h                                                                                              !1985
> #define PTLIB_VERSION "2.10.9"
> #define PTLIB_VERSION_INT(major,minor,build) ((major<<24)|(minor<<16)|build)
>           (PTLIB_VERSION_INT(PTLIB_MAJOR,PTLIB_MINOR,PTLIB_BUILD) >= PTLIB_VERSION_INT(major,minor,build))
> {code}
> This causes the parsing of PTLIB_VERSION to fail. Patch attached.

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