[MacPorts] #70672: libusrsctp fails to build: error: expected specifier-qualifier-list before 'uid_t' etc.

MacPorts noreply at macports.org
Sun Sep 1 13:31:40 UTC 2024


#70672: libusrsctp fails to build: error: expected specifier-qualifier-list before
'uid_t' etc.
--------------------------+------------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.1
 Keywords:                |       Port:  libusrsctp
--------------------------+------------------------
 {{{
 libtool: compile:  ccache /usr/bin/gcc-4.2 -DPACKAGE_NAME=\"\"
 -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
 -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libusrsctp\" -DVERSION=\"0.9.1\"
 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
 -DLT_OBJDIR=\".libs/\" -DSCTP_DEBUG=1 -DHAVE_SOCKET=1 -DHAVE_INET_ADDR=1
 -DHAVE_SYS_TYPES_H=1 -DHAVE_SIN_LEN=1 -I.
 -isystem/opt/local/include/LegacySupport -I/opt/local/include -pipe -Os
 -arch ppc -Wall -g -O0 -DINET -DINET6 -DUSE_SCTP_SHA1
 -DSCTP_PROCESS_LEVEL_LOCKS -DSCTP_SIMPLE_ALLOCATOR -D__Userspace__
 -D__APPLE_USE_RFC_2292 -U__APPLE__ -D__Userspace_os_Darwin -MT
 user_environment.lo -MD -MP -MF .deps/user_environment.Tpo -c
 user_environment.c -o user_environment.o >/dev/null 2>&1
 In file included from /opt/local/include/LegacySupport/sys/socket.h:27,
                  from ./netinet/sctp_os_userspace.h:354,
                  from ./netinet/sctp_os.h:72,
                  from user_socket.c:35:
 /usr/include/sys/socket.h:498: error: expected specifier-qualifier-list
 before 'uid_t'
 In file included from ./netinet/sctp_os.h:72,
                  from user_socket.c:35:
 ./netinet/sctp_os_userspace.h:358: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'userland_mutex_t'
 ./netinet/sctp_os_userspace.h:359: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'userland_cond_t'
 ./netinet/sctp_os_userspace.h:360: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'userland_thread_t'
 In file included from ./netinet/sctp_os_userspace.h:389,
                  from ./netinet/sctp_os.h:72,
                  from user_socket.c:35:
 ./user_socketvar.h:154: error: expected specifier-qualifier-list before
 'userland_cond_t'
 ./user_socketvar.h:250: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'accept_mtx'
 ./user_socketvar.h:775: warning: 'struct sockbuf' declared inside
 parameter list
 ./user_socketvar.h:775: warning: its scope is only this definition or
 declaration, which is probably not what you want
 ./user_socketvar.h:778: warning: 'struct sockbuf' declared inside
 parameter list
 In file included from ./netinet/sctp_os_userspace.h:430,
                  from ./netinet/sctp_os.h:72,
                  from user_socket.c:35:
 ./user_inpcb.h:366: warning: 'struct ucred' declared inside parameter list
 ./user_inpcb.h:368: warning: 'struct ucred' declared inside parameter list
 ./user_inpcb.h:369: warning: 'struct ucred' declared inside parameter list
 ./user_inpcb.h:372: warning: 'struct ucred' declared inside parameter list
 In file included from ./netinet/sctp_pcb.h:56,
                  from user_socket.c:36:
 ./netinet/sctp_structs.h:192: error: expected specifier-qualifier-list
 before 'userland_mutex_t'
 In file included from user_socket.c:36:
 ./netinet/sctp_pcb.h:214: error: expected specifier-qualifier-list before
 'userland_mutex_t'
 ./netinet/sctp_pcb.h:312: error: expected specifier-qualifier-list before
 'userland_mutex_t'
 ./netinet/sctp_pcb.h:517: error: expected specifier-qualifier-list before
 'userland_mutex_t'
 ./netinet/sctp_pcb.h:622: error: expected specifier-qualifier-list before
 'userland_mutex_t'
 In file included from user_socket.c:37:
 ./netinet/sctputil.h:117: warning: 'struct sockbuf' declared inside
 parameter list
 ./netinet/sctputil.h:126: warning: 'struct sockbuf' declared inside
 parameter list
 ./netinet/sctputil.h:371: warning: 'struct sockbuf' declared inside
 parameter list
 user_socket.c:48: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before 'accept_mtx'
 user_socket.c:49: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before 'accept_cond'
 user_socket.c: In function 'socantrcvmore_locked':
 user_socket.c:89: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:90: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:90: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:90: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c: In function 'socantrcvmore':
 user_socket.c:95: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c: In function 'socantsendmore_locked':
 user_socket.c:103: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:104: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:104: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:104: error: 'struct socket' has no member named 'so_snd'
 user_socket.c: In function 'socantsendmore':
 user_socket.c:110: error: 'struct socket' has no member named 'so_snd'
 user_socket.c: At top level:
 user_socket.c:119: warning: 'struct sockbuf' declared inside parameter
 list
 user_socket.c:120: error: conflicting types for 'sbwait'
 ./user_socketvar.h:778: error: previous declaration of 'sbwait' was here
 user_socket.c: In function 'sbwait':
 user_socket.c:125: error: dereferencing pointer to incomplete type
 user_socket.c:132: error: dereferencing pointer to incomplete type
 user_socket.c:132: error: dereferencing pointer to incomplete type
 user_socket.c: In function 'soalloc':
 user_socket.c:174: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:175: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:176: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:177: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:178: error: 'struct socket' has no member named 'timeo_cond'
 user_socket.c:182: error: 'struct socket' has no member named 'so_aiojobq'
 user_socket.c:182: error: 'struct socket' has no member named 'so_aiojobq'
 user_socket.c:182: error: 'struct socket' has no member named 'so_aiojobq'
 user_socket.c: In function 'sodealloc':
 user_socket.c:224: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:225: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:227: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:228: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:230: error: 'struct socket' has no member named 'timeo_cond'
 user_socket.c: In function 'sofree':
 user_socket.c:290: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:291: error: 'accept_mtx' undeclared (first use in this
 function)
 user_socket.c:291: error: (Each undeclared identifier is reported only
 once
 user_socket.c:291: error: for each function it appears in.)
 user_socket.c:316: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c: In function 'soisconnecting':
 user_socket.c:375: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:378: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c: In function 'soisdisconnecting':
 user_socket.c:392: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:395: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:396: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:396: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:396: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:397: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:398: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:399: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:399: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:399: error: 'struct socket' has no member named 'so_snd'
 user_socket.c: In function 'wakeup':
 user_socket.c:421: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:425: error: 'struct socket' has no member named 'timeo_cond'
 user_socket.c:427: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c: In function 'wakeup_one':
 user_socket.c:448: error: 'accept_mtx' undeclared (first use in this
 function)
 user_socket.c:452: error: 'accept_cond' undeclared (first use in this
 function)
 user_socket.c: In function 'soisconnected':
 user_socket.c:464: error: 'accept_mtx' undeclared (first use in this
 function)
 user_socket.c:465: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:471: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:479: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:479: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:479: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:479: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:487: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:489: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:497: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:500: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:500: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:500: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:500: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:501: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:501: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:501: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:501: error: 'struct socket' has no member named 'so_snd'
 user_socket.c: In function 'sonewconn':
 user_socket.c:513: error: 'accept_mtx' undeclared (first use in this
 function)
 user_socket.c:538: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:538: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:543: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:543: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:544: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:544: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:545: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:545: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:546: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:546: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:547: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:547: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:548: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:548: error: 'struct socket' has no member named 'so_snd'
 user_socket.c:580: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:580: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:580: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c:580: error: 'struct socket' has no member named 'so_rcv'
 user_socket.c: At top level:
 user_socket.c:1528: warning: 'struct sockbuf' declared inside parameter
 list
 user_socket.c: In function 'sbreserve_locked':
 user_socket.c:1531: error: dereferencing pointer to incomplete type
 user_socket.c:1532: error: dereferencing pointer to incomplete type
 user_socket.c:1532: error: dereferencing pointer to incomplete type
 user_socket.c:1533: error: dereferencing pointer to incomplete type
 user_socket.c:1533: error: dereferencing pointer to incomplete type
 . . .
 }}}

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


More information about the macports-tickets mailing list