← Back to team overview

hugin-devs team mailing list archive

[Bug 913146] Re: enblend trunk on MacOSX fails to compile on strerror_r declaration

 

I made a small patch that seems to work. Compilations runs fine and I blended two panoramas. 
As I'm not a programmer I do not know whether this patch is a big error or not.

See attachment.

** Patch added: "possible osx strerror_r patch"
   https://bugs.launchpad.net/enblend/+bug/913146/+attachment/2662603/+files/osx_strerror_r.patch

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Enblend.
https://bugs.launchpad.net/bugs/913146

Title:
  enblend trunk on MacOSX fails to compile on strerror_r declaration

Status in Enblend:
  New

Bug description:
  hg sum
  parent: 767:bba98602023b tip
   Set for previous commit
  branch: default
  commit: 89 unknown (clean)
  update: (current)

  MacOSX 10.6.8 Intel : compilation of both 32bit Intel and 64bit intel
  version crash on:

  [ 42%] Building CXX object src/CMakeFiles/enblend.dir/error_message.o
  In file included from /Users/Shared/development/hugin_related/ExternalPrograms/enblend-hg/src/error_message.cc:31:
  /Users/Shared/development/hugin_related/ExternalPrograms/enblend-hg/src/error_message.h:29: error: new declaration ‘char* strerror_r(int, char*, size_t)’
  /usr/include/string.h:97: error: ambiguates old declaration ‘int strerror_r(int, char*, size_t)’
  /Users/Shared/development/hugin_related/ExternalPrograms/enblend-hg/src/error_message.cc: In function ‘std::string enblend::errorMessage(int)’:
  /Users/Shared/development/hugin_related/ExternalPrograms/enblend-hg/src/error_message.cc:57: error: invalid conversion from ‘int’ to ‘char*’
  make[2]: *** [src/CMakeFiles/enblend.dir/error_message.o] Error 1
  make[1]: *** [src/CMakeFiles/enblend.dir/all] Error 2
  make: *** [all] Error 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/enblend/+bug/913146/+subscriptions


References