[MacPorts] #22948: odcctools 20061117_0 is incompatible with building tcl 8.5.8
MacPorts
noreply at macports.org
Sat Dec 19 04:35:42 PST 2009
#22948: odcctools 20061117_0 is incompatible with building tcl 8.5.8
--------------------------------+-------------------------------------------
Reporter: stephen@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.99
Keywords: | Port: odcctools
--------------------------------+-------------------------------------------
When building Tcl, the build fails because of a duplicate definition of an
enumeration. I worked around it by adding an #ifndef like this to
/opt/local/include/mach-o/arch.h:
{{{
#ifndef _ARCHITECTURE_BYTE_ORDER_H_
enum NXByteOrder {
NX_UnknownByteOrder,
NX_LittleEndian,
NX_BigEndian
};
#endif
}}}
This prevents that definition from conflicting with an identical
definition in /usr/include/architecture/byte_order.h, and with that in
place the build completes successfully.
Given the apparent age of what is presumably the current MacPorts release
of odcctools, I guess it's (nearly) unused, obsolete, and deprecated.
ISTR having removed it before, but G95 depends on it, and I guess it got
pulled back in that way.
It might be preferable to do
{{{
#ifndef _ARCHITECTURE_BYTE_ORDER_H_
#error You probably ought to remove odcctools before building anything
else!
#endif
}}}
as heaven only knows what other damage that ancient musty code might be
doing....
--
Ticket URL: <http://trac.macports.org/ticket/22948>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list