[Ecls-list] Successful ECL port to HP NonStop S-series server - Patches

Craig McDaniel craigmcd at gmail.com
Sun Mar 25 22:36:00 UTC 2007

On Sat Mar 24 2007 at 07:50, "Juan Jose Garcia-Ripoll" <jjgarcia at users.sourceforge.net> wrote:

> Thanks they have been incorporated. I had to make some minor changes.
> hstrerror() is not, under my understanding, replaced by strerror().

OK, I'll try again to make hstrerror work.

> Also #+nsr would do nothing, since the name for this platform becomes
> "nonstop" in aclocal.m4 Please test my changes and post patches when
> appropiate.

I used nsr because that's what showed up when I looked at *features*. I
guess the "nonstop" in the aclocal.m4 didn't take effect for some reason
and the "nsr" derived from uname was used. My other aclocal.m4 changes
did apply after autoconf, so I'll look into it.

> It would be nice to incorporate those patches to the ECL source tree.
> Otherwise this port is useless until the Boehm-Weiser garbage
> collector incorporates your fixes (if it ever does)

Actually, I first tried to port ecl about a year ago and got as far as
the GC. Boehm did incorporate my changes with version 6.8, and they are
in your gc source as well. Unfortunately, I discovered a bug recently,
so the following still needs to be changed:

--- gc6.8/include/private/gcconfig.h
+++ gc6.8-mymods/include/private/gcconfig.h
@@ -1470,8 +1470,8 @@
 #    define OS_TYPE "NONSTOP"
 #    define ALIGNMENT 4
 #    define DATASTART ((ptr_t) 0x08000000)
-     extern int _end[];
-#    define DATAEND (_end)
+     extern char **environ;
+#    define DATAEND ((ptr_t)(environ - 0x10))
 #    define STACKBOTTOM ((ptr_t) 0x4fffffff)
 #   endif

Thanks for incorporating the changes. I'll let you know how the testing

-Craig McDaniel

More information about the ecl-devel mailing list