boost 1.48 gives errors on Mac OS X

Bug #910160 reported by hvdwolf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Undecided
Unassigned

Bug Description

When compiling the hugin trunk on Max OS X 10.6 aganst boost 1_48_0 I get the following errors, both for the normal cmake build and within XCode (below the XCode versions, paths are different but erors the same).

Could this have somtehing to do with commit 5713:7f0674a26bdb?

CompileC "build/Hugin.build/Release/base_wx Framework.build/Objects-normal/ppc/wxImageCache.o" ../src/hugin1/base_wx/wxImageCache.cpp normal ppc c++ com.apple.compilers.gcc.4_0
cd /Users/Shared/development/hugin_related/hugin/mac
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.0 -x c++ -arch ppc -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -O2 -DHUGIN_PRECOMP -DWX_PRECOMP -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iquote "/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx Framework.build/HuginBaseWx-generated-files.hmap" "-I/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx Framework.build/HuginBaseWx-own-target-headers.hmap" "-I/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx Framework.build/HuginBaseWx-all-target-headers.hmap" -iquote "/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx Framework.build/HuginBaseWx-project-headers.hmap" -mcpu=G3 -mtune=G4 -F/Users/Shared/development/hugin_related/hugin/mac/build/Release -I/Users/Shared/development/hugin_related/hugin/mac/build/Release/include -I../src/hugin_base -I../src/foreign/vigra -I../src/foreign -I../src/hugin1 -I/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/wx-2.8 -I/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/lib/wx/include/mac-unicode-release-2.8 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/include -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon -I/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include -I/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/OpenEXR -I../src "-I/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx Framework.build/DerivedSources/ppc" "-I/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx Framework.build/DerivedSources" -include /var/folders/+R/+RmeG2o8EleS+UbdOPEbWE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/hugin1-atuynrqwpeqpllbwyvwvfmlruore/hugin1.pch -c /Users/Shared/development/hugin_related/hugin/mac/../src/hugin1/base_wx/wxImageCache.cpp -o "/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx Framework.build/Objects-normal/ppc/wxImageCache.o"

/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:149: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:150: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:152: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:149: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:150: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:152: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:149: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:150: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:152: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:149: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:150: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:152: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_postfix_operator.hpp:141: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_postfix_operator.hpp:142: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_postfix_operator.hpp:144: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_postfix_operator.hpp:141: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_postfix_operator.hpp:142: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_postfix_operator.hpp:144: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:149: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:150: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:152: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:149: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:150: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:152: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:155: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:156: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_binary_operator.hpp:158: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:149: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:150: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:152: error: expected primary-expression before ')' token
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:149: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:150: error: declaration does not declare anything
/Users/Shared/development/hugin_related/ExternalPrograms/3way-repository/include/boost/type_traits/detail/has_prefix_operator.hpp:152: error: expected primary-expression before ')' token

Revision history for this message
tmodes (tmodes) wrote :

It has nothing to do with the mentioned changeset, because the file wxImageCache was not touched by this changeset.
There seems to be a conflict with some Apple/MacOS macros and boost 1.48. This was already reported to boost: https://svn.boost.org/trac/boost/ticket/6219
This should be fixed in boost.
See also
http://stackoverflow.com/questions/8173620/c-boost-1-48-type-traits-and-cocoa-inclusion-weirdness

From the mentioned links you could try (all in wxImageCache.h, but try only one solution at one time, not all 3 at the same time):
1.) Add
         #define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
at the begin (before the inclusion of all other headers)
2.) Add
      #ifdef check
      #undef check
      #endif
directly before the inclusion of the boost libs.
3.) Change the order of inclusions in wxImageCache.h, so the boost libs are included before the mac specific macros come in. Try putting
#include <boost/shared_ptr.hpp>
before the other headers.

If workaround 1 or 2 are working, put them into #ifdef __APPLE__ #endif. For workaround 3 this should not be necessary (I hope, not tested).

PS: Hugin compiles fine with boost 1.48 here on windows. I have no problems with this file.

Revision history for this message
hvdwolf (hvdwolf) wrote : Re: [Bug 910160] Re: boost 1.48 gives errors on Mac OS X
Download full text (25.4 KiB)

Thanks,

I will try, but not tonight anymore :)

Harry

2011/12/31 tmodes <email address hidden>

> It has nothing to do with the mentioned changeset, because the file
> wxImageCache was not touched by this changeset.
> There seems to be a conflict with some Apple/MacOS macros and boost 1.48.
> This was already reported to boost:
> https://svn.boost.org/trac/boost/ticket/6219
> This should be fixed in boost.
> See also
>
> http://stackoverflow.com/questions/8173620/c-boost-1-48-type-traits-and-cocoa-inclusion-weirdness
>
> >From the mentioned links you could try (all in wxImageCache.h, but try
> only one solution at one time, not all 3 at the same time):
> 1.) Add
> #define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
> at the begin (before the inclusion of all other headers)
> 2.) Add
> #ifdef check
> #undef check
> #endif
> directly before the inclusion of the boost libs.
> 3.) Change the order of inclusions in wxImageCache.h, so the boost libs
> are included before the mac specific macros come in. Try putting
> #include <boost/shared_ptr.hpp>
> before the other headers.
>
> If workaround 1 or 2 are working, put them into #ifdef __APPLE__ #endif.
> For workaround 3 this should not be necessary (I hope, not tested).
>
> PS: Hugin compiles fine with boost 1.48 here on windows. I have no
> problems with this file.
>
> ** Bug watch added: Boost Trac #6219
> http://svn.boost.org/trac/boost/ticket/6219
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/910160
>
> Title:
> boost 1.48 gives errors on Mac OS X
>
> Status in Hugin - Panorama Tools GUI:
> New
>
> Bug description:
> When compiling the hugin trunk on Max OS X 10.6 aganst boost 1_48_0 I
> get the following errors, both for the normal cmake build and within
> XCode (below the XCode versions, paths are different but erors the
> same).
>
> Could this have somtehing to do with commit 5713:7f0674a26bdb?
>
> CompileC "build/Hugin.build/Release/base_wx
> Framework.build/Objects-normal/ppc/wxImageCache.o"
> ../src/hugin1/base_wx/wxImageCache.cpp normal ppc c++
> com.apple.compilers.gcc.4_0
> cd /Users/Shared/development/hugin_related/hugin/mac
> setenv LANG en_US.US-ASCII
> /Developer/usr/bin/gcc-4.0 -x c++ -arch ppc -fmessage-length=0 -pipe
> -Wno-trigraphs -fpascal-strings -O2 -DHUGIN_PRECOMP -DWX_PRECOMP
> -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iquote
> "/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx
> Framework.build/HuginBaseWx-generated-files.hmap"
> "-I/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx
> Framework.build/HuginBaseWx-own-target-headers.hmap"
> "-I/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx
> Framework.build/HuginBaseWx-all-target-headers.hmap" -iquote
> "/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx
> Framework.build/HuginBaseWx-project-headers.hmap" -mcpu=G3 -mtune=G4
> -F/Users/Shared/development/hugin_rela...

Revision history for this message
hvdwolf (hvdwolf) wrote :
Download full text (26.1 KiB)

I made already numerous patches using option 2 which is the only one that
seems to work. The commit 5722:658ded2153f2 to trunk is not the solution.
Switching boost versions simply didn't work correctly in the bundle.

I will continue but it's a tedious job.

Harry

2011/12/31 Harry van der Wolf <email address hidden>

> Thanks,
>
> I will try, but not tonight anymore :)
>
> Harry
>
>
> 2011/12/31 tmodes <email address hidden>
>
>> It has nothing to do with the mentioned changeset, because the file
>> wxImageCache was not touched by this changeset.
>> There seems to be a conflict with some Apple/MacOS macros and boost 1.48.
>> This was already reported to boost:
>> https://svn.boost.org/trac/boost/ticket/6219
>> This should be fixed in boost.
>> See also
>>
>> http://stackoverflow.com/questions/8173620/c-boost-1-48-type-traits-and-cocoa-inclusion-weirdness
>>
>> >From the mentioned links you could try (all in wxImageCache.h, but try
>> only one solution at one time, not all 3 at the same time):
>> 1.) Add
>> #define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
>> at the begin (before the inclusion of all other headers)
>> 2.) Add
>> #ifdef check
>> #undef check
>> #endif
>> directly before the inclusion of the boost libs.
>> 3.) Change the order of inclusions in wxImageCache.h, so the boost libs
>> are included before the mac specific macros come in. Try putting
>> #include <boost/shared_ptr.hpp>
>> before the other headers.
>>
>> If workaround 1 or 2 are working, put them into #ifdef __APPLE__ #endif.
>> For workaround 3 this should not be necessary (I hope, not tested).
>>
>> PS: Hugin compiles fine with boost 1.48 here on windows. I have no
>> problems with this file.
>>
>> ** Bug watch added: Boost Trac #6219
>> http://svn.boost.org/trac/boost/ticket/6219
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/910160
>>
>> Title:
>> boost 1.48 gives errors on Mac OS X
>>
>> Status in Hugin - Panorama Tools GUI:
>> New
>>
>> Bug description:
>> When compiling the hugin trunk on Max OS X 10.6 aganst boost 1_48_0 I
>> get the following errors, both for the normal cmake build and within
>> XCode (below the XCode versions, paths are different but erors the
>> same).
>>
>> Could this have somtehing to do with commit 5713:7f0674a26bdb?
>>
>> CompileC "build/Hugin.build/Release/base_wx
>> Framework.build/Objects-normal/ppc/wxImageCache.o"
>> ../src/hugin1/base_wx/wxImageCache.cpp normal ppc c++
>> com.apple.compilers.gcc.4_0
>> cd /Users/Shared/development/hugin_related/hugin/mac
>> setenv LANG en_US.US-ASCII
>> /Developer/usr/bin/gcc-4.0 -x c++ -arch ppc -fmessage-length=0 -pipe
>> -Wno-trigraphs -fpascal-strings -O2 -DHUGIN_PRECOMP -DWX_PRECOMP
>> -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -isysroot
>> /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iquote
>> "/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx
>> Framework.build/HuginBaseWx-generated-files.hmap"
>> "-I/Users/Shared/development/hugin_related/hugin/mac/build/Hugin.build/Release/base_wx
>> Frame...

Revision history for this message
tmodes (tmodes) wrote :

The ticket mentioned in comment#1 has been fixed. So the build should also work with current boost version.
So closing here.
Please reopen the ticket if the bug still exists.

Changed in hugin:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.