Subject: build failed in xcvs
To: None <current-users@netbsd.org>
From: Ben Collver <collver@peak.org>
List: current-users
Date: 03/20/2006 08:04:16
My amd64/-current build on an i386/3.0 host failed in xcvs.

#   compile  xcvs/server.o
/home/ben/work/current/amd64/obj/tooldir.NetBSD-3.0-i386/bin/x86_64--netbsd-gcc -O2   -Werror   -DSETXID_SUPPORT -DHAVE_CONFIG_H  -I/home/ben/src/netbsd/current/src/gnu/usr.bin/xcvs/xcvs/../include -I/home/ben/src/netbsd/current/src/gnu/dist/xcvs/lib  -I/home/ben/src/netbsd/current/src/gnu/dist/xcvs/diff -I/home/ben/src/netbsd/current/src/gnu/dist/xcvs/src -DHAVE_KERBEROS -I/home/ben/work/current/amd64/dst/usr/include/kerberosIV -DHAVE_GSSAPI -I/home/ben/work/current/amd64/dst/usr/include/krb5 -DENCRYPTION -DSETXID_SUPPORT -DHAVE_CONFIG_H  -I/home/ben/src/netbsd/current/src/gnu/usr.bin/xcvs/xcvs/../include -I/home/ben/src/netbsd/current/src/gnu/dist/xcvs/lib  -I/home/ben/src/netbsd/current/src/gnu/dist/xcvs/diff -I/home/ben/src/netbsd/current/src/gnu/dist/xcvs/src  -nostdinc -isystem /home/ben/work/current/amd64/dst/usr/include  -c    /home/ben/src/netbsd/current/src/gnu/dist/xcvs/src/server.c
/home/ben/src/netbsd/current/src/gnu/dist/xcvs/src/server.c: In function `kserver_authenticate_connection':
/home/ben/src/netbsd/current/src/gnu/dist/xcvs/src/server.c:6011: warning: passing arg 10 of `krb_recvauth' from incompatible pointer type

*** Failed target:  server.o

The function call is:
    status = krb_recvauth (KOPT_DO_MUTUAL, STDIN_FILENO, &ticket, "rcmd",
                           instance, (struct sockaddr_in *)&peer,
                           (struct sockaddr_in *)&laddr, &auth, "", sched,
                           version);

I changed it to:
    status = krb_recvauth (KOPT_DO_MUTUAL, STDIN_FILENO, &ticket, "rcmd",
                           instance, (struct sockaddr_in *)&peer,
                           (struct sockaddr_in *)&laddr, &auth, "", (struct des_ks_struct *)sched,
                           version);

This seems to work around the problem, but then I run into another:

#   compile  kadmind/version4.o
/home/ben/work/current/amd64/obj/tooldir.NetBSD-3.0-i386/bin/x86_64--netbsd-gcc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional  -Werror   -DKRB4 -I/home/ben/work/current/amd64/dst/usr/include/kerberosIV -I.                                   -I/home/ben/src/netbsd/current/src/crypto/dist/heimdal/kadmin           -I/home/ben/src/netbsd/current/src/crypto/dist/heimdal/lib/krb5                 -I/home/ben/src/netbsd/current/src/crypto/dist/heimdal/lib/asn1                 -I/home/ben/src/netbsd/current/src/include/heimdal      -I/home/ben/work/current/amd64/dst/usr/include/kadm5   -I/home/ben/work/current/amd64/dst/usr/include/krb5             -DHAVE_CONFIG_H -DHAVE_IPV6  -nostdinc -isystem /home/ben/work/current/amd64/dst/usr/include  -c    /home/ben/src/netbsd/current/src/crypto/dist/heimdal/kadmin/version4.c
/home/ben/src/netbsd/current/src/crypto/dist/heimdal/kadmin/version4.c: In function `decode_packet':
/home/ben/src/netbsd/current/src/crypto/dist/heimdal/kadmin/version4.c:915: warning: passing arg 3 of `krb_rd_priv' from incompatible pointer type
/home/ben/src/netbsd/current/src/crypto/dist/heimdal/kadmin/version4.c:934: warning: passing arg 4 of `krb_mk_priv' from incompatible pointer type

*** Failed target:  version4.o

Is work being done on kerberos?

Cheers,

Ben