[MacPorts] #17090: apr 1.3.3 doesn't compile universal x86_64+i386
MacPorts
noreply at macports.org
Tue Nov 18 03:23:31 PST 2008
#17090: apr 1.3.3 doesn't compile universal x86_64+i386
----------------------------------+-----------------------------------------
Reporter: pguyot at kallisys.net | Owner: dluke at macports.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.7.0
Resolution: | Keywords:
Port: apr |
----------------------------------+-----------------------------------------
Comment(by 10.50 at free.fr):
Ok, I've got it. The APR_SIZEOF_VOIDP is 8 bytes long on both i386 and
x86_64. Therefore, the asm code select always cmpxchgQ instructions, which
operate on quad words. It is okay with x86_64 of course, but generates an
error with i386 asm.
The apr.h file should be changed again to look like this:
#if defined (__x86_64__)
#define APR_SIZEOF_VOIDP 8
#elif defined (__i386__)
#define APR_SIZEOF_VOIDP 4
#endif
Modify as needed for PPC archs.
With these two mods (apr_int* new typedefs and APR_SIZEOF_VOIDP), the
package compiles all right with +universal mod.
--
Ticket URL: <http://trac.macports.org/ticket/17090#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list