Bug#1066609: yagiuda: FTBFS: input.c:60:9: error: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Werror=implicit-function-declaration]
Source: yagiuda
Version: 1.19-10
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=implicit-function-declaration. For more information, see
https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration
Relevant part (hopefully):
> gcc -DPACKAGE_NAME=\"yagiuda\" -DPACKAGE_TARNAME=\"yagiuda\" -DPACKAGE_VERSION=\"1.19\" -DPACKAGE_STRING=\"yagiuda\ 1.19\" -DPACKAGE_BUGREPORT=\"david.kirkby@onetel.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"yagiuda\" -DVERSION=\"1.19\" -DHAVE_LIBM=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDIO_H=1 -DHAVE_MATH_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STRING_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VALUES_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o output.o output.c
> input.c: In function ‘main’:
> input.c:60:9: error: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Werror=implicit-function-declaration]
> 60 | gets(notes);
> | ^~~~
> | fgets
> input.c:64:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 64 | scanf("%lf", &frequency);
> | ^~~~~~~~~~~~~~~~~~~~~~~~
> input.c:66:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 66 | scanf("%lf", &min_f);
> | ^~~~~~~~~~~~~~~~~~~~
> input.c:68:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 68 | scanf("%lf", &max_f);
> | ^~~~~~~~~~~~~~~~~~~~
> input.c:70:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 70 | scanf("%lf", &step_f);
> | ^~~~~~~~~~~~~~~~~~~~~
> input.c:77:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 77 | scanf("%c", &data_entry);
> | ^~~~~~~~~~~~~~~~~~~~~~~~
> input.c:78:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 78 | scanf("%c", &data_entry);
> | ^~~~~~~~~~~~~~~~~~~~~~~~
> input.c:98:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 98 | scanf("%d",&elements);
> | ^~~~~~~~~~~~~~~~~~~~~
> input.c:106:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 106 | scanf("%lf",&angular_step);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> input.c:118:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 118 | scanf("%c",&response);
> | ^~~~~~~~~~~~~~~~~~~~~
> input.c:119:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 119 | scanf("%c",&response);
> | ^~~~~~~~~~~~~~~~~~~~~
> input.c:123:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 123 | scanf("%lf", &diameter);
> | ^~~~~~~~~~~~~~~~~~~~~~~
> input.c:132:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 132 | scanf("%lf", &d[i][X]);
> | ^~~~~~~~~~~~~~~~~~~~~~
> input.c:137:25: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 137 | scanf("%lf", &d[i][Y]);
> | ^~~~~~~~~~~~~~~~~~~~~~
> input.c:142:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 142 | scanf("%lf", &d[i][LENGTH]);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> input.c:148:25: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 148 | scanf("%lf", &d[i][DIAMETER]);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> input.c:164:20: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 164 | scanf("%lf", &p[1][LENGTH]);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> input.c:168:25: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 168 | scanf("%lf", &p[i][Y]);
> | ^~~~~~~~~~~~~~~~~~~~~~
> input.c:175:25: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 175 | scanf("%lf", &p[i][DIAMETER]);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> input.c:181:20: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 181 | scanf("%lf", &p[i][X]);
> | ^~~~~~~~~~~~~~~~~~~~~~
> input.c:185:25: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 185 | scanf("%lf", &p[i][Y]);
> | ^~~~~~~~~~~~~~~~~~~~~~
> input.c:190:20: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 190 | scanf("%lf", &p[i][LENGTH]);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> input.c:196:25: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 196 | scanf("%lf", &p[i][DIAMETER]);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> gcc -DPACKAGE_NAME=\"yagiuda\" -DPACKAGE_TARNAME=\"yagiuda\" -DPACKAGE_VERSION=\"1.19\" -DPACKAGE_STRING=\"yagiuda\ 1.19\" -DPACKAGE_BUGREPORT=\"david.kirkby@onetel.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"yagiuda\" -DVERSION=\"1.19\" -DHAVE_LIBM=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDIO_H=1 -DHAVE_MATH_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STRING_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VALUES_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o read_header.o read_header.c
> gcc -DPACKAGE_NAME=\"yagiuda\" -DPACKAGE_TARNAME=\"yagiuda\" -DPACKAGE_VERSION=\"1.19\" -DPACKAGE_STRING=\"yagiuda\ 1.19\" -DPACKAGE_BUGREPORT=\"david.kirkby@onetel.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"yagiuda\" -DVERSION=\"1.19\" -DHAVE_LIBM=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDIO_H=1 -DHAVE_MATH_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STRING_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VALUES_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o z_input.o z_input.c
> gcc -DPACKAGE_NAME=\"yagiuda\" -DPACKAGE_TARNAME=\"yagiuda\" -DPACKAGE_VERSION=\"1.19\" -DPACKAGE_STRING=\"yagiuda\ 1.19\" -DPACKAGE_BUGREPORT=\"david.kirkby@onetel.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"yagiuda\" -DVERSION=\"1.19\" -DHAVE_LIBM=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDIO_H=1 -DHAVE_MATH_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STRING_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VALUES_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o vswr.o vswr.c
> output.c: In function ‘main’:
> output.c:140:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 140 | fread((char *) &coordinates[1], sizeof(struct element_data),elements,ifp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> output.c:145:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 145 | fread((char *) &voltage[1], sizeof(struct FCOMPLEX),elements, ifp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> output.c:167:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 167 | fread((char *) ¤t[1], sizeof(struct FCOMPLEX),elements, ifp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> gcc -DPACKAGE_NAME=\"yagiuda\" -DPACKAGE_TARNAME=\"yagiuda\" -DPACKAGE_VERSION=\"1.19\" -DPACKAGE_STRING=\"yagiuda\ 1.19\" -DPACKAGE_BUGREPORT=\"david.kirkby@onetel.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"yagiuda\" -DVERSION=\"1.19\" -DHAVE_LIBM=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDIO_H=1 -DHAVE_MATH_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STRING_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VALUES_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o reflection_coefficient.o reflection_coefficient.c
> gcc -DPACKAGE_NAME=\"yagiuda\" -DPACKAGE_TARNAME=\"yagiuda\" -DPACKAGE_VERSION=\"1.19\" -DPACKAGE_STRING=\"yagiuda\ 1.19\" -DPACKAGE_BUGREPORT=\"david.kirkby@onetel.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"yagiuda\" -DVERSION=\"1.19\" -DHAVE_LIBM=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDIO_H=1 -DHAVE_MATH_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STRING_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VALUES_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o power_input.o power_input.c
> read_header.c: In function ‘read_header’:
> read_header.c:15:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 15 | fread((char *) &elements, sizeof(elements), 1, ifp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> read_header.c:16:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 16 | fread((char *) &driven, sizeof(driven), 1, ifp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> read_header.c:17:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 17 | fread((char *) ¶sitic, sizeof(parasitic), 1, ifp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> gcc -DPACKAGE_NAME=\"yagiuda\" -DPACKAGE_TARNAME=\"yagiuda\" -DPACKAGE_VERSION=\"1.19\" -DPACKAGE_STRING=\"yagiuda\ 1.19\" -DPACKAGE_BUGREPORT=\"david.kirkby@onetel.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"yagiuda\" -DVERSION=\"1.19\" -DHAVE_LIBM=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDIO_H=1 -DHAVE_MATH_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STRING_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VALUES_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o gain.o gain.c
> read_header.c:18:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 18 | fread((char *) min_f, sizeof(*min_f), 1, ifp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> read_header.c:19:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 19 | fread((char *) max_f,sizeof(*max_f), 1, ifp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> read_header.c:20:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 20 | fread((char *) f, sizeof(*f), 1, ifp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> read_header.c:21:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 21 | fread((char *) step_f, sizeof(*step_f), 1, ifp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> read_header.c:22:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 22 | fread((char *) angular_step, sizeof(*angular_step), 1, ifp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
> make[2]: *** [Makefile:615: input.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/03/13/yagiuda_1.19-10_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
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!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
Reply to: