Compiling AIM Benchmark

Hello all,

I am a newbie. I am trying to compile the AIM 9 benchmark suite (which is supposed to be POSIX compliant) for QNX (using QNX Momentics NC 6.2.1) but I got the following errors:
1.
/usr/include/sys/platform.h:103: #error This version of XOPEN_SOURCE is not supported.

As a workaround, I commented out this line in disk1.c:

#define _XOPEN_SOURCE 1

and passed -D_XOPEN_SOURCE=500 to gcc and that seemed to work.

Why did I get such an error with the original version of disk1.c :question:

I now get the following errors:
pipe_test.c:33: sys/shm.h: No such file or directory
pipe_test.c:40: sys/errno.h: No such file or directory

I looked in /usr/include/sys, and indeed there are no errno.h or shm.h files. Please, where can I find a complete set of include files for QNX :question:

Thank you. :exclamation:

Johnbarnesx

QNX doesn’t support SV5 shared mem (sys/shm.h) - it does however support posix shared memory.

and on QNX it errno.h, not sys/errno.h

Thank you for the reply.

Please, do you know of a benchmark suite that runs on both Linux and QNX?

Do you know if anyone has managed to get AIM benchmark suites to work on QNX?

Thank you.

I’m not really up on benchmarking suites.

But I doubt that the shm stuff should really hold you up - the POSIX shared memory stuff should provide the same functionality.

Cheers,

Colin