djveremix / redis

Automatically exported from code.google.com/p/redis
0 stars 0 forks source link

strsep not found on solaris - needed for redis-cli.c to compile. #226

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use solaris
2. compile with "CC=gcc make"
3. compile fails

What is the expected output? What do you see instead?
I expect the compile to finish.
instead i get (trimmed for readability)

gcc -o redis-cli -std=c99 -pedantic -O2 -Wall -W -D__EXTENSIONS__ -D_XPG6
-ldl -lnsl -lsocket -lm   -g -rdynamic -ggdb  anet.o sds.o adlist.o
redis-cli.o zmalloc.o linenoise.o
gcc: unrecognized option `-rdynamic'
Undefined                       first referenced
 symbol                             in file
strsep                              redis-cli.o
ld: fatal: Symbol referencing errors. No output written to redis-cli
collect2: ld returned 1 exit status
gmake: *** [redis-cli] Error 1

What version of the product are you using? On what operating system?
1.2.6
on solaris SunOS xxx 5.10 Generic_141414-07 sun4u sparc SUNW,Sun-Fire-V245

Please provide any additional information below.

The problem is that solaris doesn't support the strsep function that
redis-cli.c requires.  I am having trouble finding a bsd licenced strsep
implementation.

Original issue reported on code.google.com by anko.com on 12 Apr 2010 at 5:56

GoogleCodeExporter commented 8 years ago
Hello, I removed the strsep() from redis-cli source code. Should not be a 
problem.

Cheers,
Salvatore

Original comment by anti...@gmail.com on 26 Apr 2010 at 6:32

GoogleCodeExporter commented 8 years ago
great, works like a charm

Original comment by anko.com on 18 May 2010 at 2:21

GoogleCodeExporter commented 8 years ago
Can I get this fix also?  Having the same issue.

Original comment by ruskicow...@gmail.com on 21 May 2010 at 1:43

GoogleCodeExporter commented 8 years ago
this was fixed, try compiling the git repository's HEAD on master

Original comment by anko.com on 21 May 2010 at 10:15

GoogleCodeExporter commented 8 years ago
Anko.  I'm afraid that I'm not as experienced in this kind of stuff as I should 
be.  Can you explain a bit more what 
I need to do?  I don't use GIT as a repository (we use subversion).

Original comment by ruskicow...@gmail.com on 22 May 2010 at 3:44

GoogleCodeExporter commented 8 years ago
Nevermind, Anko.  I figured it out.  I grabbed the redis-cli.c file code 
directly from the git repository at 
http://github.com/antirez/redis/blob/master/redis-cli.c, and just copied over 
the code that was in that file 
from the download.  Compiled fine.

Original comment by ruskicow...@gmail.com on 22 May 2010 at 5:28

GoogleCodeExporter commented 8 years ago
you should be able to just do
git clone http://github.com/antirez/redis.git

and everytime there is an update just do
cd redis
git pull

and you'll have the latest copy of all the files.

Original comment by anko.com on 26 May 2010 at 12:40

GoogleCodeExporter commented 8 years ago

Original comment by anti...@gmail.com on 31 Aug 2010 at 3:46