[MacPorts] #59074: [mysql8] compile failure on 10.6.8 x86_64

MacPorts noreply at macports.org
Sun Sep 22 16:45:21 UTC 2019


#59074: [mysql8] compile failure on 10.6.8 x86_64
-------------------------+-------------------------
  Reporter:  BjarneDMat  |      Owner:  herbygillot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.0
Resolution:              |   Keywords:
      Port:  mysql8      |
-------------------------+-------------------------

Comment (by kencu):

 {{{
 :info:build
 /macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql8/mysql8/work/mysql-8.0.17/storage/innobase/handler/ha_innodb.cc:298:28:
 error: use of undeclared identifier '_SC_PHYS_PAGES'
 :info:build   return (((double)sysconf(_SC_PHYS_PAGES)) *
 }}}

 `_SC_PHYS_PAGES` is not supported by sysconf on 10.6.8. I'm not sure when
 it was added.

 Sounds like something ripe for the `legacysupport` PG to add though. We
 already do something similar in that group for a few other `sysconf`
 additions.

 This file
 <https://github.com/practicalswift/osx/blob/master/src/cxxfilt/cxxfilt/libiberty/physmem.c>
 has a bunch of workarounds for that; not exact replacements, but alternate
 ways of doing the same thing. It's possible that a patch to mysql could be
 acceptable while we work out the `legacysupport` PG update.

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


More information about the macports-tickets mailing list