[Bug 201738] [PATCH] ntpd Makefile links both libmd and libcrypto.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 21 10:12:58 UTC 2015


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 at FreeBSD.org
          Reporter: John.Marshall at 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.


More information about the freebsd-bugs mailing list