Actions
Bug #6234
closed--disable-libsctp still depends on sctp defines
Start date:
10/22/2023
Due date:
% Done:
100%
Spec Reference:
Description
Works with 2a405d4f06bf364d04ec07578c9f762cac01785e but fails currently
./configure --disable-doxygen --disable-detect-tls-gcc-arm-bug --disable-uring --disable-libusb --disable-pcsc --disable-gnutls --disable-libmnl --disable-libsctp
socket.c: In function 'osmo_sock_multiaddr_add_local_addr':
socket.c:1292:14: warning: implicit declaration of function 'addrinfo_helper_multi'; did you mean 'addrinfo_helper'? [-Wimplicit-function-declaration]
1292 | rc = addrinfo_helper_multi(res, AF_UNSPEC, type, proto, addrs,
| ^~~~~~~~~~~~~~~~~~~~~
| addrinfo_helper
socket.c:1297:9: warning: implicit declaration of function 'addrinfo_has_v4v6addr' [-Wimplicit-function-declaration]
1297 | addrinfo_has_v4v6addr((const struct addrinfo **)res, addrs_cnt,
| ^~~~~~~~~~~~~~~~~~~~~
socket.c:1311:14: warning: implicit declaration of function 'addrinfo_to_sockaddr' [-Wimplicit-function-declaration]
1311 | rc = addrinfo_to_sockaddr(new_addr_family, (const struct addrinfo **)res,
| ^~~~~~~~~~~~~~~~~~~~
socket.c:1319:14: warning: implicit declaration of function 'sctp_bindx' [-Wimplicit-function-declaration]
1319 | rc = sctp_bindx(sfd, (struct sockaddr *)addrs_buf, addrs_cnt, SCTP_BINDX_ADD_ADDR);
| ^~~~~~~~~~
socket.c:1319:71: error: 'SCTP_BINDX_ADD_ADDR' undeclared (first use in this function)
1319 | rc = sctp_bindx(sfd, (struct sockaddr *)addrs_buf, addrs_cnt, SCTP_BINDX_ADD_ADDR);
| ^~~~~~~~~~~~~~~~~~~
socket.c:1319:71: note: each undeclared identifier is reported only once for each function it appears in
socket.c:1323:17: warning: implicit declaration of function 'multiaddr_snprintf' [-Wimplicit-function-declaration]
1323 | multiaddr_snprintf(strbuf, sizeof(strbuf), addrs, addrs_cnt);
| ^~~~~~~~~~~~~~~~~~
socket.c: In function 'osmo_sock_multiaddr_del_local_addr':
socket.c:1395:71: error: 'SCTP_BINDX_REM_ADDR' undeclared (first use in this function)
1395 | rc = sctp_bindx(sfd, (struct sockaddr *)addrs_buf, addrs_cnt, SCTP_BINDX_REM_ADDR);
| ^~~~~~~~~~~~~~~~~~~
Actions