From: Dave Hart Date: Tue, 29 Mar 2011 13:35:13 +0000 (+0000) Subject: [Bug 1862] in6addr_any test in configure fooled by arm gcc 4.1.3 -O2. X-Git-Tag: NTP_4_2_7P143~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de80220827e8501f7caff01a76f893c03749d227;p=thirdparty%2Fntp.git [Bug 1862] in6addr_any test in configure fooled by arm gcc 4.1.3 -O2. bk: 4d91e011UT_pDZdlmicTeDBT_4UzBw --- diff --git a/ChangeLog b/ChangeLog index e822295eb..e73957a2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ * [Bug 1732] ntpd ties up CPU on disconnected USB refclock. * [Bug 1861] tickadj build failure using uClibc. +* [Bug 1862] in6addr_any test in configure fooled by arm gcc 4.1.3 -O2. * Remove kernel line discipline driver code for clk and chu, deprecate related LDISC_ flags, and remove associated ntpd code to decode the timestamps, remove clktest line discipline test program. diff --git a/ntpd/ntp_crypto.c b/ntpd/ntp_crypto.c index 80f63c8e6..44ad2d1d8 100644 --- a/ntpd/ntp_crypto.c +++ b/ntpd/ntp_crypto.c @@ -2981,7 +2981,6 @@ cert_sign( subj = X509_get_subject_name(req); X509_set_subject_name(cert, subj); X509_set_pubkey(cert, pkey); - ext = X509_get_ext(req, 0); temp = X509_get_ext_count(req); for (i = 0; i < temp; i++) { ext = X509_get_ext(req, i); diff --git a/sntp/m4/ntp_ipv6.m4 b/sntp/m4/ntp_ipv6.m4 index ccb9bf735..b46ff8e7c 100644 --- a/sntp/m4/ntp_ipv6.m4 +++ b/sntp/m4/ntp_ipv6.m4 @@ -354,10 +354,10 @@ AC_CACHE_CHECK( #include $isc_netinetin6_hack $isc_netinet6in6_hack + + struct in6_addr * pin6addr_any = &in6addr_any; ]], [[ - struct in6_addr in6; - in6 = in6addr_any; ]] )], [isc_cv_have_in6addr_any=yes],