[xml/sgml-pkgs] Bug#759855: refdb: FTBFS: readln.h:25:22: error: redefinition of typedef 'Function' with different type

Lucas Nussbaum lucas at lucas-nussbaum.net
Sat Aug 30 19:03:52 UTC 2014


Source: refdb
Version: 1.0.2-2
Severity: serious
Tags: jessie sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20140830 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> gcc -DPACKAGE_NAME=\"refdb\" -DPACKAGE_TARNAME=\"refdb\" -DPACKAGE_VERSION=\"1.0.2\" -DPACKAGE_STRING=\"refdb\ 1.0.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"refdb\" -DVERSION=\"1.0.2\" -D_GNU_SOURCE=1 -DREADLINE42=1 -DHAVE_ICONV=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SOCKLEN_T=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_STRFTIME=1 -DHAVE_MKFIFO=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRCSPN=1 -DHAVE_STRSTR=1 -DHAVE_STRTOLL=1 -DHAVE_ATOLL=1 -I.  -DSYSCONFDIR=\"/etc/refdb\" -DULLSPEC=\"%llu\" -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -O2 -c -o refdbib.o refdbib.c
> In file included from refdbib.c:48:0:
> readln.h:25:22: error: redefinition of typedef 'Function' with different type
>  typedef rl_icpfunc_t Function;
>                       ^
> In file included from /usr/include/readline/readline.h:37:0,
>                  from readln.h:22,
>                  from refdbib.c:48:
> /usr/include/readline/rltypedefs.h:35:13: note: previous declaration of 'Function' was here
>  typedef int Function () __attribute__ ((deprecated));
>              ^
> In file included from refdbib.c:48:0:
> readln.h:26:30: error: redefinition of typedef 'CPPFunction' with different type
>  typedef rl_completion_func_t CPPFunction;
>                               ^
> In file included from /usr/include/readline/readline.h:37:0,
>                  from readln.h:22,
>                  from refdbib.c:48:
> /usr/include/readline/rltypedefs.h:38:16: note: previous declaration of 'CPPFunction' was here
>  typedef char **CPPFunction () __attribute__ ((deprecated));
>                 ^
> refdbib.c: In function 'make_rawbib':
> refdbib.c:1133:5: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
>      fprintf(stderr, "%d byte written to %s\n", byte_written, slvals.outfile);
>      ^
> refdbib.c: In function 'make_texbib':
> refdbib.c:1241:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
>    sprintf(cmd_buffer+strlen(cmd_buffer), " %d", strlen(slvals.outbuffer)+TERM_LEN); 
>    ^
> refdbib.c:1412:5: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
>      fprintf(stderr, "%d byte written to %s\n", byte_written, slvals.outfile);
>      ^
> Makefile:577: recipe for target 'refdbib.o' failed
> make[3]: *** [refdbib.o] Error 1

The full build log is available from:
   http://aws-logs.debian.net/ftbfs-logs/2014/08/30/refdb_1.0.2-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures. The build
was done with DEB_BUILD_OPTIONS="parallel=4", so if your packaging tries
to support this, it might be a good idea to explore whether this might
be the cause of the failure.



More information about the debian-xml-sgml-pkgs mailing list