[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 18:29:37 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):

 Hmm. oops. Looks like that is one of SnowLeopard's missing glibc function
 that I haven't taken care of yet in my
 <https://github.com/kencu/snowleopardfixes> library.

 It's a pretty easy though
 <https://opensource.apple.com/source/Libc/Libc-825.26/string/FreeBSD/wcsdup.c.auto.html>

 Maybe try sticking this into a file that is likely named `column.c` and
 see if that works. If it does, please make a patch and help us all out! In
 the meantime, I'll add it to the remaining list I need to add.

 {{{
 wchar_t *
 wcsdup(const wchar_t *s)
 {
         wchar_t *copy;
         size_t len;

         len = wcslen(s) + 1;
         if ((copy = malloc(len * sizeof(wchar_t))) == NULL)
                 return (NULL);
         return (wmemcpy(copy, s, len));
 }
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/54410#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list