Mon 10 Jan 2005 06:03:42 AM UTC, original submission:
I installed the FreeBSD port of boost-1.32.0.
I downloaded the monotone-0.16 tarball, and did:
CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure; gmake
It bails with this error:
if g++ -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I./lua -I./sqlite -DNDEBUG -DBOOST_DISABLE_THREADS -Wall -O2 -fno-strict-aliasing -MT monotone-merkle_tree.o -MD -MP -MF ".deps/monotone-merkle_tree.Tpo" -c -o monotone-merkle_tree.o `test -f 'merkle_tree.cc' || echo './'`merkle_tree.cc; \
then mv -f ".deps/monotone-merkle_tree.Tpo" ".deps/monotone-merkle_tree.Po"; else rm -f ".deps/monotone-merkle_tree.Tpo"; exit 1; fi
/usr/local/include/boost/dynamic_bitset/dynamic_bitset.hpp: In constructor `boost::dynamic_bitset<Block, Allocator>::dynamic_bitset(size_t, long unsigned int, const Allocator&) [with Block = unsigned char, Allocator = std::allocator<unsigned char>]':
merkle_tree.cc:80: instantiated from here
/usr/local/include/boost/dynamic_bitset/dynamic_bitset.hpp:541: warning: comparison between `enum boost::dynamic_bitset<unsigned char, std::allocator<unsigned char> >::<anonymous>' and `enum boost::dynamic_bitset<unsigned char, std::allocator<unsigned char> >::<anonymous>'
merkle_tree.cc:80: instantiated from here
/usr/local/include/boost/dynamic_bitset/dynamic_bitset.hpp:548: error: no matching function for call to `make_non_const(boost::dynamic_bitset<unsigned char, std::allocator<unsigned char> >::<anonymous enum>)'
gmake[2]: *** [monotone-merkle_tree.o] Error 1
I'm using:
22:48 ~/dl/monotone-0.16$ gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.2 [FreeBSD] 20040728
My C++ is a little rusty when it comes to templates and overloaded constructors, etc., so I can't figure out what it's hanging up on.
I replaced the -c -o <filename> with -E -dD, and uploaded it to:
http://www.magnesium.net/~thim/tmp/merkle_tree.cc-out.gz
I hope that might be useful in sorting this out.
The monotone port in FreeBSD is marked BROKEN now, and will be removed altogether soon. I'd like to figure out how to get it to build there, and hopefully rescue the port.
Thanks for any help,
Timothy
|