[Home]

Summary:ASTERISK-20980: [patch] ./configure fails with ptlib 2.10.9
Reporter:Stefan Reuter (srt)Labels:
Date Opened:2013-01-23 18:10:24.000-0600Date Closed:2013-01-28 20:11:58.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:SVN Frequency of
Occurrence
Constant
Related
Issues:
Environment:Arch Linux, ptlib 2.10.9, Asterisk svn trunk 2013-01-24Attachments:( 0) ASTERISK-20980.patch
( 1) ASTERISK-20980-1.patch
Description:./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.
Comments:By: Matt Jordan (mjordan) 2013-01-24 17:25:52.612-0600

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.

By: Stefan Reuter (srt) 2013-01-24 17:38:40.900-0600

svn diff autoconf/ast_check_pwlib.m4 > ASTERISK-20980-1.patch

By: Stefan Reuter (srt) 2013-01-24 17:39:15.578-0600

Sorry, I've updated the patch for autoconf/ast_check_pwlib.m4

By: Matt Jordan (mjordan) 2013-01-28 19:53:56.639-0600

That patch looks good - thanks!