[MacPorts] #63164: cctools @949: lipo make FAT libraries on i386 Mac OS X Tiger with wrong offset: fail to load
MacPorts
noreply at macports.org
Sat Jul 10 22:17:10 UTC 2021
#63164: cctools @949: lipo make FAT libraries on i386 Mac OS X Tiger with wrong
offset: fail to load
------------------------------+--------------------
Reporter: bradleyCPA | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: cctools libgcc7 |
------------------------------+--------------------
Comment (by kencu):
once I can test on i386 10.6.8, 10.5, and 10.4 PPC, we'll probably go with
something like this:
{{{
--- misc/lipo.c.orig
+++ misc/lipo.c
@@ -1935,7 +1935,11 @@
struct arch_flag arch_flag;
if (get_arch_from_flag((char*)arch_name, &arch_flag)) {
uint32_t pagesize = get_segalign_from_flag(&arch_flag);
#if __LP64__
return (uint32_t)(log2(pagesize));
#else
return (uint32_t)(log2l(pagesize));
#endif
}
}
}}}
although who knows how many other 32bit issues might be hiding?
--
Ticket URL: <https://trac.macports.org/ticket/63164#comment:38>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list