[Bug 292985] net/mosquitto: fails to build

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 06 Feb 2026 01:39:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292985

            Bug ID: 292985
           Summary: net/mosquitto: fails to build
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: leres@freebsd.org
          Reporter: rozhuk.im@gmail.com
          Assignee: leres@freebsd.org
             Flags: maintainer-feedback?(leres@freebsd.org)

FAILED: [code=1] lib/CMakeFiles/libmosquitto.dir/connect.c.o 
/usr/local/libexec/ccache/cc -DCMAKE -DOPENSSL_API_COMPAT=0x10100000L
-DVERSION=\"2.1.1\" -DWITH_MEMORY_TRACKING -DWITH_SOCKS -DWITH_THREADING
-DWITH_TLS -DWITH_TLS_PSK -DWITH_UNIX_SOCKETS -DWITH_WEBSOCKETS=WS_IS_BUILTIN
-Dlibmosquitto_EXPORTS
-I/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.1.1/deps/picohttpparser
-I/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.1.1/include
-I/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.1.1/lib
-I/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.1.1
-I/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.1.1/common
-I/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.1.1/libcommon
-I/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.1.1/deps -isystem
/usr/local/include -O2 -pipe -O3 -pipe -funroll-loops -mretpoline
-fno-delete-null-pointer-checks  -fstack-protector-strong -fno-strict-aliasing 
-fdebug-prefix-map=/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.1.1=.
-O2 -pipe -O3 -pipe -funroll-loops -mretpoline -fno-delete-null-pointer-checks 
-fstack-protector-strong -fno-strict-aliasing 
-fdebug-prefix-map=/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.1.1=.
-DNDEBUG -std=gnu99 -fPIC -Wall -Wextra -Wconversion -pthread -MD -MT
lib/CMakeFiles/libmosquitto.dir/connect.c.o -MF
lib/CMakeFiles/libmosquitto.dir/connect.c.o.d -o
lib/CMakeFiles/libmosquitto.dir/connect.c.o -c
/tmp/ports/usr/ports/net/mosquitto/work/mosquitto-2.1.1/lib/connect.c
../mosquitto-2.1.1/lib/connect.c:199:55: error: incomplete definition of type
'struct sockaddr_in'
  199 |                                 *remote_port = ntohs(((struct
sockaddr_in *)&addr)->sin_port);
      |                                                     
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/arpa/inet.h:173:26: note: expanded from macro 'ntohs'
  173 | #define ntohs(x)        __ntohs(x)
      |                                 ^
/usr/include/sys/_endian.h:91:31: note: expanded from macro '__ntohs'
   91 | #define __ntohs(x)      (__bswap16(x))
      |                                    ^
/usr/include/sys/_endian.h:85:40: note: expanded from macro '__bswap16'
   85 | #define __bswap16(x)    __builtin_bswap16(x)
      |                                           ^
../mosquitto-2.1.1/lib/connect.c:199:35: note: forward declaration of 'struct
sockaddr_in'
  199 |                                 *remote_port = ntohs(((struct
sockaddr_in *)&addr)->sin_port);
      |                                                               ^
../mosquitto-2.1.1/lib/connect.c:201:56: error: incomplete definition of type
'struct sockaddr_in'
  201 |                         if(inet_ntop(AF_INET, &((struct sockaddr_in
*)&addr)->sin_addr.s_addr, buf, (socklen_t)len)){
      |                                               
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
../mosquitto-2.1.1/lib/connect.c:201:36: note: forward declaration of 'struct
sockaddr_in'
  201 |                         if(inet_ntop(AF_INET, &((struct sockaddr_in
*)&addr)->sin_addr.s_addr, buf, (socklen_t)len)){
      |                                                         ^
../mosquitto-2.1.1/lib/connect.c:206:56: error: incomplete definition of type
'struct sockaddr_in6'
  206 |                                 *remote_port = ntohs(((struct
sockaddr_in6 *)&addr)->sin6_port);
      |                                                     
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/arpa/inet.h:173:26: note: expanded from macro 'ntohs'
  173 | #define ntohs(x)        __ntohs(x)
      |                                 ^
/usr/include/sys/_endian.h:91:31: note: expanded from macro '__ntohs'
   91 | #define __ntohs(x)      (__bswap16(x))
      |                                    ^
/usr/include/sys/_endian.h:85:40: note: expanded from macro '__bswap16'
   85 | #define __bswap16(x)    __builtin_bswap16(x)
      |                                           ^
../mosquitto-2.1.1/lib/connect.c:206:35: note: forward declaration of 'struct
sockaddr_in6'
  206 |                                 *remote_port = ntohs(((struct
sockaddr_in6 *)&addr)->sin6_port);
      |                                                               ^
../mosquitto-2.1.1/lib/connect.c:208:58: error: incomplete definition of type
'struct sockaddr_in6'
  208 |                         if(inet_ntop(AF_INET6, &((struct sockaddr_in6
*)&addr)->sin6_addr.s6_addr, buf, (socklen_t)len)){
      |                                                
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
../mosquitto-2.1.1/lib/connect.c:208:37: note: forward declaration of 'struct
sockaddr_in6'
  208 |                         if(inet_ntop(AF_INET6, &((struct sockaddr_in6
*)&addr)->sin6_addr.s6_addr, buf, (socklen_t)len)){
      |                                                          ^
4 errors generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.