Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:garloff:HPC
mpich2
obs-shmget.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File obs-shmget.diff of Package mpich2
# For reasons not investigated yet, the shmget() test # fails in the (Xen) virtual machines that openSUSE BuildService # uses for building the packages. -- Kurt Index: mpich2-1.2.1/src/mpid/ch3/channels/ssm/configure =================================================================== --- mpich2-1.2.1.orig/src/mpid/ch3/channels/ssm/configure +++ mpich2-1.2.1/src/mpid/ch3/channels/ssm/configure @@ -6143,14 +6143,18 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <sys/shm.h> +#include <stdlib.h> +#include <stdio.h> int main(int argc, char *argv[]) { key_t key = rand(); int id = shmget(key,128,IPC_CREAT); if (id) shmctl(id,IPC_RMID,0); - return (id > 0) ? 0 : 1; + if (!id) fprintf(stderr, "SHMGET SEEMS TO NOT WORK!\n"); + return 0; + //return (id > 0) ? 0 : 1; } _ACEOF rm -f conftest$ac_exeext Index: mpich2-1.2.1/src/mpid/ch3/channels/ssm/configure.in =================================================================== --- mpich2-1.2.1.orig/src/mpid/ch3/channels/ssm/configure.in +++ mpich2-1.2.1/src/mpid/ch3/channels/ssm/configure.in @@ -164,14 +164,18 @@ fi # Add a test that shmget works (under cygwin, it causes the # program to immediately abort with "Bad system call". AC_CACHE_CHECK([whether shmget works],pac_cv_func_shmget_works,[ AC_TRY_RUN([#include <sys/shm.h> +#include <stdlib.h> +#include <stdio.h> int main(int argc, char *argv[]) { key_t key = rand(); int id = shmget(key,128,IPC_CREAT); if (id) shmctl(id,IPC_RMID,0); - return (id > 0) ? 0 : 1; + if (!id) fprintf(stderr, "SHMGET SEEMS TO NOT WORK!\n"); + return 0; + //return (id > 0) ? 0 : 1; } ],pac_cv_func_shmget_works=yes,pac_cv_func_shmget_works=no)]) if test "$pac_cv_func_shmget_works" = "yes" ; then AC_DEFINE(HAVE_WORKING_SHMGET,1,[Define if shmget works])
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor