Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 18.04编译memcached失败 #154

Closed
981213 opened this issue May 24, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@981213
Copy link

commented May 24, 2018

Ubuntu 18.04 LTS使用GCC 7.3版本,编译libmemcached失败。

clients/memflush.cc:42:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   if (opt_servers == false)
                      ^~~~~
clients/memflush.cc:51:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     if (opt_servers == false)
                        ^~~~~

编译前需要打个补丁,参见:
https://bugs.launchpad.net/libmemcached/+bug/1663985
https://src.fedoraproject.org/cgit/rpms/libmemcached.git/plain/libmemcached-build.patch

@Quiet95scholar

This comment has been minimized.

Copy link
Contributor

commented May 24, 2018

@oneinstack

This comment has been minimized.

Copy link
Owner

commented Jul 8, 2018

@oneinstack oneinstack closed this Jul 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.