Can't compile mol: ucontext redefined


Subject: Can't compile mol: ucontext redefined
From: David H. Wagner (wagner@math.uh.edu)
Date: Fri Mar 16 2001 - 13:15:12 MST


When I try to compile mol with freshly-resynced source and kernel 2.4.3-pre3
headers, I get the following error:

Entering '/usr/src/redhat/BUILD/mol/emulation'
gcc -pipe -O3 -Wall -I/usr/src/redhat/BUILD/mol/sinclude -I./include
-I../include -msoft-float -c -o obj/main.o main.c
In file included from main.c:49:
/usr/include/asm/ucontext.h:6: redefinition of `struct ucontext'
make[1]: *** [obj/main.o] Error 1
make: *** [_subdir_emulation] Error 2

I tested this with the #include lines from main.c. I found that if
 mol_config.h is left out, then no redefinition error occurs.
It seems that ucontext.h is included in signal.h, if __USE_GNU is defined.
That is as far as I have gotten with this.

David Wagner



This archive was generated by hypermail 2a24 : Fri Mar 16 2001 - 13:14:53 MST