Unable to "make" Unbound - redefinitions in compat/fake-rfc2553.h

Kyle kylescottmorrison at gmail.com
Thu Apr 22 16:26:30 UTC 2021


I am struggling to actually run “make” against Unbound. I’ve run
./configure without issue, but then what I run “make” I get a redefinition
error related to compat/fake-rfc2553.h



In file included from
services/cache/dns.c:41:0:

./config.h:1262:0: warning: "strsep" redefined [enabled by
default]

 #define strsep
unbound_strsep

 ^


In file included from
/usr/include/string.h:633:0,

                 from ./config.h:1067,


                 from
services/cache/dns.c:41:

/usr/include/bits/string2.h:1285:0: note: this is the location of the
previous definition

 #  define strsep(s, reject) __strsep (s,
reject)

 ^


In file included from
./config.h:1359:0,

                 from
services/cache/dns.c:41:

./compat/fake-rfc2553.h:53:0: warning: "_SS_PADSIZE" redefined [enabled by
default]

 # define       _SS_PADSIZE     (_SS_MAXSIZE - sizeof (struct
sockaddr))

 ^


In file included from
/usr/include/sys/socket.h:39:0,

                 from ./config.h:1091,


                 from
services/cache/dns.c:41:

/usr/include/bits/socket.h:160:0: note: this is the location of the
previous definition

 #define _SS_PADSIZE
\

 ^

In file included from
./config.h:1359:0,

                 from
services/cache/dns.c:41:

./compat/fake-rfc2553.h:54:8: error: redefinition of 'struct
sockaddr_storage'

 struct sockaddr_storage
{

        ^


In file included from
/usr/include/sys/socket.h:39:0,

                 from
./config.h:1091,


                 from
services/cache/dns.c:41:

/usr/include/bits/socket.h:163:8: note: originally defined
here

 struct
sockaddr_storage


^

In file included from
./config.h:1359:0,

                 from
services/cache/dns.c:41:

./compat/fake-rfc2553.h:68:8: error: redefinition of 'struct
in6_addr'

 struct in6_addr
{

        ^


In file included from
./config.h:1099:0,

                 from services/cache/dns.c:41:


/usr/include/netinet/in.h:210:8: note: originally defined
here

 struct
in6_addr



^

./compat/fake-rfc2553.h:69:10: error: expected ':', ',', ';', '}' or
'__attribute__' before '.' token

  uint8_t
s6_addr[16];


^


In file included from
./config.h:1359:0,

                 from
services/cache/dns.c:41:

./compat/fake-rfc2553.h:74:8: error: redefinition of 'struct
sockaddr_in6'

        ^


In file included from
./config.h:1091:0,

                 from
services/cache/dns.c:41:

/usr/include/sys/socket.h:91:17: note: originally defined
here

 typedef union {
__SOCKADDR_ALLTYPES


^

In file included from
./config.h:1359:0,

                 from
services/cache/dns.c:41:

./compat/fake-rfc2553.h:136:8: error: redefinition of 'struct
addrinfo'

 struct addrinfo
{


^

In file included from
./compat/fake-rfc2553.h:45:0,

                 from
./config.h:1359,

                 from
services/cache/dns.c:41:

/usr/include/netdb.h:567:8: note: originally defined
here

 struct
addrinfo


^

make: *** [dns.lo] Error
1



Any ideas what is going wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20210422/baa7b306/attachment-0001.htm>


More information about the Unbound-users mailing list