Giter Site home page Giter Site logo

Comments (5)

wjywbs avatar wjywbs commented on June 25, 2024

This is my patch to build it:

diff --git a/cmake/readline.cmake b/cmake/readline.cmake
index 353dab0..4167d02 100644
--- a/cmake/readline.cmake
+++ b/cmake/readline.cmake
@@ -157,7 +157,7 @@ MACRO (FIND_SYSTEM_LIBEDIT name)
     #include <readline/readline.h>
     int main(int argc, char **argv)
     {
-      char res= *(*rl_completion_entry_function)(0,0);
+      char res= (*rl_completion_entry_function)(0,0);
       completion_matches(0,0);
     }"
     ${name}_USE_LIBEDIT_INTERFACE)

Remove the * outside of the ().

from webscalesql-5.6.

wjywbs avatar wjywbs commented on June 25, 2024

@denji could you try the new build instructions published by @jwatzman? Specifically,

    -DCMAKE_C_FLAGS="-I$(brew --prefix readline)/include -L$(brew --prefix readline)/lib" \
    -DCMAKE_CXX_FLAGS="-I$(brew --prefix readline)/include -L$(brew --prefix readline)/lib" \

The settings above fixed the build for me.

https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-OSX-10.10

from webscalesql-5.6.

denji avatar denji commented on June 25, 2024

@wjywbs your changes do not affect the build, homebrew priority uses the path /usr/local/{include,lib} in cmake building these folders linked readline too.

The problem in cmake/readline.cmake, it does not support tests for latest readline.

from webscalesql-5.6.

jwatzman avatar jwatzman commented on June 25, 2024

@wjywbs your changes do not affect the build, homebrew priority uses the path /usr/local/{include,lib} in cmake building these folders linked readline too.

Something about that superenv stuff either isn't working as expected, or isn't making it thru HHVM into the webscalesql subproject that HHVM builds. Those two lines definitely fixed this issue for me as well, that's why I added them :)

The problem in cmake/readline.cmake, it does not support tests for latest readline.

I thought this was due to BSD's readline being weird, but I'm not totally sure on this one.

from webscalesql-5.6.

cruisercoder avatar cruisercoder commented on June 25, 2024

Trying to figure out how to build on 10.11.4 with hints from above and I get the errors below. Any ideas?

cd webscalesql/build
cmake -DCMAKE_C_FLAGS="-I$(brew --prefix readline)/include -L$(brew --prefix readline)/lib" -DCMAKE_CXX_FLAGS="-I$(brew --prefix readline)/include -L$(brew --prefix readline)/lib" ..

...
CMake Error at cmake/readline.cmake:183 (MESSAGE):
Cannot use libreadline!
Call Stack (most recent call first):
cmake/readline.cmake:194 (FIND_SYSTEM_LIBEDIT)
CMakeLists.txt:397 (MYSQL_CHECK_READLINE)

from webscalesql-5.6.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.