Subject: Re: heimdal broken on DragonFly
To: None <tech-pkg@netbsd.org>
From: walt <wa1ter@myrealbox.com>
List: tech-pkg
Date: 10/29/2005 06:49:40
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-321805896-1130593780=:3451
Content-Type: TEXT/PLAIN; charset=X-UNKNOWN
Content-Transfer-Encoding: 8BIT

On Sat, 29 Oct 2005, Love Hörnquist Åstrand wrote:

>
> walt <wa1ter@myrealbox.com> writes:
>
> > I got the build to finish by changing one line in
> > kcm/connect.c like this:
> >
> > -#ifdef LOCAL_PEERCRED
> > +#ifndef LOCAL_PEERCRED
> >
> > I don't know enough about heimdal to find any breakage
> > caused by this change, but at least it allowed me to
> > proceed with the build of kde.
>
> What was the failure message from the compiler ?

cc -DHAVE_CONFIG_H -I. -I. -I../include  -I../include -I../lib/roken
-I../lib/roken  -I/usr/include -I./../lib/krb5  -I/usr/include/readline
-I/usr/include -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
-Wmissing-declarations -Wnested-externs -DINET6 -O2 -I/usr/include -c connect.c
connect.c: In function `update_client_creds':
connect.c:127: error: storage size of 'peercred' isn't known
connect.c:132: error: `XUCRED_VERSION' undeclared (first use in this function)
connect.c:132: error: (Each undeclared identifier is reported only once
connect.c:132: error: for each function it appears in.)
connect.c:127: warning: unused variable `peercred'
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/security/heimdal/work/heimdal-0.7.1/kcm

In DragonFly, LOCAL_PEERCRED is defined as 1 in /usr/include/sys/un.h
and XUCRED_VERSION is defined in /usr/include/sys/ucred.h,
and getpeerucred appears to be undefined.

I tried including <sys/ucred.h> in connect.c and got lots of errors
(I'm assuming because getpeerucred is undefined).

So I'm guessing that the test for LOCAL_PEERCRED is not quite right
for DragonFly(?)

Thanks for any hints.

--0-321805896-1130593780=:3451--