[Ecls-list] ECL on OpenBSD/HPPA

Juan Jose Garcia Ripoll lisp at arrakis.es
Mon Nov 7 10:36:09 UTC 2005


On Mon, 2005-11-07 at 19:20 +0100, Julian Stecklina wrote:
> I configured ECL with --disable-boehm (as it assumes all HPPA platforms
> run HP-UX):

In any case, the Boehm-Weiser GC does not work well in OpenBSD.

> gcc -c -I. -I/home/blitz/ecls/src/c -I/home/blitz/ecls/src/c/gc
> -I/home/blitz/ecls/src/h -I../h  -g -O2 -fPIC -fstrict-aliasing
> -Dopenbsd  -o file.o file.c /home/blitz/ecls/src/c/file.d: In function
> `ecl_make_stream_from_fd': /home/blitz/ecls/src/c/file.d:2824: error:
> structure has no member named `_IO_buf_base' gmake[2]: *** [file.o]
> Error 1
> 
> The corresponding code is:
> 
> #if !defined(GBC_BOEHM)
>    fp->_IO_buf_base = NULL; /* BASEFF */;
>    setbuf(fp, stream->stream.buffer = cl_alloc_atomic(BUFSIZ));
> #endif
> 
> Is there a portable way to accomplish this?

You can uncomment these statements. I have never been sure about their
importance, and given that we now have finalizer code for streams, I
think it is pretty useless.

However, if we want to preserve this, it is safe to replace the first
line with
	setbuf(fp, NULL);
or simply remove it.

Regards,

Juanjo





More information about the ecl-devel mailing list