[MCOL-4734] Compilation failure: MariaDB-10.6 + ColumnStore-develop Created: 2021-05-25  Updated: 2021-05-28  Resolved: 2021-05-28

Status: Closed
Project: MariaDB ColumnStore
Component/s: PrimProc
Affects Version/s: 6.1.1
Fix Version/s: 6.1.1

Type: Bug Priority: Blocker
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None


 Description   

After recent changes in the server, the develop branch of ColumnStore fails to compile against the 10.6 server branch with the following sympthoms.

/home/bar/maria-git/s10.6.cs6.char1/BUILD-DEB/include/my_config.h:226: error: "HAVE_STRTOLL" redefined [-Werror]
  226 | #define HAVE_STRTOLL 1
      | 
...
/home/bar/maria-git/s10.6.cs6.char1/include/m_string.h:182: note: this is the location of the previous definition
  182 | #define HAVE_STRTOLL

/usr/include/boost/math/special_functions/detail/fp_traits.hpp: In static member function ‘static void boost::math::detail::fp_traits_non_native<float, boost::math::detail::single_precision>::get_bits(float, uint32_t&)’:
/home/bar/maria-git/s10.6.cs6.char1/include/m_string.h:44:26: error: ‘bcopy’ is not a member of ‘std’; did you mean ‘copy’?
   44 | # define memcpy(d, s, n) bcopy ((s), (d), (n))

The problem happens because of a wrong inclusion order of:

  • mcsconfig.h - ColumnStore configuration header
  • my_config.h - MariaDB configuration header
  • m_ctype.h - MariaDB charset and collation library header
  • my_sys.h - MariaDB mysys library header


 Comments   
Comment by Roman [ 2021-05-25 ]

The centos7 build fails even with the merged patch however a simple include fixes the issue.

Generated at Thu Feb 08 02:52:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.