[MacPorts] #53433: wine, wine-devel, wine-crossover: Undefined symbols: "_strnlen"

MacPorts noreply at macports.org
Tue May 16 20:50:41 UTC 2017

#53433: wine, wine-devel, wine-crossover: Undefined symbols: "_strnlen"
  Reporter:  Umo022                            |      Owner:  ryandesign
      Type:  defect                            |     Status:  assigned
  Priority:  Normal                            |  Milestone:
 Component:  ports                             |    Version:  2.4.0
Resolution:                                    |   Keywords:  snowleopard
      Port:  wine, wine-devel, wine-crossover  |

Comment (by zoomosis):

 I ran into this problem today. I suspect the upstream folks haven't fixed
 it because they don't know what #ifdefs to use to support those OS X
 versions, although ideally their configure script should check for the
 presence of strnlen() and provide one if it's missing.

 In the meantime, putting this
 static size_t strnlen(const char *str, size_t max)
     const char *end = memchr (str, 0, max);
     return end ? (size_t)(end - str) : max;
 in d3d10/effect.c and d3d11/shader.c is a temporary fix.

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

More information about the macports-tickets mailing list