Project

General

Profile

Actions

Bug #6234

closed

--disable-libsctp still depends on sctp defines

Added by Hoernchen 7 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
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 #1

Updated by pespin 7 months ago

Strange, it does compile fine for me when using your configure flags. I'm checking into it.

Actions #2

Updated by pespin 7 months ago

Nevermind, error of mine while applying the flags, I can reproduce it.

Actions #3

Updated by pespin 7 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 90

https://gerrit.osmocom.org/c/libosmocore/+/34855 socket.c: Fix compilation with --disable-libsctp

Actions #4

Updated by pespin 7 months ago

  • Status changed from Feedback to Resolved
  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)