Bug 213346 - databases/mysql-connector-c++: Build issue connector with MySQL 5.7 client
Summary: databases/mysql-connector-c++: Build issue connector with MySQL 5.7 client
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-09 20:06 UTC by Dmitriy
Modified: 2016-10-16 13:32 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy 2016-10-09 20:06:33 UTC
When building databases/mysql-connector-c++ with installed mysql57-client-5.7.15 got more than 20 errors like 

In file included from /usr/local/include/boost/config/no_tr1/memory.hpp:21:
/usr/include/c++/v1/memory:2595:13: error: expected ')'
            static_assert(!is_pointer<deleter_type>::value,  
            ^
...
In file included from /usr/include/c++/v1/__locale:15:
/usr/include/c++/v1/string:1263:5: error: expected ')'
    static_assert((is_same<typename allocator_type::value_type, value_type>::value),
    ^
...
/usr/include/c++/v1/string:1261:5: error: expected ')'
    static_assert((is_same<_CharT, value_type>::value),
    ^

Workaround for me is to add CMAKE_ENABLE_C++11=ON to CMAKE_ARGS option in port Makefile like:

- CMAKE_ARGS=     -DDOC_DESTINATION="${DOCSDIR}"
+ CMAKE_ARGS=     -DDOC_DESTINATION="${DOCSDIR}" -DCMAKE_ENABLE_C++11=ON

after that builds and seems to works fine.

Found on fresh ports tree and:
FreeBSD 11.0 latest on STABLE
FreeBSD 12.0-CURRENT #0 r306907

With mysql56-client this port build and works fine without any intrusion.
Comment 1 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2016-10-12 12:57:26 UTC
For the time being I will await till mysql57-* ports are back to normal. Currently those are marked to ignore.
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-10-16 13:31:31 UTC
A commit references this bug:

Author: bofh
Date: Sun Oct 16 13:30:57 UTC 2016
New revision: 424061
URL: https://svnweb.freebsd.org/changeset/ports/424061

Log:
  databases/mysql-conector-c++: Fix build in 11.0 and later [1]

  - Make patches makepatch compatible

  PR:		213346 [1]
  Submitted by:	supportme@ukr.net [1]

Changes:
  head/databases/mysql-connector-c++/Makefile
  head/databases/mysql-connector-c++/files/patch-driver_mysql__resultbind.cpp
  head/databases/mysql-connector-c++/files/patch-driver_mysql__util.cpp
  head/databases/mysql-connector-c++/files/patch-optional-json
Comment 3 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2016-10-16 13:32:08 UTC
Committed with minor changes.