[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#869593: ccontrol FTBFS: error: conflicting types for 'find_extension'



Source: ccontrol
Version: 1.0-1
Severity: serious
User: helmutg@debian.org
Usertags: rebootstrap

ccontrol fails to build from source in unstable amd64 (presumably due to
the gperf 3.1 upload):

| gcc -O3 -Wall -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DVERSION='"1.0 (David Gibson)"' -o ccontrol ccontrol.c ccontrol-parse.c ccontrol-lock.c ccontrol-identify.c stdrusty.c
| ccontrol.c: In function 'write_string':
| ccontrol.c:27:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
|   write(fd, str, strlen(str));
|   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| ccontrol.c: In function 'main':
| ccontrol.c:325:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result]
|   getcwd(dirname, sizeof(dirname));
|   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In file included from ccontrol-parse.c:40:0:
| keywords.gperf:56:1: error: conflicting types for 'find_keyword'
| In file included from ccontrol-parse.c:40:0:
| keywords.gperf:4:1: note: previous declaration of 'find_keyword' was here
|  find_keyword (register const char *str, register unsigned int len);
|  ^~~~~~~~~~~~
| In file included from ccontrol-identify.c:4:0:
| extensions.gperf:63:1: error: conflicting types for 'find_extension'
| extensions.gperf:6:1: note: previous declaration of 'find_extension' was here
|  find_extension (register const char *str, register unsigned int len);
|  ^~~~~~~~~~~~~~
| stdrusty.c: In function 'fatal':
| stdrusty.c:45:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
|   write(STDERR_FILENO, "ccontrol error: ", strlen("ccontrol error: "));
|   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| stdrusty.c:46:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
|   write(STDERR_FILENO, msg, strlen(msg));
|   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| stdrusty.c:50:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
|    write(STDERR_FILENO, str, strlen(str));
|    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| stdrusty.c:54:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
|    write(STDERR_FILENO, ": ", strlen(": "));
|    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| stdrusty.c:55:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
|    write(STDERR_FILENO, str, strlen(str));
|    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| stdrusty.c:57:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
|   write(STDERR_FILENO, "\n", 1);
|   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Makefile:19: recipe for target 'ccontrol' failed
| make[1]: *** [ccontrol] Error 1
| rm ccontrol.1.xml
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| debian/rules:39: recipe for target 'build-stamp' failed
| make: *** [build-stamp] Error 2
| dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2

Helmut


Reply to: