squeak 2.6 on HP-UX 10.20

Georg Gollmann georg.gollmann at tuwien.ac.at
Wed Nov 17 16:37:25 UTC 1999


--============_-1269265729==_ma============
Content-Type: text/plain; charset="us-ascii" ; format="flowed"


At 16:06 Uhr +0000 17.11.1999, Enrico Spinielli wrote:
>Hi all,
>I am trying to build a running version of squeak 2.6 on HP-UX 10.20
>but I found the following problems:
>*) configuration, dlopen not present:
>      checking for dlopen in libc... no
>      checking for dlopen in -ldl... no
>      configure: warning: dlopen not found: DISABLING NAMED PRIMITIVES
>
>    ????? Does anybody have already an implementation using sh_load?

Foe Squeak 2.3 I had put following into sqUnixExternalPrims.c:

#if defined(hpux) || defined (__hpux)
# include <dl.h>
# include <errno.h>
# define RTLD_NOW BIND_IMMEDIATE
# define NAME_MAX 128
# define dlopen(libName, flags) shl_load(libName, flags, 0L);
# define dlclose(handle) shl_unload(handle)
# define dlerror() strerror(errno)

void *dlsym(shl_t handle, char *symbol )
{
	void *val;
	shl_t lib;
	lib = handle;
	if (shl_findsym(&lib, symbol, TYPE_PROCEDURE, &val)) return NULL;
	return val;
}
#else
# include <dlfcn.h>
#endif

I have no idea how to fit this into the current configuration mechanism.

Georg
----
Dipl.Ing. Georg Gollmann                TU-Wien, Zentraler Informatikdienst
                                         Wiedner Hauptstr. 8-10
phon:(+43-1) 58801 - 42022              A-1040 Wien
fax: (+43-1) 58801 - 42099
mail:gollmann at zid.tuwien.ac.at
http://macos.tuwien.ac.at/Gollmann.html
--============_-1269265729==_ma============
Content-Type: text/html; charset="us-ascii"


<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { margin-top: 0 ; margin-bottom: 0 }
 --></style><title>Re: squeak 2.6 on HP-UX 10.20</title></head><body>
<div>At 16:06 Uhr +0000 17.11.1999, Enrico Spinielli wrote:</div>
<blockquote type="cite" cite>Hi all,<br>
I am trying to build a running version of squeak 2.6 on HP-UX
10.20<br>
but I found the following problems:<br>
*) configuration, dlopen not present:<br>
&nbsp;&nbsp;&nbsp;&nbsp; checking for dlopen in libc... no<br>
&nbsp;&nbsp;&nbsp;&nbsp; checking for dlopen in -ldl... no<br>
&nbsp;&nbsp;&nbsp;&nbsp; configure: warning: dlopen not found:
DISABLING NAMED PRIMITIVES<br>
</blockquote>
<blockquote type="cite" cite>&nbsp;&nbsp; ????? Does anybody have
already an implementation using sh_load?</blockquote>
<div><br></div>
<div>Foe Squeak 2.3 I had put following into
sqUnixExternalPrims.c:</div>
<div><tt><font color="#000000"><br></font></tt></div>
<div><tt><font color="#000000">#if defined(hpux) || defined
(__hpux)<br>
# include &lt;dl.h&gt;<br>
# include &lt;errno.h&gt;<br>
# define RTLD_NOW BIND_IMMEDIATE<br>
# define NAME_MAX 128<br>
# define dlopen(libName, flags) shl_load(libName, flags, 0L);<br>
# define dlclose(handle) shl_unload(handle)<br>
# define dlerror() strerror(errno)<br>
<br>
void *dlsym(shl_t handle, char *symbol )<br>
{<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </x-tab>void
*val;<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </x-tab>shl_t lib;<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </x-tab>lib = handle;<br>
<x-tab>&nbsp;&nbsp; </x-tab>if (shl_findsym(&amp;lib, symbol,
TYPE_PROCEDURE, &amp;val)) return NULL;<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </x-tab>return val;<br>
}<br>
#else<br>
# include &lt;dlfcn.h&gt;<br>
#endif</font></tt></div>
<div><br></div>
<div>I have no idea how to fit this into the current configuration
mechanism.</div>
<div><br></div>
<div>Georg</div>

<div>----<br>
Dipl.Ing. Georg
Gollmann&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TU-Wien, Zentraler
Informatikdienst<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Wiedner Hauptstr. 8-10<br>
phon:(+43-1) 58801 -
42022&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span>&nbsp;&nbsp;&nbsp;&nbsp; A-1040 Wien<br>
fax: (+43-1) 58801 - 42099<br>
mail:gollmann at zid.tuwien.ac.at<br>
http://macos.tuwien.ac.at/Gollmann.html</div>
</body>
</html>
--============_-1269265729==_ma============--





More information about the Squeak-dev mailing list