[Slackbuilds-users] redis can't be built on slackware64 13.37

Audrius Kažukauskas audrius at neutrino.lt
Sat Sep 8 15:09:18 UTC 2012


On Sat, 2012-09-08 at 23:16:54 +0900, crocket wrote:
> Below is the error log.
> 
> cd src && make all
> make[1]: Entering directory `/tmp/SBo/redis-2.4.14/src'
> MAKE hiredis
> make[2]: Entering directory `/tmp/SBo/redis-2.4.14/deps/hiredis'
> cc -std=c99 -pedantic -c -O3 -fPIC -O2 -fPIC -Wall -W
> -Wstrict-prototypes -Wwrite-strings -g -ggdb x86_64 net.c
> cc: x86_64: No such file or directory
> make[2]: *** [net.o] Error 1
> make[2]: Leaving directory `/tmp/SBo/redis-2.4.14/deps/hiredis'
> make[1]: *** [dependencies] Error 2
> make[1]: Leaving directory `/tmp/SBo/redis-2.4.14/src'
> make: *** [all] Error 2
> 
> What do I need to do for building redis?

I think the problem lies in the following line:

redis-2.4.14/deps/hiredis/Makefile:18:
REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG) $(ARCH)

Not sure why $(ARCH) is there, but in your case it's set to 'x86_64' and
that gets inserted in compiler line.  Try

  unset ARCH

before building redis.

-- 
Audrius Kažukauskas
http://neutrino.lt/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20120908/c7646f77/attachment-0001.asc>


More information about the SlackBuilds-users mailing list