64bits compatibility problem

From: chuck (circlecreek_at_free.fr)
Date: 07/30/04


Date: 30 Jul 2004 07:29:53 -0700

Hi there,

I'm experiencing problems trying to compile a very simple program in C
on an RS/6000 B50 running AIX 5.1L.

#include <sys/context.h>

int main(){

;

}
/usr/include/sys/context.h:56: parse error before "size_t"
/usr/include/sys/context.h:63: parse error before '}' token
/usr/include/sys/context.h:155: parse error before "sigset64_t"
/usr/include/sys/context.h:158: parse error before '}' token
/usr/include/sys/context.h:234: field `jmp_context' has incomplete
type
/usr/include/sys/context.h:272: parse error before "sigset_t"
/usr/include/sys/context.h:286: parse error before '}' token
/usr/include/sys/context.h:303: parse error before "sigset_t"
/usr/include/sys/context.h:314: parse error before "uc_stack"
/usr/include/sys/context.h:316: parse error before '}' token
It seems to come from the 64 bits parts of headers.

gcc --version gives: 3.0.1

Have anybody an idea how to avoid this check though my program should
only work in 32Bits mode?

Thanks a lot

BTW: For those who have to do with monitoring, check the site:
http://www.metamindsolutions.com. It's a great multiplatform
monitoring solution and seems to have been adopted by large accounts.