Bug#669475: simutrans: FTBFS: dataobj/loadsave.cc:85:21: error: cannot convert 'FILE* {aka _IO_FILE*}' to 'gzFile' for argument '1' to 'char* gzgets(gzFile, char*, int)'
Lucas Nussbaum
lucas at lucas-nussbaum.net
Thu Apr 19 19:19:31 UTC 2012
Source: simutrans
Version: 111.0-1
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20120419 qa-ftbfs
Justification: FTBFS on amd64
Hi,
During a rebuild of all packages in sid, your package failed to build on
amd64.
Relevant part:
> g++ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -DNDEBUG -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -DUSE_C -DUSE_16BIT_DIB -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DCOLOUR_DEPTH=16 -c -MMD -o build/default/dataobj/loadsave.o dataobj/loadsave.cc
> dataobj/loadsave.cc: In member function 'bool loadsave_t::rd_open(const char*)':
> dataobj/loadsave.cc:85:21: error: cannot convert 'FILE* {aka _IO_FILE*}' to 'gzFile' for argument '1' to 'char* gzgets(gzFile, char*, int)'
> dataobj/loadsave.cc: In member function 'const char* loadsave_t::close()':
> dataobj/loadsave.cc:242:47: error: cannot convert 'FILE* {aka _IO_FILE*}' to 'gzFile' for argument '1' to 'const char* gzerror(gzFile, int*)'
> dataobj/loadsave.cc:246:14: error: cannot convert 'FILE* {aka _IO_FILE*}' to 'gzFile' for argument '1' to 'int gzclose(gzFile)'
> dataobj/loadsave.cc: In member function 'bool loadsave_t::is_eof()':
> dataobj/loadsave.cc:289:18: error: cannot convert 'FILE* {aka _IO_FILE*}' to 'gzFile' for argument '1' to 'int gzeof(gzFile)'
> dataobj/loadsave.cc: In member function 'void loadsave_t::lsputc(int)':
> dataobj/loadsave.cc:297:15: error: cannot convert 'FILE* {aka _IO_FILE*}' to 'gzFile' for argument '1' to 'int gzputc(gzFile, int)'
> dataobj/loadsave.cc: In member function 'int loadsave_t::lsgetc()':
> dataobj/loadsave.cc:318:10: error: 'FILE' has no member named 'have'
> dataobj/loadsave.cc:318:10: error: 'FILE' has no member named 'have'
> dataobj/loadsave.cc:318:10: error: 'FILE' has no member named 'pos'
> dataobj/loadsave.cc:318:10: error: 'FILE' has no member named 'next'
> dataobj/loadsave.cc:318:10: error: cannot convert 'FILE* {aka _IO_FILE*}' to 'gzFile' for argument '1' to 'int gzgetc_(gzFile)'
> dataobj/loadsave.cc: In member function 'size_t loadsave_t::write(const void*, size_t)':
> dataobj/loadsave.cc:325:50: error: cannot convert 'FILE* {aka _IO_FILE*}' to 'gzFile' for argument '1' to 'int gzwrite(gzFile, voidpc, unsigned int)'
> dataobj/loadsave.cc: In member function 'size_t loadsave_t::read(void*, size_t)':
> dataobj/loadsave.cc:346:29: error: cannot convert 'FILE* {aka _IO_FILE*}' to 'gzFile' for argument '1' to 'int gzread(gzFile, voidp, unsigned int)'
> dataobj/loadsave.cc:348:1: warning: control reaches end of non-void function [-Wreturn-type]
> dataobj/loadsave.cc: In member function 'size_t loadsave_t::write(const void*, size_t)':
> dataobj/loadsave.cc:335:1: warning: control reaches end of non-void function [-Wreturn-type]
> dataobj/loadsave.cc: In member function 'int loadsave_t::lsgetc()':
> dataobj/loadsave.cc:320:1: warning: control reaches end of non-void function [-Wreturn-type]
> dataobj/loadsave.cc: In member function 'bool loadsave_t::is_eof()':
> dataobj/loadsave.cc:291:1: warning: control reaches end of non-void function [-Wreturn-type]
> make[2]: *** [build/default/dataobj/loadsave.o] Error 1
The full build log is available from:
http://people.debian.org/~lucas/logs/2012/04/19/simutrans_111.0-1_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 about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot. Internet was not
accessible from the build systems.
More information about the Pkg-games-devel
mailing list