google-code-export / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

can't build redis 2.2 on OS/X10.6 #443

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
utilizing libtool 2.4
I get the following

$ make
cd src && make all
cd ../deps/hiredis && make static ARCH=""
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings   -arch i386 -arch 
x86_64 -g -ggdb  net.c
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings   -arch i386 -arch 
x86_64 -g -ggdb  hiredis.c
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings   -arch i386 -arch 
x86_64 -g -ggdb  sds.c
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings   -arch i386 -arch 
x86_64 -g -ggdb  async.c
libtool -static -o libhiredis.a - net.o hiredis.o sds.o async.o
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
make[2]: *** [libhiredis.a] Error 1
make[1]: *** [dependencies] Error 2
make: *** [all] Error 2

Original issue reported on code.google.com by i...@holsman.net on 27 Jan 2011 at 5:14

GoogleCodeExporter commented 9 years ago
Which libtool are you using? The one OSX ships takes -static or -dynamic as 
first argument.

Original comment by pcnoordh...@gmail.com on 27 Jan 2011 at 6:18

GoogleCodeExporter commented 9 years ago
thanks.. changing the makefile to hard code /usr/bin/libtool 

diff --git a/deps/hiredis/Makefile b/deps/hiredis/Makefile
index ca3404a..6f35b23 100644
--- a/deps/hiredis/Makefile
+++ b/deps/hiredis/Makefile
@@ -21,9 +21,9 @@ else ifeq ($(uname_S),Darwin)
   LDFLAGS?=-L. -Wl,-rpath,.
   OBJARCH?=-arch i386 -arch x86_64
   DYLIBNAME?=libhiredis.dylib
-  DYLIB_MAKE_CMD?=libtool -dynamic -o ${DYLIBNAME} -lm ${DEBUG} - ${OBJ}
+  DYLIB_MAKE_CMD?=/usr/bin/libtool -dynamic -o ${DYLIBNAME} -lm ${DEBUG} - 
${OBJ}
   STLIBNAME?=libhiredis.a
-  STLIB_MAKE_CMD?=libtool -static -o ${STLIBNAME} - ${OBJ}
+  STLIB_MAKE_CMD?=/usr/bin/libtool -static -o ${STLIBNAME} - ${OBJ}
 else
   CFLAGS?=-std=c99 -pedantic $(OPTIMIZATION) -fPIC -Wall -W -Wwrite-strings $(ARCH) $(PROF)
   CCLINK?=-lm -pthread

Original comment by i...@holsman.net on 27 Jan 2011 at 7:10

GoogleCodeExporter commented 9 years ago
The default libtool on OSX works, so not changing the Makefile.

Original comment by pcnoordh...@gmail.com on 6 Mar 2011 at 5:18

GoogleCodeExporter commented 9 years ago
Issue 547 has been merged into this issue.

Original comment by pcnoordh...@gmail.com on 14 Jun 2011 at 7:41

GoogleCodeExporter commented 9 years ago
I had a similar problem, MAMP bin directory which I had in PATH also had 
libtool.

Original comment by jazeps.basko on 29 Dec 2011 at 1:28

GoogleCodeExporter commented 9 years ago
Could you please consider merging this? It will always crash with macports & 
gnutools installed.
It's painful to tweak my path every time I have to install hiredis.

Original comment by olouvig...@gmail.com on 11 Jun 2013 at 5:42