MD2 Dependency in FreeBSD 8.0 - OpenSSL 1.0.0 Needs MD2 enabled

John Marshall john.marshall at
Mon May 3 04:51:42 UTC 2010

This is obviously a workaround but...

After updating ports (including security/openssl) on a FreeBSD 8-STABLE
(Feb 25) system, I couldn't build net/samba33.  This is what I saw...

  Linking bin/smbd
  /usr/lib/ undefined reference to `MD2_Init'
  /usr/lib/ undefined reference to `MD2_Final'
  /usr/lib/ undefined reference to `MD2_Update'
  gmake: *** [bin/smbd] Error 1
  *** Error code 1

OpenSSL 1.0.0 does not include MD2 by default but does include a knob:

  MD2     "Build with MD2 hash (obsolete)" off

If I re-build OpenSSL 1.0.0 with the "obsolete" MD2, then samba builds

Is there a better workaround until such time as the base system Heimdal
is updated?

John Marshall
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list