r3274 FTBFS with WITH_TOOLS
Status: Beta
Brought to you by:
afletdinov
On Debian r3274 FTBFS if built using option WITH_TOOLS:
make -C tools make[3] Entering directory '/tmp/buildd/fheroes2-0+svn20150122r3274/src/tools' g++ -c extractor.cpp -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fsigned-char -O0 -g -pedantic -DWITH_DEBUG -DWITH_MIXER -DWITH_IMAGE -I/usr/include/libpng12 -DWITH_ZLIB -DWITH_TTF -DWITH_XML -DWITH_ZLIB -DBUILD_RELEASE -DWITH_ICONV -I../engine extractor.cpp: In function 'int main(int, char**)': extractor.cpp:62:44: error: no matching function for call to 'StreamBase::getLE16(std::fstream&)' u16 count = StreamBase::getLE16(fd_data); ^ extractor.cpp:62:44: note: candidate is: In file included from ../engine/engine.h:35:0, from extractor.cpp:29: ../engine/serialize.h:66:17: note: virtual int StreamBase::getLE16() virtual int getLE16(void) = 0; ^ ../engine/serialize.h:66:17: note: candidate expects 0 arguments, 1 provided extractor.cpp:82:42: error: no matching function for call to 'StreamBase::getLE32(std::fstream&)' fat.offset = StreamBase::getLE32(fd_data); ^ extractor.cpp:82:42: note: candidate is: In file included from ../engine/engine.h:35:0, from extractor.cpp:29: ../engine/serialize.h:68:17: note: virtual int StreamBase::getLE32() virtual int getLE32(void) = 0; ^ ../engine/serialize.h:68:17: note: candidate expects 0 arguments, 1 provided extractor.cpp:83:40: error: no matching function for call to 'StreamBase::getLE32(std::fstream&)' fat.size = StreamBase::getLE32(fd_data); ^ extractor.cpp:83:40: note: candidate is: In file included from ../engine/engine.h:35:0, from extractor.cpp:29: ../engine/serialize.h:68:17: note: virtual int StreamBase::getLE32() virtual int getLE32(void) = 0; ^ ../engine/serialize.h:68:17: note: candidate expects 0 arguments, 1 provided Makefile:13: recipe for target 'extractor' failed
This is a regression since r3181 which was building successfully.
The attached patch fixes compilation issue for me.
fixed, rev. 3277. thanks!