libmemcached does not compile on Mac OS X Mavericks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libmemcached |
In Progress
|
Undecided
|
Brian Aker |
Bug Description
I'm trying to compile libmemcached and it doesn't go beyond one specific point. I am no C expert so I really don't know where to go further. I've tried to manually adjust some values in the Makefile but I did just mess it up more.
./configure works fine, problem comes with make (output from make --debug):
Must remake target `tests/memerror'.
CXXLD tests/memcat
File `tests/memslap' does not exist.
Must remake target `tests/memslap'.
CXXLD tests/memerror
File `tests/memdump' does not exist.
Must remake target `tests/memdump'.
CXXLD tests/memslap
CXXLD tests/memdump
File `all-am' does not exist.
File `tests/
File `all-am' does not exist.
File `tests/
File `all-am' does not exist.
File `tests/
File `all-am' does not exist.
File `tests/
^Cmake[1]: *** [libmemcachedin
make: *** [all] Interrupt: 2
At the point of the last:
File `all-am' does not exist.
File `tests/
It just waits and nothing happens. I've waited for over an hour and still nothing. I've downgraded all the way back to 1.0.14 and still the same error.
Maybe it is an version problem error?
Configure command gives the following information at the end, if you need any more information, please do ask for it.
---
Configuration summary for libmemcached version 1.0.14
* Installation prefix: /usr/local
* System type: apple-darwin13.0.0
* Host CPU: x86_64
* C Compiler: i686-apple-
* C Flags: -g -O2 -Wno-pragmas -Wall -Wextra -Wunknown-pragmas -std=c99 --param=
* C++ Compiler: i686-apple-
* C++ Flags: -g -O2 -Wno-pragmas -Wall -Wextra -Wunknown-pragmas --param=
* CPP Flags: -fvisibility=hidden
* LIB Flags: -z -pie
* Assertions enabled: no
* Debug enabled: no
* Warnings as failure: no
* SASL support: yes
* make -j: 5
* VCS checkout: no
Greetings.
Changed in libmemcached: | |
status: | New → In Progress |
assignee: | nobody → Brian Aker (brianaker) |
To compile the latest stable with the latest Xcode on OS X Mavericks I had to change the the file clients/memflush.cc to add an explicit cast to avoid the errors:
clients/ memflush. cc:42:19: error: comparison between pointer and integer ('char *' and 'int') memflush. cc:51:21: error: comparison between pointer and integer ('char *' and 'int')
if (opt_servers == false)
~~~~~~~~~~~ ^ ~~~~~
clients/
if (opt_servers == false)
~~~~~~~~~~~ ^ ~~~~~
I casted false to (char *). Obviously on this platform char * is 64 bit and int is 32.