Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 2015 10:12:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201738] [PATCH] ntpd Makefile links both libmd and libcrypto.
Message-ID:  <bug-201738-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201738-8>