apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46233] New: APR does not compile universal binaries on Mac OS X 10.5
Date Tue, 18 Nov 2008 21:27:45 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46233

           Summary: APR does not compile universal binaries on Mac OS X 10.5
           Product: APR
           Version: 1.3.3
          Platform: Macintosh
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: 10.50@free.fr


The APR configure phase does not handle correctly the universal compilation
feature present on Mac OS X 10.5 (Leopard) which allow for simultaneous build
of 32 and 64bit binaries on both Intel and PPC environement.

Specificaly in include/apr.h:

1. Typedefs of apr_[u]int*_t should be set to the respective [u]int*_t (from
<sys/types.h>) and not be standard C types;

2. The APR_SIZEOF_VOIDP is set to 4, irrespectively of the arch. This should be
replaced by something like (for gcc):

#if defined(__LP32__)
  #define APR_SIZEOF_VOIDP 4
#elif defined (__LP64__)
  #define APR_SIZEOF_VOIDP 8
#endif

Patching the include/apr.h with these two changes allows the build to finish
correctly, but it would be nice to get rid of them, if possible.

Thanks!


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message