Menu

#1022 r3274 FTBFS with WITH_TOOLS

trunk
closed
nobody
FTBFS (1)
1
2015-04-13
2015-03-14
onlyjob
No

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.

Discussion

  • onlyjob

    onlyjob - 2015-04-11

    The attached patch fixes compilation issue for me.

     
  • SandySandy

    SandySandy - 2015-04-13
    • status: open --> closed
     
  • SandySandy

    SandySandy - 2015-04-13

    fixed, rev. 3277. thanks!

     

Log in to post a comment.