Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Dr. Miguel Avillez" <pancho@galaxy.lca.uevora.pt>
To: axp-list@redhat.com
Subject: Re: Building ssh on alpha Redhat 5.0 - problems & 1 solution
Date: Wed, 25 Mar 1998 15:06:57 +0000	[thread overview]
Message-ID: <35191D91.CC3CD3D4@galaxy.lca.uevora.pt> (raw)
In-Reply-To: 199803251441.RAA28453@blinky.bfr.co.il

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
> <sys/time.h>, <sys/types.h>, and <unistd.h> are included (as per the
> man page), although <sys/types.h> comes before <sys/time.h> 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;
> <snip>
>
>      str_size = strlen (str - 1);
>
> The problem here seems to be that <string.h> 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.


  reply	other threads:[~1998-03-25 15:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-25 14:41 Building ssh on alpha Redhat 5.0 - problems & 1 solution Harvey J. Stein
1998-03-25 15:06 ` Dr. Miguel Avillez [this message]
1998-03-25 18:41   ` Harvey J. Stein
1998-03-25 15:30 ` Hugo van der Kooij
1998-03-25 18:48   ` Harvey J. Stein
1998-03-25 19:04     ` Hugo van der Kooij
1998-03-25 19:06       ` Harvey J. Stein
1998-03-25 19:13         ` Hugo van der Kooij
1998-03-25 19:24           ` Harvey J. Stein
1998-03-25 19:31             ` Hugo van der Kooij
     [not found] ` <35193728.9FFEE43B@datafellows.com>
1998-03-25 18:40   ` Harvey J. Stein
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox