From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 17678 invoked from network); 25 Mar 1998 15:06:45 -0000 Received: from galaxy.lca.uevora.pt (@193.137.216.102) by mail2.redhat.com with SMTP; 25 Mar 1998 15:06:45 -0000 Received: from galaxy.lca.uevora.pt (pancho@localhost [127.0.0.1]) by galaxy.lca.uevora.pt (8.8.7/8.8.7) with ESMTP id PAA01580 for ; Wed, 25 Mar 1998 15:06:57 GMT Sender: pancho@galaxy.lca.uevora.pt Message-ID: <35191D91.CC3CD3D4@galaxy.lca.uevora.pt> Date: Wed, 25 Mar 1998 15:06:57 +0000 From: "Dr. Miguel Avillez" Organization: Lab. Parallel Computing - Astronomy Group, University of Evora, PT. X-Mailer: Mozilla 4.04 [en] (X11; I; Linux 2.0.32 i586) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Building ssh on alpha Redhat 5.0 - problems & 1 solution References: <199803251441.RAA28453@blinky.bfr.co.il> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Harvey J. Stein wrote: > 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 > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com why dont you get the ssh rpms for alpha? m.