[MacPorts] #54410: util-linux @2.29.2 fails to build on Snow Leopard, Mac OS X 10.6.8, (cxx_stdlib = libc++) because of "Undefined symbols for architecture x86_64"
MacPorts
noreply at macports.org
Sun Jul 2 19:01:14 UTC 2017
#54410: util-linux @2.29.2 fails to build on Snow Leopard, Mac OS X 10.6.8,
(cxx_stdlib = libc++) because of "Undefined symbols for architecture
x86_64"
-------------------------+-------------------------
Reporter: ballapete | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Resolution: | Keywords: snowleopard
Port: util-linux |
-------------------------+-------------------------
Comment (by kencu):
I added it to the snowleopardfixes library, and then adding this bit to
the portfile:
{{{
platform darwin 10 {
depends_lib-append port:snowleopardfixes
configure.ldflags-append -lsnowleopardfixes
}
}}}
and the port built:
{{{
$ sudo port -v installed util-linux
The following ports are currently installed:
util-linux @2.29.2_0 (active) platform='darwin 10' archs='x86_64'
date='2017-07-02T11:53:21-0700'
}}}
IF you decide to use the library, a Portfile to install it is here:
<https://github.com/kencu/SnowLeopardPorts/tree/master/sysutils/snowleopardfixes>
So - this is a workaround - pretty easy to use - but the proper fix would
be to report this to the devs so they can add a check for it in autotools.
sometimes they do. Very often they do not (actually I have never seen them
do it once, come to think of it). The next option is to do it with a
patch.
I like the library because it works so easily. It may not turn out to be
100% perfect in every situation, though. I need to figure out a better way
to use the header more selectively. You don't always need the header (as
in this port, which didn't like it), but I'd be happier if I could figure
out a way to include the function definitions only when needed.
--
Ticket URL: <https://trac.macports.org/ticket/54410#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list