Under OpenBSD, plugins do not load.  This is apparently caused
by the fact that OpenBSD does the classical C thing of appending
an "_" to the beginning of each function name.  Ntop already 
handles this on Darwin, so the patch to fix it for OpenBSD is
extremely small.  

Patch is at the end of the e-mail.

Tanner
-- 
Tanner Lovelace | [EMAIL PROTECTED] | http://www.opennms.org/
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
GPG Fingerprint = AFD2 597F 4028 FFE2 B11A  4383 BE46 B4E1 26DC 03A3
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
 This would be a very good time to hang out with the Open Source 
 people, before they get formally reclassified as a national security 
 threat. -- Bruce Sterling

--- ntop.h~     2002-06-04 08:01:43.000000000 -0400
+++ ntop.h      2002-06-04 17:48:24.000000000 -0400
@@ -1456,7 +1456,7 @@
 
 #define PLUGIN_EXTENSION                  ".so"
 
-#ifdef DARWIN
+#if defined(DARWIN) || defined(__OpenBSD__)
 #define PLUGIN_ENTRY_FCTN_NAME "_PluginEntryFctn"
 #else
 #define PLUGIN_ENTRY_FCTN_NAME "PluginEntryFctn"

_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to