[MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

classic Classic list List threaded Threaded
27 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
-------------------------------------------------+-------------------------
 Reporter:  TheLastLovemark                      |      Owner:  (none)
     Type:  defect                               |     Status:  new
 Priority:  Normal                               |  Milestone:
Component:  ports                                |    Version:  2.5.4
 Keywords:  mysql57, boost, snort, build fail,   |       Port:  mysql57,
  upgrade fail                                   |  boost
-------------------------------------------------+-------------------------
 I ''just'' performed another self update at the instruction of
 ''{{{kencu}}}'' for [https://trac.macports.org/ticket/58088/ this ticket].

 As soon as the self update completed, i performed a {{{port outdated}}}
 and saw mysql57, mysql57-server and snort were outdated, among others like
 tesseract and its dependent ports. Tesseract et al upgraded with no
 problem.

 When I tried to upgrade snort, mysql and boost were upgraded as snort is
 dependent on both.

 The mysql57 upgrade failed because boost was active. I deactivated boost,
 cleaned mysql57 and ran an upgrade of mysql57 directly. That faild because
 boost was deactivated. The log of the second fail is attached.

--
Ticket URL: <https://trac.macports.org/ticket/58091>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  (none)
  TheLastLovemark        |
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.5.4
Resolution:              |   Keywords:  mysql57, boost, snort, build fail,
      Port:  mysql57,    |  upgrade fail
  boost                  |
-------------------------+-------------------------------------------------
Changes (by TheLastLovemark):

 * Attachment "mysql57_main.log" added.

 mysql57 main.log

--
Ticket URL: <https://trac.macports.org/ticket/58091>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------
Changes (by mf2k):

 * keywords:  mysql57, boost, snort, build fail, upgrade fail =>
 * port:  mysql57, boost => mysql57 boost


--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by Schamschula):

 See: #58081

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by TheLastLovemark):

 I don't know how to "use conflicts build"

 Am I supposed to use a specific flag when I type the {{{port install}}}
 command?

 Thank you for the guidance though

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by Schamschula):

 Replying to [comment:4 TheLastLovemark]:
 > I don't know how to "use conflicts build"
 >
 > Am I supposed to use a specific flag when I type the {{{port install}}}
 command?
 >
 > Thank you for the guidance though

 If you try to install mysql57, you will get a message telling you what to
 do. In this case you need to deactivate boost:

 {{{sudo port -f deactivate boost}}}

  Enter the command it gives you. You can reactivate boost after upgrading
 mysql57:

 {{{sudo port activate boost}}}

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by TheLastLovemark):

 I've tried that already, i.e. the last line of the initial report above.

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by Schamschula):

 Replying to [comment:6 TheLastLovemark]:
 > I've tried that already, i.e. the last line of the initial report above.

 Did you run {{{sudo port clean mysql57}}} before trying again?

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------
Changes (by TheLastLovemark):

 * Attachment "NEWmysql57_main.log" added.

 NEW mysql57 main.log

--
Ticket URL: <https://trac.macports.org/ticket/58091>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by TheLastLovemark):

 yes.

 I did it again as {{{root}}} just to be sure. and uninstalled boost 1.6x
 completely so that the version packaged with mysql57 (1.59?) is the only
 one on the system, and it failed again.  New mysql57 main.log

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by michaelld):

 What does the following return:
 {{{
 port provides /opt/local/include/google/protobuf/message.h
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by TheLastLovemark):

 {{{
 /opt/local/include/google/protobuf/message.h is provided by: protobuf3-cpp
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by michaelld):

 OK that's what I thought. Took me a bit to track that down & install it
 for testing.

 So there are a few issues here:

 (1) mysql57 is opportunistically finding and using protobuf3-cpp . I think
 this feature can be disabled via the cmake commandline, and really it
 should be a variant  / optional.

 (2) protobuf3-cpp API (header) require C++11 for building, but mysql57
 when building the plugin that uses protobuf3-cpp isn't using C++11 ...
 it's not specifying any C++ standard, which with most compilers means
 C++03 or earlier ... certainly not C++11 yet. Without C++11, this plugin
 won't build. You can see the errors in the build log associated with this
 issue:
 {{{
 :info:build In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql57/mysql57/work/mysql-5.7.25/rapid/plugin/x/ngs/include/ngs_common/protocol_protobuf.h:25:
 :info:build In file included from
 /opt/local/include/google/protobuf/message.h:118:
 :info:build In file included from
 /opt/local/include/google/protobuf/arena.h:51:
 :info:build /opt/local/include/google/protobuf/arena_impl.h:249:15: error:
 no type named 'atomic' in namespace 'std'
 :info:build   static std::atomic<int64> lifecycle_id_generator_;
 ...
 :info:build /opt/local/include/google/protobuf/arena_impl.h:303:22:
 warning: rvalue references are a C++11 extension [-Wc++11-extensions]
 :info:build   ArenaImpl(ArenaImpl&&) = delete;
 :info:build                      ^
 :info:build /opt/local/include/google/protobuf/arena_impl.h:303:28:
 warning: deleted function definitions are a C++11 extension
 [-Wc++11-extensions]
 :info:build   ArenaImpl(ArenaImpl&&) = delete;
 :info:build                            ^
 }}}
 And then see also < https://en.cppreference.com/w/cpp/atomic/atomic >
 where it should be noted that `std::atomic` requires C++11.

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by michaelld):

 Can you attach the file `$(port work mysql57)/build/CMakeCache.txt`?

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by michaelld):

 Another possible issue: The MySql57 CMake script is designed to use the
 internal protocol buffers source if the user doesn't specify otherwise.
 There's nothing in the Portfile specifying otherwise, but because 'port'
 uses lots of MacPorts headers, I'd bet that for the specific plugin C++
 files there is a header search path ordering issue, where the MacPorts
 headers are searched before the internal MySql57 headers. The MySql57
 protocol buffers is at version 2.6.1, which probably doesn't require C++11
 for building & Hence would work correctly if not for so many issues herein
 LOL!

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------
Changes (by TheLastLovemark):

 * Attachment "mysql57_CMakeCache.txt" added.

 mysql57 CMakeCache.txt

--
Ticket URL: <https://trac.macports.org/ticket/58091>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by TheLastLovemark):

 So what do I do?

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by michaelld):

 Not sure what can be done just yet. MySql57 seems to be a mess internally.
 You can try `sudo port -f deactivate protobuf3-cpp` & then clean myqsl57
 and try again. This fixed the immediate issue for me, but the build still
 crashed later.

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by michaelld):

 See < https://github.com/macports/macports-ports/pull/3682 > for a
 possible patch; this PR fixes the issues for me.

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #58091: weird boost/mysql issue preventing snort upgrade after selfupdate

MacPorts
In reply to this post by MacPorts
#58091: weird boost/mysql issue preventing snort upgrade after selfupdate
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.5.4
Resolution:                   |   Keywords:
      Port:  mysql57 boost    |
------------------------------+--------------------

Comment (by TheLastLovemark):

 I'm not familiar with this way of updating

--
Ticket URL: <https://trac.macports.org/ticket/58091#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS
12