Maintained by: NLnet Labs

[Unbound-users] Compile ldns 1.6.16/unbound 1.4.19 on Solaris 10.

Simon-Bernard Drolet
Tue Dec 18 02:23:55 CET 2012


Hi Wouter,

Thank's.

This is compiling now, thank's.

A simple ifdef !

> Hi Simon-Bernard,
>
> On 12/15/2012 10:10 PM, Simon-Bernard Drolet wrote:
>> Hi Dan,
>>
>> Thank's for the infos.
>>
>> But my goal here is to get unbound and drill to compile with the
>> stock openssl from Solaris just like in previous version.
>>
>> And because there is still a configure option to compile without
>> sha2, it should work...
>>
>> So there is an issue with some ifdefs...
> Yes, they are fixed, below the patch for it if you want it.  The patch
> is also applied for the next release of ldns.
>
> Best regards,
>     Wouter
>
> Index: dane.c
> ===================================================================
> - --- dane.c	(revision 3810)
> +++ dane.c	(working copy)
> @@ -121,6 +121,7 @@
>   		return *rdf ? LDNS_STATUS_OK : LDNS_STATUS_MEM_ERR;
>   		break;
>   	
> +#ifdef USE_SHA2
>   	case LDNS_TLSA_MATCHING_TYPE_SHA256:
>
>   		digest = LDNS_XMALLOC(unsigned char, SHA256_DIGEST_LENGTH);
> @@ -150,6 +151,7 @@
>
>   		return *rdf ? LDNS_STATUS_OK : LDNS_STATUS_MEM_ERR;
>   		break;
> +#endif /* USE_SHA2 */
>   	
>   	default:
>   		LDNS_FREE(buf);
>


On 12/14/12 04:50 PM, Simon-Bernard Drolet wrote:
> Hello,
>
> I'm trying to update my libevent, ldns and unbound package.
>
> I'm configuring the compile like this: (because of default ssl in 
> Solaris 10).
>
> # ./configure --disable-sha2 --disable-gost --disable-ecdsa
>
> While trying to compile ldns, I get this:
>
> # gmake
> ./libtool --tag=CC --quiet --mode=compile gcc -I. -I. -DHAVE_CONFIG_H
> -Wwrite-strings -W -Wall -O2 -g -std=c99 -D__EXTENSIONS__
> -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
> -D_ALL_SOURCE -I/usr/sfw/include -c ./dane.c -o dane.lo
> ./dane.c: In function `ldns_dane_cert2rdf':
> ./dane.c:122: error: `SHA256_DIGEST_LENGTH' undeclared (first use in
> this function)
> ./dane.c:122: error: (Each undeclared identifier is reported only once
> ./dane.c:122: error: for each function it appears in.)
> ./dane.c:137: error: `SHA512_DIGEST_LENGTH' undeclared (first use in
> this function)
> ./dane.c: In function `ldns_dane_get_nth_cert_from_validation_chain':
> ./dane.c:293: warning: implicit declaration of function `X509_check_ca'
> gmake: *** [dane.lo] Error 1
>
>
> Any pointers ?
>
> It was ok in 1.6.13... But I get the same error with 1.6.14, 1.6.15
> and 1.6.16... With the dane.c file...
>


-- 
Simon-Bernard Drolet, SPecialiste X Inc., 514.247.6741
Simon.Bernard.Drolet<at>gmail(dot)com, Senior Solaris Contractor, Canada