[MacPorts] #38088: getopt @1.1.5: bad magic number (not a Mach-O file)
MacPorts
noreply at macports.org
Tue Feb 19 03:21:50 PST 2013
#38088: getopt @1.1.5: bad magic number (not a Mach-O file)
------------------------------+--------------------------------
Reporter: Peter_Dyballa@… | Owner: macports-tickets@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Resolution: fixed | Keywords: tiger
Port: getopt |
------------------------------+--------------------------------
Changes (by ryandesign@…):
* status: new => closed
* resolution: => fixed
Comment:
I note that on Mountain Lion the following message appears:
{{{
ld: warning: ignoring file gnu/getopt.o, file was built for unsupported
file format ( 0x7f 0x45 0x4c 0x46 0x 2 0x 1 0x 1 0x 0 0x 0 0x 0 0x 0 0x 0
0x 0 0x 0 0x 0 0x 0 ) which is not the architecture being linked (x86_64):
gnu/getopt.o
ld: warning: ignoring file gnu/getopt1.o, file was built for unsupported
file format ( 0x7f 0x45 0x4c 0x46 0x 2 0x 1 0x 1 0x 0 0x 0 0x 0 0x 0 0x 0
0x 0 0x 0 0x 0 0x 0 ) which is not the architecture being linked (x86_64):
gnu/getopt1.o
}}}
Despite the warning, the build succeeds, but I suspect whatever problem ld
is warning about here on Mountain Lion is the same problem causing the
build to fail on Tiger.
And the problem seems to be that version 1.1.5 was shipped with pre-
compiled Linux ELF object files in the distfile:
{{{
$ sudo port extract getopt
---> Fetching distfiles for getopt
---> Verifying checksum(s) for getopt
---> Extracting getopt
$ cd $(port work getopt)
$ file getopt-*/gnu/*.o
getopt-1.1.5/gnu/getopt.o: ELF 64-bit LSB relocatable, x86-64, version 1
(SYSV), not stripped
getopt-1.1.5/gnu/getopt1.o: ELF 64-bit LSB relocatable, x86-64, version 1
(SYSV), not stripped
$
}}}
Fixed in r103250. Revision increased to rebuild for everybody, because I'm
concerned about the "ignoring file" warnings; I suspect it was not
intended for those files to be ignored, so let's rebuild correctly to be
sure.
--
Ticket URL: <https://trac.macports.org/ticket/38088#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list