Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: Re: [Ethereal-dev] 0.8.16 on HP-UX 10.20

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Thu, 8 Mar 2001 05:20:25 -0600
On Thu, Mar 08, 2001 at 02:43:49AM -0600, ethereal-dev@xxxxxxxxxxxxxxxxxx wrote:
> epan/configure.in checks for dlopen but not shl_load (dlopen
> equivalent on HP-UX). Nowhere in epan/* is dlopen used though (you use
> the Glib equivalent). And, Glib 1.2.x supports shl_load under HP-UX.
> So, the patch below allows Ethereal to build on HP-UX 10.20 (it worked
> fine as-is under 11.00).
> 
> Note we also check for shl_load in the top-level configure though it's
> never used. Feel free to reject it. I note that dlopen is used only
> under Linux in packet-snmp.c
> 
> Using internal autoconf variables is probably not a good idea:
>   if test "$ac_cv_header_dlfcn_h" = yes ; then
>     AC_DEFINE(HAVE_PLUGINS)
>   fi

The following two patches are also needed.

-- 
albert chin (china@xxxxxxxxxxxxxxxxxx)

-- snip snip
--- acconfig.h.orig	Thu Mar  8 05:05:57 2001
+++ acconfig.h	Thu Mar  8 05:12:18 2001
@@ -42,3 +42,7 @@
 #undef HAVE_LIBPCAP
 
 #undef PLUGIN_DIR
+
+#undef HAVE_DLFCN_H
+
+#undef HAVE_DL_H
--- epan/acconfig.h.orig	Thu Mar  8 05:16:58 2001
+++ epan/acconfig.h	Thu Mar  8 05:17:07 2001
@@ -30,3 +30,7 @@
 #undef NEED_INET_ATON_H
 
 #undef NEED_INET_V6DEFS_H
+
+#undef HAVE_DLFCN_H
+
+#undef HAVE_DL_H