bugmonotone - Bugs: bug #11549, FreeBSD 5-STABLE compile error:...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #11549: FreeBSD 5-STABLE compile error: merkle_tree.cc / dynamic_bitset: no matching function

Submitted by:  None
Submitted on:  Mon 10 Jan 2005 06:03:42 AM UTC  
 
Category: portabilitySeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed
mtn version --full: 

Mon 16 Jan 2006 02:02:16 AM UTC, comment #1:

Closing this ancient bug report; monotone seems to work fine on FreeBSD these days.

Nathaniel Smith <njs>
Project Member
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

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 16 Jan 2006 02:02:16 AM UTCnjsStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Tue 11 Jan 2005 12:36:30 AM UTCsinkorswimCarbon-Copy-=>Added sinkorswim

Back to the top


Powered by Savane 3.1-cleanup1