[Debian-ha-maintainers] Bug#780199: redhat-cluster: FTBFS in unstable - error: conflicting types for 'int64_t'

James Cowgill james410 at cowgill.org.uk
Tue Mar 10 11:27:59 UTC 2015


Source: redhat-cluster
Version: 3.1.8-1.2
Severity: serious
Tags: sid

Hi,

redhat-cluster FTBFS in unstable (but not jessie) with the error:

> gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wformat=2 -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wmissing-declarations -O2 -ggdb3 -MMD -I/home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/make -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DLOGDIR=\"/var/log/cluster\" -DSYSLOGFACILITY=LOG_LOCAL4 -DSYSLOGLEVEL=LOG_INFO -DRELEASE_VERSION=\"3.1.8\" -Wall -Wformat=2 -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wmissing-declarations -O2 -ggdb3 -MMD -I/home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/make -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DLOGDIR=\"/var/log/cluster\" -DSYSLOGFACILITY=LOG_LOCAL4 -DSYSLOGLEVEL=LOG_INFO -DRELEASE_VERSION=\"3.1.8\" -Wall -Wformat=2 -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wmissing-declarations -O2 -ggdb3 -MMD -I/home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/make -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DLOGDIR=\"/var/log/cluster\" -DSYSLOGFACILITY=LOG_LOCAL4 -DSYSLOGLEVEL=LOG_INFO -DRELEASE_VERSION=\"3.1.8\" -Wall -Wformat=2 -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wmissing-declarations -O2 -ggdb3 -MMD -I/home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/make -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DLOGDIR=\"/var/log/cluster\" -DSYSLOGFACILITY=LOG_LOCAL4 -DSYSLOGLEVEL=LOG_INFO -DRELEASE_VERSION=\"3.1.8\" -DSHAREDIR=\"/usr/share/cluster\" -D_GNU_SOURCE -fPIC -I/home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/config/libs/libccsconfdb -I/home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/cman/lib -I/home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/dlm/libdlm -I/home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/common/liblogthread `xml2-config --cflags` -I/usr/include -I/home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/rgmanager/src/daemons/../../include -I/usr/include -DDBUS `pkg-config --cflags dbus-1`   -c -o fo_domain.o /home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/rgmanager/src/daemons/fo_domain.c
> In file included from /usr/include/x86_64-linux-gnu/unicode/umachine.h:44:0,
>                  from /usr/include/x86_64-linux-gnu/unicode/utypes.h:36,
>                  from /usr/include/x86_64-linux-gnu/unicode/ucnv_err.h:86,
>                  from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:50,
>                  from /usr/include/libxml2/libxml/encoding.h:31,
>                  from /usr/include/libxml2/libxml/parser.h:810,
>                  from /home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/rgmanager/src/daemons/../../include/reslist.h:5,
>                  from /home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/rgmanager/src/daemons/fo_domain.c:13:
> /usr/include/x86_64-linux-gnu/unicode/ptypes.h:112:30: error: conflicting types for 'int64_t'
>      typedef signed long long int64_t;
>                               ^
> In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/stdint.h:9:0,
>                  from /home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/rgmanager/src/daemons/../../include/resgroup.h:6,
>                  from /home/jcowgill/mips64el-fixes/redhat-cluster/redhat-cluster-3.1.8/rgmanager/src/daemons/fo_domain.c:11:
> /usr/include/stdint.h:40:19: note: previous declaration of 'int64_t' was here
>  typedef long int  int64_t;
>                    ^
[...]
(the log goes on with a lot more errors)

I think this is caused by these two files using the same include guard
name (_PLATFORM_H) which really confuses ICU:
 rgmanager/include/platform.h
 /usr/include/x86_64-linux-gnu/unicode/platform.h (from libicu-dev)

It only appears in unstable due to ICU recently being enabled in
libxml2.

I first saw this error while working on the mips64el port and you can
find the original log here (although I later reproduced it on amd64):
http://mipsdebian.imgtec.com/debian/logs/r/redhat-cluster/redhat-cluster_3.1.8-1.2_mips64el-20150309-1850.build.gz

Thanks,
James



More information about the Debian-ha-maintainers mailing list