From owner-freebsd-ports Sun Mar 19 10:30: 5 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id EEDC437B5EE for ; Sun, 19 Mar 2000 10:30:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA50823; Sun, 19 Mar 2000 10:30:04 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Sun, 19 Mar 2000 10:30:04 -0800 (PST) Message-Id: <200003191830.KAA50823@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Brandon Fosdick Subject: Re: ports/17474: arla-0.31 won't build on 4.0-S Reply-To: Brandon Fosdick Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/17474; it has been noted by GNATS. From: Brandon Fosdick 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