[MacPorts] #57630: blosc @ 1.14.4: build fails due to undefined symbols on OS X Leopard PPC

MacPorts noreply at macports.org
Sat Nov 17 21:33:52 UTC 2018


#57630: blosc @ 1.14.4: build fails due to undefined symbols on OS X Leopard PPC
---------------------------+---------------------------
  Reporter:  SerpentChris  |      Owner:  stromnov
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.5.4
Resolution:                |   Keywords:  leopard tiger
      Port:  blosc         |
---------------------------+---------------------------

Comment (by kencu):

 this little patch does the right thing. blosc builds, passes all but 4 of
 the tests on 10.5 PPC. It didn't actually run the benchmark suite, so I
 didn't prove that this patch actually worked, however. But the tests and
 benchmark suite aren't installed by default anyway.
 {{{
 diff --git bench/bench.c bench/bench.c
 index 39d6aeb..3bc617f 100644
 --- bench/bench.c
 +++ bench/bench.c
 @@ -121,6 +121,18 @@ double get_usec_chunk(blosc_timestamp_t last,
 blosc_timestamp_t current, int nit
    return elapsed_usecs / (double)(niter * nchunks);
  }

 +#if defined __APPLE__ && MAC_OS_X_VERSION_MAX_ALLOWED < 1060
 +#include <sys/errno.h>
 +int posix_memalign(void **memptr, size_t alignment, size_t size)
 +{
 +       *memptr = valloc(size);
 +       if (*memptr == NULL) {
 +           return ENOMEM;
 +           }
 +       return 0;
 +}
 +#endif
 +
  /* Define posix_memalign for Windows */
  #if defined(_WIN32)
  #include <malloc.h>
 }}}

 You can check this out here if you want
 <https://github.com/kencu/LeopardPorts/tree/master/archivers/blosc>. If it
 works for you as well, we can put together a PR for it.

 Best, K

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


More information about the macports-tickets mailing list