[Bug 421] compile error on Debian slink

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Oct 25 14:04:03 EST 2002


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





------- Additional Comments From mouring at eviladmin.org  2002-10-25 14:03 -------
[.. Important part from URL..]
gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I. -I./.. -
I/usr/local/ssl/include
  -DHAVE_CONFIG_H -c bsd-getpeereid.c
bsd-getpeereid.c: In function `getpeereid':
bsd-getpeereid.c:35: storage size of `cred' isn't known
bsd-getpeereid.c:35: warning: unused variable `cred'
make[1]: *** [bsd-getpeereid.o] Error 1

I dealt with this recently on an old Redhat 6.2 Alpha box.  Your glibc is out 
of date.  You more than likely have 2.0.  Which does not include the correct 
headers from kernel space (back when /usr/includes/linux/ was linked 
to /usr/src/linux/include/).

The hack is to just do a #undef SO_PEERCRED at the top of the bsd-getpeereid.c 
file.

As for a better solution.  I'm not sure.  I don't want to include <linux/*> 
stuff.  That I think is the wrong solution.



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



More information about the openssh-unix-dev mailing list