Menu

Build wpkg on Darwin with g++-4.8.3 or 4.9.x, ambiguous overload

wpkg
2014-08-22
2014-08-22
  • Mathieu SCHROETER

    Hello,

    I try to build wpkg on Darwin (OS X 10.9.4) and g++-4.8.3 and 4.9.x installed with homebrew. There is an overload problem on this line:

    /Users/macdev/devel/bootstrap-nixdev/sysroot/toolchain/var/tmp/src/wpkg_0.9.4/libdebpackages/memfile.cpp: In member function 'void memfile::memory_file::dir_next_wpkg(memfile::memory_file::file_info&, memfile::memory_file*) const':
    /Users/macdev/devel/bootstrap-nixdev/sysroot/toolchain/var/tmp/src/wpkg_0.9.4/libdebpackages/memfile.cpp:2894:15: error: ambiguous overload for 'operator+=' (operand types are 'controlled_vars::zint32_t {aka controlled_vars::auto_init<int>}' and 'long unsigned int')
         f_dir_pos += sizeof(wpkgar::wpkgar_block_t);
                   ^
    

    It looks strange that this error is not happening under Linux with the same g++ version.

    I am looking for the best fix but maybe it's just a cpp definition which should be set somewhere. I'm not sure about the best way in order to fix this problem.

    Thank you, regards

    Mathieu

     
  • Alexis Wilke

    Alexis Wilke - 2014-08-22

    Just to make sure, your Mac OS/X processor is an AMD64, correct?

     
  • Mathieu SCHROETER

    Yes

     

Log in to post a comment.