Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Apr 2016 18:40:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 208525] databases/mysql57-server: Fix build with libc++ 3.8.0
Message-ID:  <bug-208525-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208525

            Bug ID: 208525
           Summary: databases/mysql57-server: Fix build with libc++ 3.8.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: mokhi64@gmail.com
             Flags: maintainer-feedback?(mokhi64@gmail.com)
                CC: mokhi64@gmail.com

Created attachment 168978
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D168978&action=
=3Dedit
Fix several std::map declarations in databases/mysql57-server

During the exp-run in bug 208158, it was found that databases/mysql57-server
gives errors with libc++ 3.8.0 [1]:

In file included from
/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.10/storage/innob=
ase/buf/buf0buf.cc:33:
In file included from
/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.10/storage/innob=
ase/include/ha_prototypes.h:32:
In file included from
/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.10/storage/innob=
ase/include/univ.i:594:
In file included from
/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.10/storage/innob=
ase/include/sync0types.h:32:
In file included from
/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.10/storage/innob=
ase/include/ut0new.h:124:
/usr/include/c++/v1/map:837:5: error: implicit instantiation of undefined
template '__static_assert_test<false>'
    static_assert((is_same<typename allocator_type::value_type,
value_type>::value),
    ^
/usr/include/c++/v1/__config:632:35: note: expanded from macro 'static_asse=
rt'
    typedef __static_assert_check<sizeof(__static_assert_test<(__b)>)> \
                                  ^
/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.10/storage/innob=
ase/buf/buf0buf.cc:359:19:
note: in instantiation of template class 'std::__1::map<const unsigned char=
 *,
buf_chunk_t *, std::__1::less<const unsigned char *>,
ut_allocator<std::__1::pair<const unsigned char *, buf_chunk_t *> > >'
requested here
        buf_chunk_map_reg->insert(buf_pool_chunk_map_t::value_type(
                         ^

This is because the value_type for a std::map<> should have a const key
argument.  Fix a number of std::map declarations and typedefs by sprinling
const in the right places.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_=
18h30m05s/logs/errors/mysql57-server-5.7.10_3.log

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208525-13>