Menu

#9 SGI build problems

open
None
5
2004-10-21
2004-09-15
DavidZ
No

SGI build problems

When trying to build sqsh without readline support on
SGI IRIX64, the build process tried to mix ABIs (64-bit
and N32). That of course failed so I tried two things:

1) vi src/Makefile and change -64 to -n32
2) ./configure --with-gcc

I think the second one did the trick even though gcc is
not in my path.

While attempting to build sqsh with readline support on
SGI, I received the following error message:

cc-1119 cc: ERROR File = sqsh_readline.c, Line = 856
The "return" expression type differs from the function
return type.

I made a few changes to sqsh_readline.c and then the
build succedded:

% diff sqsh_readline.c sqsh_readline.c.orig
851c851
< /*static*/ char** sqsh_completion( text, start,
end )
---
> static char** sqsh_completion( text, start, end )
856c856
< return (char **) rl_completion_matches(
text, (rl_compentry_func_t*)sqsh_generator ) ;
---
> return rl_completion_matches( text,
(rl_compentry_func_t*)sqsh_generator ) ;

Discussion

  • Michael Peppler

    Michael Peppler - 2004-10-21
    • assigned_to: nobody --> mpeppler
     
  • Michael Peppler

    Michael Peppler - 2004-11-05

    Logged In: YES
    user_id=1014343

    It would be interesting to know what the declared return
    type for rl_completion_matches() is on your system - it's
    declared as char ** on my linux box (recent
    distribution/version of readline).

     

Log in to post a comment.

MongoDB Logo MongoDB