Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2000 10:30:04 -0800 (PST)
From:      Brandon Fosdick <bfoz@glue.umd.edu>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/17474: arla-0.31 won't build on 4.0-S
Message-ID:  <200003191830.KAA50823@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/17474; it has been noted by GNATS.

From: Brandon Fosdick <bfoz@glue.umd.edu>
To: freebsd-gnats-submit@FreeBSD.org, bfoz@glue.umd.edu
Cc:  
Subject: Re: ports/17474: arla-0.31 won't build on 4.0-S
Date: Sun, 19 Mar 2000 13:27:11 -0500

 I looked into this a little more...
 
 File work/arla-0.31/appl/afsutils/klog.c calls a function called
 krb_afslog_uid which is prototyped in the kafs.h file provided with the
 port. However klog.c is linked with the system version of the library,
 in which the corresponding function is k_afsklog_uid. So that's where
 the undefined reference problem came from. The port's kafs.h tries to
 get around this with some #define's but they weren't done properly.
 
 Arla's kafs.h:
 int krb_afslog __P((const char *cell, const char *realm));
 int krb_afslog_uid __P((const char *cell, const char *realm, uid_t
 uid));
 /* compat */
 #define k_afsklog krb_afslog
 #define k_afsklog_uid krb_afslog_uid
 
 /usr/include/kafs.h:
 int k_afsklog __P((const char *cell, const char *realm));
 int k_afsklog_uid __P((const char *cell, const char *realm, uid_t uid));
 
 function call in klog.c:
 rc = krb_afslog_uid(arg_cell, arg_realm, afsid);
 
 I'm not sure what the "right" solution is. Either change the function
 call, change the system library (may I have old libraries lying
 around?), or change the kafs.h file included in the port (maybe a
 configure problem?). Somebody that knows more than I do is going to have
 to figure that one out.
 
 For now I removed the #define's from arla's kafs.h and changed the
 prototype and the function call. It builds, but still doesn't run
 (/dev/lkm not configured). More on that later.
 
 -Brandon
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003191830.KAA50823>