[Bug 600] compilation of ssh-askpass or ssh-rand-helper fails on NCR MP-RAS v3.02

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Jun 25 14:00:13 EST 2003


http://bugzilla.mindrot.org/show_bug.cgi?id=600





------- Additional Comments From johnf.ct at netzero.net  2003-06-25 14:00 -------
I found rusage in /usr/include/sys/resource.h

I tried to add the following just after the first "#include" statement
in ssh-rand-helper.c. Still getting the same error:

1. #include "sys/resource.h"
2. #include <resource.h>
3. I even copied /usr/include/sys/resource.h into /usr/local/include
   (make shows "-I/usr/local/include" somewhere in the compilation)
   That didn't work either.

I also modified config.h and changed HAS_GETRUSAGE(?) from 1 to 0. Still
the same problem. In the end, I just commented the following code starting
in line 252 in ssh-rand-helper.c:

        struct rusage ru;

        if (getrusage(who, &ru) == -1)
                return 0;

        RAND_add(&ru, sizeof(ru), entropy_estimate);

        return entropy_estimate;

and replaced it with "return 0", just like in the "#else" part
of the "#ifdef" statement. All the rest of the programs compiled
fine.

I didn't run "make install" yet though because I'm not sure what
the effect of changing the code above to just one line (return 0)
would do.

Pls. let me know if it's fine to run "make install" even though
I changed my version of ssh-rand-helper.c. Just a reminder, this
is the newest source: 3.6.1p2. Thanks!



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list