[MacPorts] #48085: Upgrade Redis 3.0.2 fatal error: 'jemalloc/jemalloc.h' file not found
MacPorts
noreply at macports.org
Thu Jun 18 16:03:39 PDT 2015
#48085: Upgrade Redis 3.0.2 fatal error: 'jemalloc/jemalloc.h' file not found
------------------------------+----------------------------
Reporter: muriel.hernan@… | Owner: brianjlandau@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords:
Port: redis |
------------------------------+----------------------------
Comment (by mp@…):
According to the redis README, a `make distclean` is needed for the
supplied dependencies to build correctly:
{{{
Fixing build problems with dependencies or cached build options
---------
Redis has some dependencies which are included into the "deps" directory.
"make" does not rebuild dependencies automatically, even if something in
the
source code of dependencies is changes.
When you update the source code with `git pull` or when code inside the
dependencies tree is modified in any other way, make sure to use the
following
command in order to really clean everything and rebuild from scratch:
make distclean
This will clean: jemalloc, lua, hiredis, linenoise.
}}}
so adding
{{{
compiler.whitelist macports-gcc
pre-build {
system -W ${worksrcpath} "make distclean"
}
}}}
works fine.
(The jemalloc supplied with redis doesn't get configured correctly if
`/usr/bin/clang` is chosen as compiler, and fails with
{{{
:info:build configure: error: C preprocessor "/lib/cpp" fails sanity check
}}}
in such a case.)
----
Some other tests:
----
If the line
{{{
build.args-append MALLOC=jemalloc
}}}
in the redis Portfile is commented out, redis installs fine.
----
Redis fails to build even if the jemalloc port is installed manually
first.\\
Attached log: attachment:redis-fails-even-with-jemalloc-installed.log \\
The jemalloc supplied with redis should apparently be used.
--
Ticket URL: <https://trac.macports.org/ticket/48085#comment:5>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list