Discussion:
Error compiling slurm-2.3.1 on Mac OS X: "error: conflicting types for 'slurm_hostlist_create'"
Carlos Borroto
2011-11-15 19:36:16 UTC
Permalink
Hi,

I'm getting the error below when compiling slurm-2.3.1 on Mac OS X
10.7.2. I was able to compile slurm-2.2.7 without problems.

$ make
make all-recursive
Making all in auxdir
make[2]: Nothing to be done for `all'.
Making all in src
Making all in common
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I../.. -I../../slurm -I../..
-DGRES_CONFIG_FILE=\"/usr/local/etc/gres.conf\" -g -O2 -fno-gcse -MT
hostlist.lo -MD -MP -MF .deps/hostlist.Tpo -c -o hostlist.lo
hostlist.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../slurm
-I../.. -DGRES_CONFIG_FILE=\"/usr/local/etc/gres.conf\" -g -O2
-fno-gcse -MT hostlist.lo -MD -MP -MF .deps/hostlist.Tpo -c hostlist.c
-fno-common -DPIC -o .libs/hostlist.o
hostlist.c:85: error: conflicting types for ‘slurm_hostlist_create’
../../slurm/slurm.h:626: error: previous declaration of
‘slurm_hostlist_create’ was here
hostlist.c:87: error: conflicting types for ‘slurm_hostlist_count’
../../slurm/slurm.h:632: error: previous declaration of
‘slurm_hostlist_count’ was here
hostlist.c:100: error: conflicting types for ‘slurm_hostlist_destroy’
../../slurm/slurm.h:639: error: previous declaration of
‘slurm_hostlist_destroy’ was here
hostlist.c:101: error: conflicting types for ‘slurm_hostlist_find’
../../slurm/slurm.h:649: error: previous declaration of
‘slurm_hostlist_find’ was here
hostlist.c:110: error: conflicting types for ‘slurm_hostlist_push’
../../slurm/slurm.h:660: error: previous declaration of
‘slurm_hostlist_push’ was here
hostlist.c:112: error: conflicting types for ‘slurm_hostlist_push_host’
../../slurm/slurm.h:670: error: previous declaration of
‘slurm_hostlist_push_host’ was here
hostlist.c:116: error: conflicting types for ‘slurm_hostlist_ranged_string’
../../slurm/slurm.h:683: error: previous declaration of
‘slurm_hostlist_ranged_string’ was here
hostlist.c:117: error: conflicting types for
‘slurm_hostlist_ranged_string_malloc’
../../slurm/slurm.h:692: error: previous declaration of
‘slurm_hostlist_ranged_string_malloc’ was here
hostlist.c:121: error: conflicting types for
‘slurm_hostlist_ranged_string_xmalloc’
../../slurm/slurm.h:702: error: previous declaration of
‘slurm_hostlist_ranged_string_xmalloc’ was here
hostlist.c:124: error: conflicting types for ‘slurm_hostlist_shift’
../../slurm/slurm.h:713: error: previous declaration of
‘slurm_hostlist_shift’ was here
hostlist.c:127: error: conflicting types for ‘slurm_hostlist_uniq’
../../slurm/slurm.h:720: error: previous declaration of
‘slurm_hostlist_uniq’ was here
make[3]: *** [hostlist.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Thanks,
Carlos

Loading...