From: Enblend <enb...@li...> - 2009-11-25 09:28:43
|
Bugs item #2890654, was opened at 2009-11-02 12:52 Message generated for change (Comment added) made by cspiel You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=696409&aid=2890654&group_id=123407 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Compilation >Group: v4.0 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Harry van der Wolf (harryvanderwolf) Assigned to: Nobody/Anonymous (nobody) Summary: autoconf/cmake build on OSX (probably) breaks on boost Initial Comment: I downloaded enblend this morning (4.0-06c64ccdaae3) and tried to build it with both cmake and autoconf. It seems to break on something with boost. I tried boost version 1.38 and 1.40, but both break at the exact same point with the exact same message. I also tried without boost as I thought that boost was not requirered but that has changed? Please find attached the config.log g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -I/opt/local/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -DVIGRA_STATIC_LIB -D_THREAD_SAFE -I/opt/local/include/OpenEXR -I/opt/local/include -L/opt/local/lib --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -MT enblend-enblend.o -MD -MP -MF .deps/enblend-enblend.Tpo -c -o enblend-enblend.o `test -f 'enblend.cc' || echo '../../src/'`enblend.cc ../../src/common.h: In function ‘std::string enblend::errorMessage(int)’: ../../src/common.h:201: error: invalid conversion from ‘int’ to ‘const char*’ ../../src/common.h: In function ‘NumericType enblend::numberOfString(const char*, Validator1, const std::string&, NumericType, Validator2, const std::string&, NumericType) [with NumericType = unsigned int, Validator1 = boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::relational_action<boost::lambda::greaterorequal_action>, boost::tuples::tuple<boost::lambda::lambda_functor<boost::lambda::placeholder<1> >, const unsigned int, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > >, Validator2 = boost::lambda::lambda_functor<boost::lambda::identity<const bool> >]’: ../../src/common.h:464: instantiated from ‘NumericType enblend::numberOfString(const char*, Validator, const std::string&, NumericType) [with NumericType = unsigned int, Validator = boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::relational_action<boost::lambda::greaterorequal_action>, boost::tuples::tuple<boost::lambda::lambda_functor<boost::lambda::placeholder<1> >, const unsigned int, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > >]’ ../../src/enblend.cc:1067: instantiated from here ../../src/common.h:399: warning: comparison between signed and unsigned integer expressions ../../src/common.h:399: warning: comparison between signed and unsigned integer expressions ../../src/common.h:414: warning: comparison between signed and unsigned integer expressions make[4]: *** [enblend-enblend.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ---------------------------------------------------------------------- >Comment By: Christoph L. Spiel (cspiel) Date: 2009-11-25 10:28 Message: Fixed in rev1f29c3566be4. ---------------------------------------------------------------------- Comment By: Harry van der Wolf (harryvanderwolf) Date: 2009-11-23 19:40 Message: I changed line 22 in src/error_message.cc It said const char* message = strerror_r(anErrorNumber, message_buffer.get(), size); This gave me the "../../src/error_message.cc:22: error: invalid conversion from ‘int’ to ‘const char*’" error message I now changed that to: const char* message = (char *) strerror_r(anErrorNumber, message_buffer.get(), size); That leads to a correct compilation on both MacOSX and Ubuntu linux. I don't know though whether it leads to correct behaviour. please check. ---------------------------------------------------------------------- Comment By: Harry van der Wolf (harryvanderwolf) Date: 2009-11-14 13:52 Message: This morning I downloaded 4.0-1ab9f1201fc8. (I also tried 3 other intermediate versions). The last 2 versions still break at approx. the same place but with a different error: ../../src/enblend.cc:1083: instantiated from here ../../src/common.h:410: warning: comparison between signed and unsigned integer expressions ../../src/common.h:410: warning: comparison between signed and unsigned integer expressions ../../src/common.h:425: warning: comparison between signed and unsigned integer expressions mv -f .deps/enblend-enblend.Tpo .deps/enblend-enblend.Po g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -I/opt/local/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -DVIGRA_STATIC_LIB -D_THREAD_SAFE -I/opt/local/include/OpenEXR --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -MT enblend-gpu.o -MD -MP -MF .deps/enblend-gpu.Tpo -c -o enblend-gpu.o `test -f 'gpu.cc' || echo '../../src/'`gpu.cc mv -f .deps/enblend-gpu.Tpo .deps/enblend-gpu.Po g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -I/opt/local/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -DVIGRA_STATIC_LIB -D_THREAD_SAFE -I/opt/local/include/OpenEXR --param inline-unit-growth=60 -O2 -DNDEBUG -Wall -MT enblend-error_message.o -MD -MP -MF .deps/enblend-error_message.Tpo -c -o enblend-error_message.o `test -f 'error_message.cc' || echo '../../src/'`error_message.cc ../../src/error_message.cc: In function ‘std::string enblend::errorMessage(int)’: ../../src/error_message.cc:22: error: invalid conversion from ‘int’ to ‘const char*’ make[4]: *** [enblend-error_message.o] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=696409&aid=2890654&group_id=123407 |