I have a fairly old x86-64 system running RHEL AS4. The build is failing (as shown at the bottom of this message), with MREMAP_FIXED undeclared. There *is* a definition in the system headers, but in linux/mmap.h rather than sys/mmap.h
$ grep -rw MREMAP_FIXED /usr/include/ /usr/include/linux/mman.h:#define MREMAP_FIXED 2 -Paul libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/opal/mca/memory/patcher -I../../../../opal/include -I../../../../ompi/include -I../../../../oshmem/include -I../../../../opal/mca/hwloc/hwloc1112/hwloc/include/private/autogen -I../../../../opal/mca/hwloc/hwloc1112/hwloc/include/hwloc/autogen -I../../../../ompi/mpiext/cuda/c -I/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2 -I../../../.. -I/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi2.0.0rc2/opal/include -I/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/orte/include -I../../../../orte/include -I/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/ompi/include -I/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/oshmem/include -I/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/opal/mca/hwloc/hwloc1112/hwloc/include -I/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/BLD/opal/mca/hwloc/hwloc1112/hwloc/include -I/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/opal/mca/event/libevent2022/libevent -I/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/opal/mca/event/libevent2022/libevent/include -I/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/BLD/opal/mca/event/libevent2022/libevent/include -g -finline-functions -fno-strict-aliasing -pthread -MT memory_patcher_component.lo -MD -MP -MF .deps/memory_patcher_component.Tpo -c /home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/opal/mca/memory/patcher/memory_patcher_component.c -fPIC -DPIC -o .libs/memory_patcher_component.o /home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/opal/mca/memory/patcher/memory_patcher_component.c: In function `intercept_mremap': /home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/opal/mca/memory/patcher/memory_patcher_component.c:178: error: `MREMAP_FIXED' undeclared (first use in this function) /home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/opal/mca/memory/patcher/memory_patcher_component.c:178: error: (Each undeclared identifier is reported only once /home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/opal/mca/memory/patcher/memory_patcher_component.c:178: error: for each function it appears in.) /home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/opal/mca/memory/patcher/memory_patcher_component.c: In function `intercept_shmdt': /home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/openmpi-2.0.0rc2/opal/mca/memory/patcher/memory_patcher_component.c:347: warning: passing arg 1 of `opal_mem_hooks_release_hook' discards qualifiers from pointer target type make[2]: *** [memory_patcher_component.lo] Error 1 make[2]: Leaving directory `/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/BLD/opal/mca/memory/patcher' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/phhargrove/OMPI/openmpi-2.0.0rc2-linux-x86_64-psm/BLD/opal' make: *** [all-recursive] Error 1 -- Paul H. Hargrove phhargr...@lbl.gov Computer Languages & Systems Software (CLaSS) Group Computer Science Department Tel: +1-510-495-2352 Lawrence Berkeley National Laboratory Fax: +1-510-486-6900