[Debian-med-packaging] Bug#1026576: spaln: FTBFS: dbs.cc:568:54: error: cannot convert ‘gzFile’ {aka ‘gzFile_s*’} to ‘FILE*’
Lucas Nussbaum
lucas at debian.org
Tue Dec 20 17:16:56 GMT 2022
Source: spaln
Version: 2.4.9a+dfsg-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20221220 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -pedantic -O3 -Wall -DM_THREAD=1 -DUSE_ZLIB=1 -c gsinfo.cc
> dbs.cc: In constructor ‘DbsDt::DbsDt(const char*)’:
> dbs.cc:568:54: error: cannot convert ‘gzFile’ {aka ‘gzFile_s*’} to ‘FILE*’
> 568 | if (fread(dbsseq, sizeof(CHAR), rss, gzfd) <= 0)
> | ^~~~
> | |
> | gzFile {aka gzFile_s*}
> In file included from stdtype.h:25,
> from cmn.h:25,
> from seq.h:25,
> from dbs.cc:22:
> /usr/include/stdio.h:676:51: note: initializing argument 4 of ‘size_t fread(void*, size_t, size_t, FILE*)’
> 676 | size_t __n, FILE *__restrict __stream) __wur;
> | ~~~~~~~~~~~~~~~~~^~~~~~~~
> dbs.cc:570:24: error: cannot convert ‘gzFile’ {aka ‘gzFile_s*’} to ‘FILE*’
> 570 | fclose(gzfd);
> | ^~~~
> | |
> | gzFile {aka gzFile_s*}
> /usr/include/stdio.h:178:26: note: initializing argument 1 of ‘int fclose(FILE*)’
> 178 | extern int fclose (FILE *__stream);
> | ~~~~~~^~~~~~~~
> In file included from seq.h:60:
> dbs.h: In instantiation of ‘DbsRec* DbsDt::readidx(file_t, const char*) [with file_t = gzFile_s*]’:
> dbs.cc:529:34: required from here
> dbs.h:235:16: error: cannot convert ‘gzFile_s*’ to ‘FILE*’
> 235 | rewind(fidx);
> | ^~~~
> | |
> | gzFile_s*
> /usr/include/stdio.h:723:27: note: initializing argument 1 of ‘void rewind(FILE*)’
> 723 | extern void rewind (FILE *__stream);
> | ~~~~~~^~~~~~~~
> dbs.h:236:51: error: cannot convert ‘gzFile_s*’ to ‘FILE*’
> 236 | if (fread(recidx, sizeof(DbsRec), numidx, fidx) != numidx)
> | ^~~~
> | |
> | gzFile_s*
> /usr/include/stdio.h:676:51: note: initializing argument 4 of ‘size_t fread(void*, size_t, size_t, FILE*)’
> 676 | size_t __n, FILE *__restrict __stream) __wur;
> | ~~~~~~~~~~~~~~~~~^~~~~~~~
> dbs.h:238:16: error: cannot convert ‘gzFile_s*’ to ‘FILE*’
> 238 | fclose(fidx);
> | ^~~~
> | |
> | gzFile_s*
> /usr/include/stdio.h:178:26: note: initializing argument 1 of ‘int fclose(FILE*)’
> 178 | extern int fclose (FILE *__stream);
> | ~~~~~~^~~~~~~~
> dbs.h: In instantiation of ‘void DbsDt::readentry(file_t, const char*) [with file_t = gzFile_s*]’:
> dbs.cc:542:25: required from here
> dbs.h:199:19: error: cannot convert ‘gzFile_s*’ to ‘FILE*’
> 199 | fseek(fent, 0L, SEEK_END);
> | ^~~~
> | |
> | gzFile_s*
> /usr/include/stdio.h:713:25: note: initializing argument 1 of ‘int fseek(FILE*, long int, int)’
> 713 | extern int fseek (FILE *__stream, long int __off, int __whence);
> | ~~~~~~^~~~~~~~
> dbs.h:200:37: error: cannot convert ‘gzFile_s*’ to ‘FILE*’
> 200 | ent_space = (INT) ftell(fent);
> | ^~~~
> | |
> | gzFile_s*
> /usr/include/stdio.h:718:30: note: initializing argument 1 of ‘long int ftell(FILE*)’
> 718 | extern long int ftell (FILE *__stream) __wur;
> | ~~~~~~^~~~~~~~
> dbs.h:204:31: error: cannot convert ‘gzFile_s*’ to ‘FILE*’
> 204 | while ((c = fgetc(fent)) != EOF) ++ent_space;
> | ^~~~
> | |
> | gzFile_s*
> /usr/include/stdio.h:513:25: note: initializing argument 1 of ‘int fgetc(FILE*)’
> 513 | extern int fgetc (FILE *__stream);
> | ~~~~~~^~~~~~~~
> dbs.h:206:16: error: cannot convert ‘gzFile_s*’ to ‘FILE*’
> 206 | rewind(fent);
> | ^~~~
> | |
> | gzFile_s*
> /usr/include/stdio.h:723:27: note: initializing argument 1 of ‘void rewind(FILE*)’
> 723 | extern void rewind (FILE *__stream);
> | ~~~~~~^~~~~~~~
> dbs.h:208:51: error: cannot convert ‘gzFile_s*’ to ‘FILE*’
> 208 | if (fread(entry, sizeof(char), ent_space, fent) != ent_space)
> | ^~~~
> | |
> | gzFile_s*
> /usr/include/stdio.h:676:51: note: initializing argument 4 of ‘size_t fread(void*, size_t, size_t, FILE*)’
> 676 | size_t __n, FILE *__restrict __stream) __wur;
> | ~~~~~~~~~~~~~~~~~^~~~~~~~
> dbs.h:210:16: error: cannot convert ‘gzFile_s*’ to ‘FILE*’
> 210 | fclose(fent);
> | ^~~~
> | |
> | gzFile_s*
> /usr/include/stdio.h:178:26: note: initializing argument 1 of ‘int fclose(FILE*)’
> 178 | extern int fclose (FILE *__stream);
> | ~~~~~~^~~~~~~~
> dbs.h: In instantiation of ‘void DbsDt::readodr(file_t, const char*) [with file_t = gzFile_s*]’:
> dbs.cc:551:20: required from here
> dbs.h:221:16: error: cannot convert ‘gzFile_s*’ to ‘FILE*’
> 221 | rewind(fodr);
> | ^~~~
> | |
> | gzFile_s*
> /usr/include/stdio.h:723:27: note: initializing argument 1 of ‘void rewind(FILE*)’
> 723 | extern void rewind (FILE *__stream);
> | ~~~~~~^~~~~~~~
> dbs.h:222:48: error: cannot convert ‘gzFile_s*’ to ‘FILE*’
> 222 | if (fread(recodr, sizeof(INT), numidx, fodr) != numidx)
> | ^~~~
> | |
> | gzFile_s*
> /usr/include/stdio.h:676:51: note: initializing argument 4 of ‘size_t fread(void*, size_t, size_t, FILE*)’
> 676 | size_t __n, FILE *__restrict __stream) __wur;
> | ~~~~~~~~~~~~~~~~~^~~~~~~~
> dbs.h:224:16: error: cannot convert ‘gzFile_s*’ to ‘FILE*’
> 224 | fclose(fodr);
> | ^~~~
> | |
> | gzFile_s*
> /usr/include/stdio.h:178:26: note: initializing argument 1 of ‘int fclose(FILE*)’
> 178 | extern int fclose (FILE *__stream);
> | ~~~~~~^~~~~~~~
> In file included from blksrc.cc:24:
> blksrc.h: In member function ‘void MakeDbs::putsq(int)’:
> blksrc.h:111:42: error: cannot convert ‘gzFile’ {aka ‘gzFile_s*’} to ‘FILE*’
> 111 | if (gzseq) fputc(c, gzseq);
> | ^~~~~
> | |
> | gzFile {aka gzFile_s*}
> In file included from stdtype.h:25,
> from cmn.h:25,
> from seq.h:25,
> from aln.h:26,
> from blksrc.cc:22:
> /usr/include/stdio.h:549:34: note: initializing argument 2 of ‘int fputc(int, FILE*)’
> 549 | extern int fputc (int __c, FILE *__stream);
> | ~~~~~~^~~~~~~~
> blksrc.h: In destructor ‘MakeDbs::~MakeDbs()’:
> blksrc.h:122:35: error: cannot convert ‘gzFile’ {aka ‘gzFile_s*’} to ‘FILE*’
> 122 | if (gzseq) fclose(gzseq);
> | ^~~~~
> | |
> | gzFile {aka gzFile_s*}
> /usr/include/stdio.h:178:26: note: initializing argument 1 of ‘int fclose(FILE*)’
> 178 | extern int fclose (FILE *__stream);
> | ~~~~~~^~~~~~~~
> blksrc.h:123:35: error: cannot convert ‘gzFile’ {aka ‘gzFile_s*’} to ‘FILE*’
> 123 | if (gzidx) fclose(gzidx);
> | ^~~~~
> | |
> | gzFile {aka gzFile_s*}
> /usr/include/stdio.h:178:26: note: initializing argument 1 of ‘int fclose(FILE*)’
> 178 | extern int fclose (FILE *__stream);
> | ~~~~~~^~~~~~~~
> blksrc.h:124:35: error: cannot convert ‘gzFile’ {aka ‘gzFile_s*’} to ‘FILE*’
> 124 | if (gzent) fclose(gzent);
> | ^~~~~
> | |
> | gzFile {aka gzFile_s*}
> /usr/include/stdio.h:178:26: note: initializing argument 1 of ‘int fclose(FILE*)’
> 178 | extern int fclose (FILE *__stream);
> | ~~~~~~^~~~~~~~
> blksrc.h: In member function ‘void MakeDbs::wrtgrp(const char*)’:
> blksrc.h:151:46: error: cannot convert ‘gzFile’ {aka ‘gzFile_s*’} to ‘FILE*’
> 151 | if (gzseq) fpos = ftell(gzseq);
> | ^~~~~
> | |
> | gzFile {aka gzFile_s*}
> /usr/include/stdio.h:718:30: note: initializing argument 1 of ‘long int ftell(FILE*)’
> 718 | extern long int ftell (FILE *__stream) __wur;
> | ~~~~~~^~~~~~~~
> blksrc.h:154:46: error: cannot convert ‘gzFile’ {aka ‘gzFile_s*’} to ‘FILE*’
> 154 | if (gzent) epos = ftell(gzent);
> | ^~~~~
> | |
> | gzFile {aka gzFile_s*}
> /usr/include/stdio.h:718:30: note: initializing argument 1 of ‘long int ftell(FILE*)’
> 718 | extern long int ftell (FILE *__stream) __wur;
> | ~~~~~~^~~~~~~~
> blksrc.h: In member function ‘void MakeDbs::stamp21()’:
> blksrc.h:162:59: error: cannot convert ‘gzFile’ {aka ‘gzFile_s*’} to ‘FILE*’
> 162 | else fwrite(&rec21, sizeof(DbsRec), 1, gzidx);
> | ^~~~~
> | |
> | gzFile {aka gzFile_s*}
> /usr/include/stdio.h:682:52: note: initializing argument 4 of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’
> 682 | size_t __n, FILE *__restrict __s);
> | ~~~~~~~~~~~~~~~~~^~~
> make[2]: *** [Makefile:30: dbs.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2022/12/20/spaln_2.4.9a+dfsg-3_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&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.
More information about the Debian-med-packaging
mailing list