[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gcl-devel] Re: OpenBSD and GCL
From: |
Camm Maguire |
Subject: |
Re: [Gcl-devel] Re: OpenBSD and GCL |
Date: |
23 Mar 2004 20:46:37 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Greetings! Yes the tools can be reworked somewhat. But the big
problem is sbrk, which doesn't appear to work at all on openbsd.
Magnus, I just thought I'd mention that if this is unchangeably the
case, sbrk can be emulated. You might want to take a look at the
macosx files for an example of this. Perhaps you would know how to
construct an openbsd analog?
Take care,
"Mike Thomas" <address@hidden> writes:
> Hi Magnus.
>
> Many thanks for the info.
>
> I'll look into those attachments later in the week when I get back to this
> problem - it's kind of a background relief task for me at the moment when I
> get frustrated with the Windows port.
>
> Once I know what is happening I'll let you know so that you can get set up.
>
> I did some nore work on this last night and the main problems were that, as
> it is distributed, OpenBSD 3.4 does not have GNU sed, GNU make, no isnormal
> and in ieeefp.h, no FP_NZERO.
>
> I just copied the h/FreeBSD.* files to OpenBSD.* and made appropriate
> changes. By working around the problems with isnormal and friends I got to
> the point where the BSD sed stopped me.
>
> I am now wondering whether the best strategy is to try and modify the source
> of GCL so that it works oput of the box on a stock standard OpenBSD or
> whether to ask potential builders to "download this, download that etc".
>
> There seems to be no OpenBSD 3.4 version of GNU sed available for download
> so it will probably have to be built from scratch - not attractive to
> potential users and I suspect against the OpenBSD philosophy of sticking to
> the audited, "officially blessed" packages.
>
> Cheers
>
> Mike Thomas
>
>
>
> | -----Original Message-----
> | From: address@hidden
> | [mailto:address@hidden
> | Behalf Of Magnus Henoch
> | Sent: Tuesday, 23 March 2004 10:06 PM
> | To: address@hidden
> | Subject: [Gcl-devel] Re: OpenBSD and GCL
> |
> |
> | "Mike Thomas" <address@hidden> writes:
> |
> | > Hi Camm.
> | >
> | > Just a note to let you know that last night I was possessed of
> | the need to
> | > procrastinate by installing OpenBSD 3.4 and hand tweaking ppp,
> | chat and KDE
> | > all from some CD's I found on a magazine cover, grab CVS head GCL and
> | > compile it.
> | >
> | > In short GCL doesn't compile out of the box on OpenBSD and
> | OpenBSD seems to
> | > be quite a nice lightweight Unix install, although you don't get the
> | > installation automation that Linux and Windows users have come
> | to expect.
> |
> | I started to port GCL to OpenBSD, but have no complete success yet due
> | to lack of time and skills.
> |
> | The attached patch against CVS head is what I have so far. I haven't
> | really sorted out the clean way of doing what I've done, so parts of
> | it are OpenBSD-specific. I'm also not sure whether all of it is
> | needed. The patch to configure.in, though, is probably cross-platform
> | correct, though it should be cleaned up.
> |
> | With these patches, and compiling with --enable-machine=FreeBSD and
> | either --enable-custreloc or --enable-dlopen, the compile proceeds
> | unto creation of raw_pre_gcl. Running raw_pre_gcl gives a "Memory
> | fault", due to infinite recursion eating stack space.
> |
> | The problem starts in o/alloc.c, line 149, where memory allocation
> | fails and an error is reported. For some reason, reporting that error
> | starts memory allocation, which fails... etc.
> |
> | Line 149 is:
> | IF_ALLOCATE_ERR error("Can't allocate. Good-bye!");
> |
> | The IF_ALLOCATE_ERR macro is defined in h/bsd.h, and calls
> | FIX_RANDOM_SBRK in the same file. It seems to me that sbrk() on
> | OpenBSD doesn't behave as this code expects it to behave.
> |
> | That's where I'm stuck. I don't know how to proceed from that.
> |
> | Regards,
> | Magnus
> |
>
>
>
>
> _______________________________________________
> Gcl-devel mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gcl-devel
>
>
>
--
Camm Maguire address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah
Re: [Gcl-devel] Re: OpenBSD and GCL, Camm Maguire, 2004/03/30