Compile failure on IRIX 6.5

Discussion in 'Ruby' started by Joe Van Dyk, Sep 14, 2006.

  1. Joe Van Dyk

    Joe Van Dyk Guest

    Any ideas?


    gmake[1]: Entering directory `/users/mz652c/src/ruby-1.8.5/ext/pty'
    /usr/bin/cc -I. -I../.. -I../../. -I../.././ext/pty
    -DHAVE_SYS_STROPTS_H -DHAVE__GETPTY -KPIC -g -c pty.c
    cc-1164 cc: WARNING File = pty.c, Line = 286
    Argument of type "VALUE (*)()" is incompatible with parameter of type
    "VALUE (*)(VALUE)".

    rb_protect(pty_exec, (VALUE)&arg, &status);
    ^

    cc-1552 cc: WARNING File = pty.c, Line = 199
    The variable "currentPid" is set but never used.

    static int i,master,slave,currentPid;
    ^

    cc-1166 cc: ERROR File = pty.c, Line = 396
    Expected a declaration.

    }
    ^

    cc-1012 cc: WARNING File = pty.c, Line = 400
    Parsing restarts here after previous syntax error.

    int *master, *slave;
    ^

    cc-1166 cc: ERROR File = pty.c, Line = 401
    Expected a declaration.

    {
    ^

    cc-1174 cc: WARNING File = pty.c, Line = 88
    The variable "MasterDevice" was declared but never referenced.

    char *MasterDevice = "/dev/pty%s",
    ^

    cc-1174 cc: WARNING File = pty.c, Line = 89
    The variable "SlaveDevice" was declared but never referenced.

    *SlaveDevice = "/dev/tty%s",
    ^

    cc-1174 cc: WARNING File = pty.c, Line = 90
    The variable "deviceNo" was declared but never referenced.

    *deviceNo[] = {
    ^

    cc-1113 cc: ERROR File = pty.c, Line = 179
    The function "getDevice" was referenced but not defined.

    static void getDevice _((int*, int*));
    ^

    3 errors detected in the compilation of "pty.c".
    gmake[1]: *** [pty.o] Error 2
    Joe Van Dyk, Sep 14, 2006
    #1
    1. Advertising

  2. Hi,

    At Fri, 15 Sep 2006 07:58:21 +0900,
    Joe Van Dyk wrote in [ruby-talk:214515]:
    > Any ideas?


    Sorry, my mistake.

    =0C
    Index: ext/pty/pty.c
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
    RCS file: /home/K8052/cvs/ruby/ext/pty/pty.c,v
    retrieving revision 1.19.2.4
    diff -U 2 -p -u -r1.19.2.4 pty.c
    --- ext/pty/pty.c=0926 Jul 2006 09:15:31 -0000=091.19.2.4
    +++ ext/pty/pty.c=0915 Sep 2006 07:46:41 -0000
    @@ -63,5 +63,5 @@ char=09*MasterDevice =3D "/dev/ptym/pty%s",
    =09};
    #elif defined(_IBMESA) /* AIX/ESA */
    -static
    +static
    char=09*MasterDevice =3D "/dev/ptyp%s",
    =09*SlaveDevice =3D "/dev/ttyp%s",
    @@ -85,5 +85,5 @@ char=09*MasterDevice =3D "/dev/ptyp%s",
    =09=09};
    #elif !defined(HAVE_PTSNAME)
    -static
    +static
    char=09*MasterDevice =3D "/dev/pty%s",
    =09*SlaveDevice =3D "/dev/tty%s",
    @@ -184,8 +184,11 @@ struct exec_info {
    };

    +static VALUE pty_exec _((VALUE v));
    +
    static VALUE
    -pty_exec(arg)
    - struct exec_info *arg;
    +pty_exec(v)
    + VALUE v;
    {
    + struct exec_info *arg =3D (struct exec_info *)v;
    return rb_f_exec(arg->argc, arg->argv);
    }
    @@ -196,6 +199,6 @@ establishShell(argc, argv, info)
    VALUE *argv;
    struct pty_info *info;
    -{=09
    - static int=09=09i,master,slave,currentPid;
    +{
    + int =09=09i,master,slave;
    char=09=09*p,*getenv();
    struct passwd=09*pwent;
    @@ -232,6 +235,4 @@ establishShell(argc, argv, info)

    if(i =3D=3D 0) {=09/* child */
    -=09currentPid =3D getpid();=09
    -
    =09/*
    =09 * Set free from process group and controlling terminal
    @@ -245,5 +246,5 @@ establishShell(argc, argv, info)
    =09 perror("setpgrp()");
    # else /* SETGRP_VOID */
    -=09if (setpgrp(0, currentPid) =3D=3D -1)
    +=09if (setpgrp(0, getpid()) =3D=3D -1)
    =09 rb_sys_fail("setpgrp()");
    =09if ((i =3D open("/dev/tty", O_RDONLY)) < 0)
    @@ -333,5 +334,4 @@ get_device_once(master, slave, fail)

    return 0;
    -}
    #else /* HAVE__GETPTY */
    int=09 i,j;
    @@ -426,5 +426,5 @@ pty_getpty(argc, argv, self)
    VALUE rport =3D rb_obj_alloc(rb_cFile);
    VALUE wport =3D rb_obj_alloc(rb_cFile);
    -
    +
    MakeOpenFile(rport, rfptr);
    MakeOpenFile(wport, wfptr);
    =0C

    --=20
    Nobu Nakada
    Nobuyoshi Nakada, Sep 15, 2006
    #2
    1. Advertising

  3. Hi,

    In message "Re: Compile failure on IRIX 6.5"
    on Fri, 15 Sep 2006 16:53:47 +0900, "Nobuyoshi Nakada" <> writes:

    |At Fri, 15 Sep 2006 07:58:21 +0900,
    |Joe Van Dyk wrote in [ruby-talk:214515]:
    |> Any ideas?
    |
    |Sorry, my mistake.

    Apply the patch, please.

    matz.
    Yukihiro Matsumoto, Sep 15, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrea M. Segovia
    Replies:
    0
    Views:
    973
    Andrea M. Segovia
    Aug 28, 2003
  2. Carla Tironi Farinati

    Java / Virtual Memory Problem with Irix 6.5

    Carla Tironi Farinati, Jun 29, 2005, in forum: Java
    Replies:
    1
    Views:
    453
    Tjerk Wolterink
    Jun 29, 2005
  3. Evan David Light
    Replies:
    6
    Views:
    465
    David Anderson
    Dec 1, 2003
  4. Roger Davis
    Replies:
    3
    Views:
    1,809
    Roger Davis
    Feb 25, 2005
  5. Nagaraj
    Replies:
    1
    Views:
    856
    Lionel B
    Mar 1, 2007
Loading...

Share This Page