tritigi / redis

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

solaris compile problems with redis-2.2.0-rc1 (WITH PATCH) #405

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Try and compile on solaris with CC=gcc make
2.  Problems with AF_LOCAL and multiple else statments in Makefiles
3.  Compile fails

What is the expected output? What do you see instead?

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

Please provide any additional information below.

patch included :)

Original issue reported on code.google.com by anko.com on 15 Dec 2010 at 11:30

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you. So far, I've applied this fix together with some fixes for building 
a shared library on Solaris to the hiredis repository.

Original comment by pcnoordh...@gmail.com on 16 Dec 2010 at 11:26

GoogleCodeExporter commented 9 years ago
No worries.  I'm also having problems with the tests given that solaris tail 
has different params than gnu tail - I get;

(cd ..; tclsh8.5 tests/test_helper.tcl --tags "" --file "")
................................................................................
................................................................................
................................................................................
......................................F.F.......................................
................................................................................
.....usage: tail [+/-[n][lbc][f]] [file]
       tail [+/-[n][l][r|f]] [file]
    while executing
"exec cat [dict get $srv stdout] | tail -n1"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $code"
    (procedure "test" line 36)
    invoked from within
"test {Unfinished MULTI: Server should have logged an error} {
            exec cat [dict get $srv stdout] | tail -n1
        } {*Unexpected end of fil..."
    ("uplevel" body line 6)
    invoked from within
"uplevel 1 $code"
    (procedure "start_server_aof" line 5)
    invoked from within
"start_server_aof [list dir $server_path] {
        test {Unfinished MULTI: Server should not have been started} {
            is_alive $srv
        } ..."
    ("uplevel" body line 9)
    invoked from within
"uplevel 1 $code"
    (procedure "tags" line 3)
    invoked from within
"tags {"aof"} {
    ## Test the server doesn't start when the AOF contains an unfinished MULTI
    create_aof {
        append_to_aof [formatCommand se..."
    (file "tests/integration/aof.tcl" line 25)
    invoked from within
"source $path"
    (procedure "execute_tests" line 4)
    invoked from within
"execute_tests "integration/aof""
    (procedure "execute_everything" line 15)
    invoked from within
"execute_everything"
    (procedure "main" line 9)
    invoked from within
"main "
gmake: *** [test] Error 1

I'm not sure how to fix these.

Original comment by anko.com on 17 Dec 2010 at 12:08

GoogleCodeExporter commented 9 years ago
The compile errors for Solaris have now been fixed. Regarding the "tail" issue: 
there is a difference between GNU tools and non-GNU tools. Fixing this in the 
testing code is hard because not only is there a difference in the names of the 
flags to the command, but also in the feature set. I'd advise to install and 
use the GNU tools...

Original comment by pcnoordh...@gmail.com on 23 Dec 2010 at 12:27