From owner-freebsd-bugs@freebsd.org Tue Jul 21 10:12:58 2015 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D53509A7037 for ; Tue, 21 Jul 2015 10:12:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A79481BEE for ; Tue, 21 Jul 2015 10:12:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t6LACwFC031706 for ; Tue, 21 Jul 2015 10:12:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 201738] [PATCH] ntpd Makefile links both libmd and libcrypto. Date: Tue, 21 Jul 2015 10:12:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: John.Marshall@riverwillow.com.au X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2015 10:12:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201738 Bug ID: 201738 Summary: [PATCH] ntpd Makefile links both libmd and libcrypto. Product: Base System Version: 10.2-STABLE Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: John.Marshall@riverwillow.com.au Keywords: patch Created attachment 159041 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=159041&action=edit Remove stray -lmd from LDADD assignment i386 FreeBSD 10.2-BETA2 r285662 Testing base system ntpd with old keys in /etc/ntp. Saw syslog entries every couple of minutes like the following but the server seemed to operate OK otherwise - as a client of unauthenticating servers. Jul 21 16:16:53 rwsrv04 ntpd[2169]: crypto_encrypt: error:00000000:lib(0):func(0):reason(0) Generated new host keys with ntp-keygen. Now ntpd failed to start. Jul 21 16:55:42 rwsrv04 ntpd[91910]: crypto_key: error:06074078:digital envelope routines:EVP_PBE_CipherInit:keygen failure An independent build of ntp 4.2.8p3 on 10.2-BETA2 worked fine. ldd(1) revealed that the base system ntpd was linked to libmd but the working ntpd was not. Also the base system ntp-keygen was not linked to libmd. All were linked to libcrypto. Checked the usr.sbin/ntp/ntpd/Makefile and saw what appeared to be a stray -lmd in the LDADD= assignment at Line 31. Conditional code follows at Line 42 to inclide libmd ONLY if OpenSSL has been disabled. I removed the -lmd from Line 31 and rebuilt ntpd. All is good :-) -- You are receiving this mail because: You are the assignee for the bug.