Opened 12 years ago

Closed 12 years ago

#34955 closed defect (fixed)

mariadb: build error when boost is installed

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jogwtr@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: pixilla (Bradley Giesbrecht)
Port: mariadb

Description

Trying to install mariadb results in an error about boost:

/opt/local/include/boost/property_map/property_map.hpp:354: error: no match for ‘operator[]’ in ‘(const boost::bundle_property_map<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, open_query::VertexInfo, open_query::EdgeInfo, boost::no_property, boost::listS>, boost::detail::edge_desc_impl<boost::bidirectional_tag, long unsigned int>, open_query::EdgeInfo, double>&)((const boost::bundle_property_map<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, open_query::VertexInfo, open_query::EdgeInfo, boost::no_property, boost::listS>, boost::detail::edge_desc_impl<boost::bidirectional_tag, long unsigned int>, open_query::EdgeInfo, double>*)(& pa))[k]’

mariadb installs fine when boost is deactivated. So there's at least two problems:

  1. mariadb is using boost but does not declare a dependency on it
  2. mariadb appears not to be compatible with the version of boost in MacPorts

I don't know what boost does for mariadb, so someone who does know should decide whether we should:

  1. make mariadb always use boost, and patch it so it works with the current version of boost, and add a boost dependency to the mariadb port, or
  2. make mariadb never use boost, even if it is already installed

Attachments (1)

patch-mariadb-5.5.24.diff (30.4 KB) - added by pixilla (Bradley Giesbrecht) 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by pixilla (Bradley Giesbrecht)

Attachment: patch-mariadb-5.5.24.diff added

comment:1 Changed 12 years ago by pixilla (Bradley Giesbrecht)

I have mariadb 5.5.24 installed and functioning along side mysql51, mysql55 and percona. My tests last night and this morning have not revealed any issues to me.

comment:2 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Boost was active on my system when I installed mariadb 5.5.24.

comment:3 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed

See r94839

Note: See TracTickets for help on using tickets.