Can't build on OSX with boost 1.44

Bug #672723 reported by Lee Bieber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Fix Released
Critical
Andrew Hutchings
7.0
Fix Released
Critical
Andrew Hutchings

Bug Description

Not sure if this is OSX specific as we don't have 1.44 on our other build machines

/usr/local/include/boost/iostreams/stream.hpp: In constructor 'boost::iostreams::stream<Device, Tr, Alloc>::stream(const U0&, const U1&, typename boost::disable_if<boost::is_same<U0, T>, void>::type*) [with U0 = int, U1 = bool, Device = boost::iostreams::file_descriptor, Tr = std::char_traits<char>, Alloc = std::allocator<char>]':
client/linebuffer.cc:33: instantiated from here
/usr/local/include/boost/iostreams/stream.hpp:128: error: no matching function for call to 'boost::iostreams::file_descriptor::file_descriptor(const int&, const bool&)'
/usr/local/include/boost/iostreams/device/file_descriptor.hpp:95: note: candidates are: boost::iostreams::file_descriptor::file_descriptor(const boost::iostreams::file_descriptor&)
/usr/local/include/boost/iostreams/device/file_descriptor.hpp:82: note: boost::iostreams::file_descriptor::file_descriptor(const char*, std::_Ios_Openmode)
/usr/local/include/boost/iostreams/device/file_descriptor.hpp:77: note: boost::iostreams::file_descriptor::file_descriptor(const std::string&, std::_Ios_Openmode)
/usr/local/include/boost/iostreams/device/file_descriptor.hpp:61: note: boost::iostreams::file_descriptor::file_descriptor(boost::iostreams::detail::file_handle, boost::iostreams::file_descriptor_flags)
/usr/local/include/boost/iostreams/device/file_descriptor.hpp:58: note: boost::iostreams::file_descriptor::file_descriptor()
make[2]: *** [client/linebuffer.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Related branches

Revision history for this message
David Shrewsbury (dshrews) wrote :

I use Boost 1.44 on my Macs, but it is installed from MacPorts. No problems with it.

Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

David: Have you tried latest trunk? The code that is hitting has only been in there for about 4 hours.

Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

Reproduced in Ubuntu with the Boost PPA:

https://launchpad.net/~boost-latest/+archive/ppa

Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

Function I am using is deprecated, can only be used with a #define, switching to a similar one which is fine in current boost.

Revision history for this message
David Shrewsbury (dshrews) wrote :

Ah, I had not tried with the latest trunk. Yes, this is happening for me too, now.

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.