The following reply was made to PR os-netbsd/2462; it has been noted by GNATS.
From: Todd Vierling <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: Subject: Re: os-netbsd/2462: DSO symbols don't need an underscore prepended
on NetBSD/pmax 1.3.2
Date: Mon, 7 Dec 1998 12:37:48 -0500 (EST)
A fix for the user's problem comes from one of the Apache patches in the
NetBSD "pkgsrc" system:
$NetBSD: patch-ac,v 1.1 1998/10/02 14:40:13 tv Exp $
--- src/os/unix/os.h.orig Fri Oct 2 10:14:27 1998
+++ src/os/unix/os.h Fri Oct 2 10:14:54 1998
@@ -114,7 +114,8 @@
#define RTLD_GLOBAL 0
#endif
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || \
+ (defined(__NetBSD__) && !defined(__ELF__))
#define DLSYM_NEEDS_UNDERSCORE
#endif
=====
This solution may also be needed for FreeBSD ELF (3.0), and OpenBSD ELF; in
that case, the expression could/should be:
#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)) \
&& !defined(__ELF__)
--
-- Todd Vierling (Personal [EMAIL PROTECTED]; Bus. [EMAIL PROTECTED])