[ldns-users] Build error on Solaris 10

Wouter Wijngaards wouter at nlnetlabs.nl
Mon Jan 3 12:29:01 UTC 2022


Hi,

I hope that the commit:
https://github.com/NLnetLabs/ldns/commit/f88a75f7159ec2e85e16234ffadf9903326c133a
fixes the issue. It sets the function as detected also when it needs to
search for libraries. It did not do that, and thus did not set the
HAVE_INET_NTOP define, and thus allowed the compatibility declaration.
But the fix sets the function as detected, also when it has to be
searched for, so the compatibility declaration is not necessary and is
skipped.

Best regards, Wouter

On 31/12/2021 14:13, İhsan Doğan via ldns-users wrote:
> Hello,
> 
> While trying to build ldns on Solaris 10 spark 64-Bit, I’m running into this issue:
> 
> gmake: Entering directory '/home/ihsan/opencsw/libldns/trunk/work/solaris10-sparc/build-isa-sparcv9/ldns-1.8.1'
> ./libtool --tag=CC --quiet --mode=compile /opt/developerstudio12.6/bin/cc -I. -I. -I/opt/csw/include -DHAVE_CONFIG_H -DLDNS_TRUST_ANCHOR_FILE="\"/etc/opt/csw/unbound/root.key\"" -fno-strict-aliasing -Wmissing-prototypes -Wunused-function -Wstrict-prototypes -Wwrite-strings -W -Wall -xO3 -m64 -xarch=sparc -xc99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE -I/opt/csw/include -c ./buffer.c -o buffer.lo
> "./ldns/config.h", line 675: identifier redeclared: inet_ntop
>         current : function(int, pointer to const void, pointer to char, unsigned long) returning pointer to const char
>         previous: function(int, restrict pointer to const void, restrict pointer to char, unsigned int) returning pointer to const char : "/usr/include/arpa/inet.h", line 68
> cc: acomp failed for ./buffer.c
> gmake: *** [Makefile:140: buffer.lo] Error 1
> gmake: Leaving directory '/home/ihsan/opencsw/libldns/trunk/work/solaris10-sparc/build-isa-sparcv9/ldns-1.8.1'
> gmake[1]: *** [/home/ihsan/opencsw/.buildsys/v2/gar//gar.lib.mk:908: build-work/solaris10-sparc/build-isa-sparcv9/ldns-1.8.1/Makefile] Error 2
> 
> I have to say that building the 32-Bit version of the library worked without any problem. 
> 
> 
> 
> 
> Regards
> 
> Ihsan
> 
> 
> _______________________________________________
> ldns-users mailing list
> ldns-users at lists.nlnetlabs.nl
> https://lists.nlnetlabs.nl/mailman/listinfo/ldns-users
> 


More information about the ldns-users mailing list