Date:        Thu, 25 Jan 2024 20:12:36 +0100
    From:        Adam <a...@netbsd.org>
    Message-ID:  <e355d57b-f01d-4c3f-ac9d-cbb1bacff...@netbsd.org>

  | Correct, _LIBC_INTERNAL is not defined for tools/compat.

I wonder what the difference is between your environment, and
a standard build on a NetBSD host.

  | MD2Transform() must be defined for MD2Update() in lib/libc/hash/md2/md2.c.

Yes, that I understand.

Try the following patch to src/tools/compat/md2.h and see if that helps
(though I think there should be a better way).

kre

Index: md2.h
===================================================================
RCS file: /cvsroot/src/tools/compat/md2.h,v
retrieving revision 1.2
diff -u -r1.2 md2.h
--- md2.h       27 Oct 2003 00:12:43 -0000      1.2
+++ md2.h       25 Jan 2024 19:59:10 -0000
@@ -1,5 +1,8 @@
 /*     $NetBSD: md2.h,v 1.2 2003/10/27 00:12:43 lukem Exp $    */
 
 /* We unconditionally use the NetBSD MD2 in libnbcompat. */
+#ifndef _LIBC_INTERNAL
+#define        _LIBC_INTERNAL
+#endif
 #include "nbtool_config.h"
 #include "../../include/md2.h"


Reply via email to