[MacPorts] #53143: libuv @1.10.1 does not build on PPC Tiger, Mac OS X

MacPorts noreply at macports.org
Fri Dec 23 18:01:39 CET 2016


#53143: libuv @1.10.1 does not build on PPC Tiger, Mac OS X
---------------------------+-------------------
 Reporter:  ballapete      |      Owner:
     Type:  defect         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:
 Keywords:  tiger powerpc  |       Port:  libuv
---------------------------+-------------------
 `src/unix/fs.c` uses unknown struct members, dst->st_birthtim.tv_sec and
 dst->st_birthtim.tv_nsec, and `src/unix/tty.c` uses an unknown macro
 TIOCPTYGNAME. These and can easily be fixed with the provided patch files.

 `src/unix/fsevents.c` is a bit harder to fix. It includes
 /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OpenTransportProviders.h,
 which has

 {{{
 /* TCP Level Options*/

 enum {
   TCP_NODELAY                   = 0x01,
   TCP_MAXSEG                    = 0x02,
   TCP_NOTIFY_THRESHOLD          = 0x10, /** not a real XTI option */
   TCP_ABORT_THRESHOLD           = 0x11, /** not a real XTI option */
   TCP_CONN_NOTIFY_THRESHOLD     = 0x12, /** not a real XTI option */
   TCP_CONN_ABORT_THRESHOLD      = 0x13, /** not a real XTI option */
   TCP_OOBINLINE                 = 0x14, /** not a real XTI option */
   TCP_URGENT_PTR_TYPE           = 0x15, /** not a real XTI option */
   TCP_KEEPALIVE                 = 0x0008 /* keepalive defined in
 OpenTransport.h */
 };
 }}}

 The C pre-processor generates

 {{{
 enum {
   0x01 = 0x01,
   0x02 = 0x02,
   TCP_NOTIFY_THRESHOLD = 0x10,
   TCP_ABORT_THRESHOLD = 0x11,
   TCP_CONN_NOTIFY_THRESHOLD = 0x12,
   TCP_CONN_ABORT_THRESHOLD = 0x13,
   TCP_OOBINLINE = 0x14,
   TCP_URGENT_PTR_TYPE = 0x15,
   0x10 = 0x0008
 };
 }}}

 which of course leads to an error:

 {{{
 In
 /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OpenTransportProviders.h:108:
 error: expected identifier before numeric constant
 }}}

 The reason for is presumingly /usr/include/netinet/tcp.h:

 {{{
 #ifndef _NETINET_TCP_H_
 #define _NETINET_TCP_H_
 .
 .
 .
 /*
  * User-settable options (used with setsockopt).
  */
 #define TCP_NODELAY     0x01    /* don't delay send to coalesce packets */
 #ifndef _POSIX_C_SOURCE
 #define TCP_MAXSEG              0x02    /* set maximum segment size */
 #define TCP_NOPUSH              0x04    /* don't push last block of write
 */
 #define TCP_NOOPT               0x08    /* don't use TCP options */
 #define TCP_KEEPALIVE   0x10    /* idle time used when SO_KEEPALIVE is
 enabled */
 #endif /* _POSIX_C_SOURCE */

 #endif
 }}}

 For this I cannot imagine a fix…

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


More information about the macports-tickets mailing list