[pcre-dev] [Bug 761] New: Unable to compile PCRE with AIX

Top Page
Delete this message
Author: Scott MacVicar
Date:  
To: pcre-dev
New-Topics: [pcre-dev] [Bug 761] Unable to compile PCRE with AIX, [pcre-dev] [Bug 761] Unable to compile PCRE with AIX, [pcre-dev] [Bug 761] Unable to compile PCRE with AIX, [pcre-dev] [Bug 761] Unable to compile PCRE with AIX, [pcre-dev] [Bug 761] Unable to compile PCRE with AIX, [pcre-dev] [Bug 761] Unable to compile PCRE with AIX
Subject: [pcre-dev] [Bug 761] New: Unable to compile PCRE with AIX
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=761
           Summary: Unable to compile PCRE with AIX
           Product: PCRE
           Version: N/A
          Platform: Other
               URL: http://bugs.php.net/bug.php?id=46040
        OS/Version: AIX
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: scottmac@???
                CC: pcre-dev@???



This was reported to the PHP tracker, we're bundling 7.8 at the moment.

Unable to compile PCRE with AIX using gcc, probably due to the ifndef check at
ext/pcre/pcrelib/pcre_internal.h:565:

#ifndef FALSE
typedef int BOOL;

#define FALSE   0
#define TRUE    1
#endif


I supposed FALSE is already defined (but apparently not BOOL), and hence
compilation fails.

Perhaps two checks instead would fix this? Something like:

#ifndef BOOL
typedef int BOOL;
#endif

#ifndef FALSE
#define FALSE   0
#define TRUE    1
#endif



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email