for review: configure for libc6 with Linux.

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Feb 10 18:20:13 AEDT 1998


On 10-Feb-1998, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> 
> Fix the boehm_gc problem with libc6 on Linux systems.
> This is a Mercury only fix because the boehm_gc doesn't use autoconf.
> (It's not the world's most elegant fix, but it does fix the problem).
...
> +++ README.Linux	1998/02/10 05:06:22
> @@ -7,8 +7,11 @@
>  wrongly assume your Linux system uses ELF; if that happens, you will you
>  have to manually edit the EXT_FOR_SHARED_LIB variable in Mmake.common.
>  
> -It is possible that on some recent versions of Linux, you may get an
> -error when compiling boehm_gc/os_dep.c.  If so, apply the patch below.
> +There are some incompatibilities in different kernel versions and libc
> +versions to do with the handling of signals. We had added some
> +autoconfiguration code to try to detect which header files need to be
> +included, but if you have trouble compiling boehm_gc/os_dep.c, try
> +applying the patch below (and send a bug report if you can).

s/send/send us/ ?

> Index: configure.in
...
> +			main() {

I suggest `int main() {'.

> New File: boehm_gc/mercury_boehm_gc_conf.h.in
...
> /*
> ** IMPORTANT NOTE:
> ** This file must not contain any #include statements,
> ** and may not define any global variables,
> ** for reasons explained in mercury_imp.h.
> ** This file should contain _only_ configuration macros.
> */

The reasons explained in mercury_imp.h apply only to runtime/mercury_conf.h,
not to boehm_gc/mercury_boehm_gc_conf.h.  You should delete that paragraph.

Otherwise that change looks OK.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list