[m-dev.] DIFF: configure.in bug for linux

Tyson Dowd trd at stimpy.cs.mu.oz.au
Mon Mar 23 18:37:57 AEDT 1998


On 23-Mar-1998, Peter David ROSS <petdr at cs.mu.OZ.AU> wrote:
> Tyson has already reviewed this.

Just some comments for everyone's benefit:

It still needed to include the log message so people know
what was fixed! Here it is:

---

Estimated hours taken: 0.1

Fix for detecting whether or not to use asm/sigcontext.h with boehm_gc.
(Problem only occurs in linux systems).

boehm_gc/configure.in
	Use the correct struct according to which version of linux being
	used.

---

It only occurs with *some* linux systems, eg Pete's machine which is
Debian 1.3.
And include the time it took to debug, which was well over the 0.1 hours
it took to actually fix it.

> 
> Index: configure.in
> ===================================================================
> RCS file: /home/mercury1/repository/mercury/configure.in,v
> retrieving revision 1.123
> diff -u -r1.123 configure.in
> --- configure.in	1998/03/11 19:32:00	1.123
> +++ configure.in	1998/03/23 04:12:06
> @@ -1528,16 +1528,15 @@
>  			#include <signal.h> 
>  			#include <linux/version.h>
>  			#if (LINUX_VERSION_CODE >= 0x20100)
> -				typedef void (* REAL_SIG_PF)(int, 
> -						struct sigcontext);
> +				typedef struct sigcontext xxx;
>  			#else
> -				typedef void (* REAL_SIG_PF)(int, 
> -						struct sigcontext_struct);
> +				typedef struct sigcontext_struct xxx;
>  			#endif
> +			typedef void (* REAL_SIG_PF)(int, xxx);
>  
>  			int main() {
>  				REAL_SIG_PF handler;
> -				struct sigcontext foo;
> +				xxx foo;
>  				if (0) {
>  					handler(0, foo);
>  				}
> --------------------------------------------------------------------------
> mercury-developers mailing list
> Post messages to:       mercury-developers at cs.mu.oz.au
> Administrative Queries: owner-mercury-developers at cs.mu.oz.au
> Subscriptions:          mercury-developers-request at cs.mu.oz.au
> --------------------------------------------------------------------------

-- 
       Tyson Dowd           # So I asked Sarah: what's the serial number on
                            # your computer? She replied:
     trd at cs.mu.oz.au        #          A-C-2-4-0-V-/-5-0-H-Z
http://www.cs.mu.oz.au/~trd #



More information about the developers mailing list