From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30821 invoked from network); 25 Mar 1998 14:41:44 -0000 Received: from morannon.bfr.co.il (HELO blinky.bfr.co.il) (hjstein@192.116.142.129) by mail2.redhat.com with SMTP; 25 Mar 1998 14:41:44 -0000 Received: (from hjstein@localhost) by blinky.bfr.co.il (8.8.5/8.6.9) id RAA28453; Wed, 25 Mar 1998 17:41:28 +0300 Date: Wed, 25 Mar 1998 17:41:28 +0300 Message-Id: <199803251441.RAA28453@blinky.bfr.co.il> From: "Harvey J. Stein" To: axp-list@redhat.com, ssh-bugs@cs.hut.fi Subject: Building ssh on alpha Redhat 5.0 - problems & 1 solution CC: hjstein@bfr.co.il, martino@bloomberg.net, randy@carrera.com Has anyone built ssh (version 1.2.22) on the DEC alpha running Linux Redhat 5.0? I'm getting some warnings when compiling, and then ssh seems to hang when invoked. I made a change to eliminate one class of error, after which ssh seems to work, but I'm yet not sure how robust it will be. Firstly, I'm getting some warnings about args to __FD_ZERO, __FD_SET, ..., such as: clientloop.c:442: warning: passing arg 1 of `__FD_ZERO' from incompatible pointer type The offending line is the FD_ZERO call in the following code: void client_wait_until_can_do_something(fd_set *readset, fd_set *writeset) { /* Initialize select masks. */ FD_ZERO(readset); This looks fine to me, since the man page says the arg to FD_ZERO should be fd_set *set, so I'm guessing it's a header problem. It doesn't seem to be an include problem because gcc -E shows that , , and are included (as per the man page), although comes before in the source. I'm also getting: randoms.c: In function `random_initialize': randoms.c:89: warning: cast from pointer to integer of different size This perhaps isn't much of a problem because it looks like the code's just trying to generate a random seed, but it might be a problem that the random seed isn't as random as needed. Is linux/alpha the only OS with 64 bit pointers on which they've tried to run the code? The third class of warning is: set_str.c: In function `mpz_set_str': set_str.c:103: warning: type mismatch in implicit declaration for built-in function `strlen' where the code looks like: mpz_set_str (mpz_ptr x, const char *str, int base) { size_t str_size; str_size = strlen (str - 1); The problem here seems to be that isn't included (verified by gcc -E). I added it to gmp.h & at least fixed this one (but it'll have to be added in a more appropriate fashion to make it work on all platforms. After making this change ssh connects. So it might be working at this point, but I'm still concerned about the warning regarding FD_*. Does anyone know what's wrong and what I might need to do to fix it? Thanks, Harvey J. Stein Berger Financial Research hjstein@bfr.co.il