[Bug 1272] Unable to make OpenSSH with undefined refs in readconf.o

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Jan 24 06:15:10 EST 2007


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





------- Comment #7 from fbaird at yahoo.com  2007-01-24 06:15 -------
(In reply to comment #6)
> It really does look like your gcc install is broken: it seems to be
> missing the internal functions necessary for 64-bit math, and possibly
> other things to. Can you try to compile and execute the following test
> program?
> 
> ----
> 
> #include <stdio.h>
> int main(void)
> {
>         u_int64_t a = 32, b = 3, c;
>         c = a / b;
>         printf("%llu\n", c);
>         return 0;
> }
> 

This program would not compile because u_int64_t is not defined.
However, as I understand it, this type is the same as unsigned long
long. When I changed "u_int64_t" to "unsigned long long" the program
compiled and ran fine, giving a result of 10. This is the expected
answer due to integer truncation. 




------- 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