[asterisk-bugs] [Asterisk 0014224]: [patch] fixes for autoconf 2.63 and ptlib-devel (Fedora 10)

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Jan 31 05:40:55 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14224 
====================================================================== 
Reported By:                bergolth
Assigned To:                jpeeler
====================================================================== 
Project:                    Asterisk
Issue ID:                   14224
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.22 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-01-12 17:01 CST
Last Modified:              2009-01-31 05:40 CST
====================================================================== 
Summary:                    [patch] fixes for autoconf 2.63 and ptlib-devel
(Fedora 10)
Description: 
autoconf 2.62 renamed _AC_PATH_PROGS_FEATURE_CHECK to
_AC_PATH_PROG_FEATURE_CHECK and introduced AC_PATH_PROGS_FEATURE_CHECK.

Moreover Fedora 10 replaced pwlib-devel with ptlib-devel. ptlib-config now
resides in /usr/share/ptlib/make instead of /usr/share/pwlib/make. (But
there is also a link in /usr/bin).

Unfortunately, an option to ptlib-config also changed:
  /usr/bin/ptlib-config --pwlibdir
... is now:
  /usr/bin/ptlib-config --ptlibdir

The attached patch (against asterisk-1.4.22.1) tries to address those
problems.

====================================================================== 

---------------------------------------------------------------------- 
 (0099179) bergolth (reporter) - 2009-01-31 05:40
 http://bugs.digium.com/view.php?id=14224#c99179 
---------------------------------------------------------------------- 
Just found another problem:
The following check also fails:

                AST_CHECK_PWLIB_BUILD([PWLib], [PWLIB],
                        [Define if your system has the PWLib libraries.],
                        [#include "ptlib.h"],
                        [BOOL q = PTime::IsDaylightSavings();])

... because recent versions of ptlib use PBoolean instead of BOOL.

See
  http://www.opalvoip.org/wiki/index.php?n=Main.BoolChanges
for details about this change and some hints on how to fix it:

----------------------------------------
If compatibility with previous versions of OPAL/PTLib is required, then
replace all occurrences of 'BOOL' with 'PBoolean, and add the following
code to each application compilation unit (preferably via a header file)

   #include <ptbuildopts.h>
   #if ! defined(P_USE_STANDARD_CXX_BOOL) && !defined(P_USE_INTEGER_BOOL)
   typedef BOOL PBoolean;
   #define PTrue TRUE
   #define PFalse FALSE
   #endif
---------------------------------------- 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-31 05:40 bergolth       Note Added: 0099179                          
======================================================================




More information about the asterisk-bugs mailing list