[MacPorts] #69838: legacy-support: stpncpy: error: expected parameter declarator

MacPorts noreply at macports.org
Sat Apr 27 02:50:02 UTC 2024


#69838: legacy-support: stpncpy: error: expected parameter declarator
------------------------+--------------------------------------
 Reporter:  ryandesign  |      Owner:  mascguy
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.9.3
 Keywords:              |       Port:  legacy-support, R-nloptr
------------------------+--------------------------------------
 Building R-nloptr fails with this error that implicates the newly-added
 `stpncpy` implementation (#69571):

 https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/198028/steps
 /install-port/logs/stdio

 {{{
 /opt/local/include/LegacySupport/string.h:30:14: error: expected parameter
 declarator
 extern char *stpncpy(char *dst, const char *src, size_t n);
              ^
 /Developer/SDKs/MacOSX10.7.sdk/usr/include/secure/_string.h:110:5: note:
 expanded from macro 'stpncpy'
   ((__darwin_obsz0 (dest) != (size_t) -1)                               \
     ^
 /Developer/SDKs/MacOSX10.7.sdk/usr/include/secure/_common.h:38:63: note:
 expanded from macro '__darwin_obsz0'
 #define __darwin_obsz0(object) __builtin_object_size (object, 0)
                                                               ^
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/69838>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list