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

Rusty Newton (JIRA) noreply at issues.asterisk.org
Sun Jan 27 18:25:59 CST 2013


Rusty Newton created ASTERISK-20996:
---------------------------------------

             Summary: [patch] ./configure fails with ptlib 2.10.9
                 Key: ASTERISK-20996
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20996
             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
            Assignee: Stefan Reuter


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