Subject: build of -current from today fails on libexec/kpasswdd
To: None <current-users@netbsd.org>
From: Martin Weber <Ephaeton@gmx.net>
List: current-users
Date: 07/02/2001 22:53:13
Greetings. *sigh* I'm once more stuck in upgrading my machine to current
from today from a current from late may. I built all of the critical utilities
pointed out in UPDATING, I built a new kernel, and the error I'm getting is
not pointed out in UPDATING either. I'm not sure if i should send a pr about
this anyways, thus you people get to read it ;) [have not configured 
mail-stuff on my bsd machine either ;)]

So here we go :

uname -a:
NetBSD demon.entropie.net 1.5W NetBSD 1.5W (demon) #3: Sun Jul  1 18:16:49 
CEST 2001     
root@demon.entropie.net:/mnt/nfs/src/sys/arch/i386/compile/demon i386

tail of my buildlog:
dependall ===> libexec/kpasswdd
cc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 
-Wno-uninitialized -Werror   -I.                        
                 
-I/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd             
  -I/mnt/nfs/src/libexec/kpasswd
d/../../include/heimdal  -I/usr/include/kadm5            -I/usr/include/krb5  
           -I/mnt/nfs/src/libexec/kpasswdd/../../
crypto/dist/openssl/crypto/md4           
-I/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/openssl/crypto/md5          
  -I/mnt
/nfs/src/libexec/kpasswdd/../../crypto/dist/openssl/crypto/sha           
-I/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/open
ssl/crypto/rc4           
-I/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/openssl/crypto/des          
  -DHAVE_CONFIG_H -DINET
D_SUPPORT -c 
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c: 
In function `reply_error':
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c:143: 
too many arguments to function `krb5_mk_error'
cc1: warnings being treated as errors
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c: 
In function `process':
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c:373: 
warning: passing arg 1 of `krb5_sockaddr2addres
s' from incompatible pointer type
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c:373: 
warning: passing arg 2 of `krb5_sockaddr2addres
s' from incompatible pointer type
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c:373: 
too many arguments to function `krb5_sockaddr2a
ddress'
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c: 
In function `doit':
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c:492: 
warning: passing arg 1 of `krb5_addr2sockaddr' 
from incompatible pointer type
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c:492: 
warning: passing arg 2 of `krb5_addr2sockaddr' 
from incompatible pointer type
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c:492: 
warning: passing arg 3 of `krb5_addr2sockaddr' 
from incompatible pointer type
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c:492: 
warning: passing arg 4 of `krb5_addr2sockaddr' 
makes integer from pointer without a cast
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c:492: 
too many arguments to function `krb5_addr2socka
ddr'
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c:550: 
warning: passing arg 1 of `krb5_sockaddr2addres
s' from incompatible pointer type
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c:550: 
warning: passing arg 2 of `krb5_sockaddr2addres
s' from incompatible pointer type
/mnt/nfs/src/libexec/kpasswdd/../../crypto/dist/heimdal/kpasswd/kpasswdd.c:550: 
too many arguments to function `krb5_sockaddr2a
ddress'
*** Error code 1

Stop.
make: stopped in /mnt/nfs/src/libexec/kpasswdd
*** Error code 1

Stop.
make: stopped in /mnt/nfs/src/libexec/kpasswdd
*** Error code 1

Stop.
make: stopped in /mnt/nfs/src/libexec
*** Error code 1

Stop.
make: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src

some other hint: I was stuck at it yesterday already at an earlier point 
(libexec/hpropd), problem was the build progress could not find a krb5_asn1.h 
I think, solved by making include explicitely in libexec/libasn1.

kpasswdd.c:143 +- looks like : (crypto/dist/heimdal/kpasswd/kpasswdd.c)

    ret = krb5_mk_error (context,
                         error_code,
                         NULL,
                         &e_data,
                         NULL,
                         server,
                         NULL,
                         NULL,
                         &error_data);
kpasswdd.c:373 +- :
    ret = krb5_sockaddr2address (context, sa, &other_addr);

(context :     krb5_auth_context auth_context = NULL;)
(sa :          struct sockaddr * [func-arg])
(other_addr:   krb5_address other_addr; )

...

from krb5-protos.h:

krb5_error_code
krb5_mk_error __P((
        krb5_context context,
        krb5_error_code error_code,
        const char *e_text,
        const krb5_data *e_data,
        const krb5_principal client,
        const krb5_principal server,
        time_t ctime,
        krb5_data *reply));


krb5_error_code
krb5_addr2sockaddr __P((
        const krb5_address *addr,
        struct sockaddr *sa,
        int *sa_size,
        int port));

Well, any pointer on what I should do now would be greatly appreciated ;)

Martin Weber (hoping that *someday* those current upgrades will go smooth ;)