[MacPorts] #64255: php81-apache2handler: unexpectedly uses xxhashlib, which fails (was: php81-apache2handler : Undefined symbols for architecture x86_64)

MacPorts noreply at macports.org
Tue Dec 21 08:25:27 UTC 2021


#64255: php81-apache2handler: unexpectedly uses xxhashlib, which fails
-------------------------+-------------------------
  Reporter:  BjarneDMat  |      Owner:  ryandesign
      Type:  defect      |     Status:  accepted
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.1
Resolution:              |   Keywords:  snowleopard
      Port:  php         |
-------------------------+-------------------------
Changes (by ryandesign):

 * status:  assigned => accepted
 * cc: ryandesign (removed)
 * version:   => 2.7.1
 * port:  php81-apache2handler => php


Comment:

 We have a successful build of this port on all OS versions on the
 buildbot.

 The problem seems to come from xxhash:

 {{{
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.1/ext/hash/hash_xxhash.c:18:
 In file included from ext/hash/php_hash_xxhash.h:21:
 /opt/local/include/xxhash.h:2266:5: warning: implicit declaration of
 function 'static_assert' is invalid in C99 [-Wimplicit-function-
 declaration]
     XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) == sizeof(XXH32_hash_t));
     ^
 }}}

 It was not intentional that php use xxhashlib; I didn't know it could. If
 you build with trace mode (`sudo port clean php81-apache2handler && sudo
 port -t install php81-apache2handler`) it should hide your xxhashlib from
 the php build until I can fix it.

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


More information about the macports-tickets mailing list