From bfoz@poseidon.student.umd.edu  Sat Mar 18 10:29:45 2000
Return-Path: <bfoz@poseidon.student.umd.edu>
Received: from poseidon.student.umd.edu (poseidon.student.umd.edu [129.2.220.99])
	by hub.freebsd.org (Postfix) with ESMTP id 24CD837B866
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 18 Mar 2000 10:29:44 -0800 (PST)
	(envelope-from bfoz@poseidon.student.umd.edu)
Received: (from bfoz@localhost)
	by poseidon.student.umd.edu (8.9.3/8.9.3) id NAA20941;
	Sat, 18 Mar 2000 13:29:43 -0500 (EST)
	(envelope-from bfoz)
Message-Id: <200003181829.NAA20941@poseidon.student.umd.edu>
Date: Sat, 18 Mar 2000 13:29:43 -0500 (EST)
From: bfoz@glue.umd.edu
Sender: bfoz@poseidon.student.umd.edu
Reply-To: bfoz@glue.umd.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: Arla doesn't build
X-Send-Pr-Version: 3.2

>Number:         17474
>Category:       ports
>Synopsis:       arla-0.31 won't build on 4.0-S
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 18 10:30:01 PST 2000
>Closed-Date:    Thu Mar 23 17:04:10 PST 2000
>Last-Modified:  Thu Mar 23 17:04:25 PST 2000
>Originator:     Brandon Fosdick
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
UMCP SSL
>Environment:

FreeBSD poseidon.student.umd.edu 4.0-STABLE FreeBSD 4.0-STABLE #0: Fri Mar 17 12:12:31 EST 2000     bfoz@poseidon.student.umd.edu:/usr/src/sys/compile/POSEIDON  i386


>Description:

Following errors occured during build of ports/net/arla. Ports tree cvsup'd today (3/18/2000)

ranlib libarlalib.a
cc -c  -DHAVE_CONFIG_H -I. -I. -I./../..  -I./../../include  -I./../lib  -I../../include  -I../../rxdef  -I.  -I/usr/ports/net/arla/work/arla-0.31/xfs/bsd  -I./../../xfs/include  -I./../../arlad  -I./../../rxkad   -g -O -pipe -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs  -I/usr/X11R6/include klog.c
klog.c: In function `get_afs_id':
klog.c:188: warning: passing arg 4 of `arlalib_get_viceid_servers' from incompatible pointer type
cc  -o klog klog.o -L../lib -larlalib  -L../../rxdef -lrxdefclient  -L../../rx -lrx  -L../../lwp -llwp   -L../../lib/ko -lko -L../../util -lutil  -L../../lib/roken  -L../../rxkad -lrxkad -lkrb -ldes -lcom_err  -lkrb -ldes -lcom_err -lkafs  -L../../rxkad -lrxkad -lkrb -ldes -lcom_err  -lroken -lkvm
klog.o: In function `get_afs_token':
/usr/ports/net/arla/work/arla-0.31/appl/afsutils/klog.c:263: undefined reference to `krb_afslog_uid'
*** Error code 1

Stop in /usr/ports/net/arla/work/arla-0.31/appl/afsutils.
*** Error code 1

Stop in /usr/ports/net/arla/work/arla-0.31/appl.
*** Error code 1

Stop in /usr/ports/net/arla/work/arla-0.31.
*** Error code 1

Stop in /usr/ports/net/arla.
*** Error code 1

Stop in /usr/ports/net/arla.
*** Error code 1

Stop in /usr/ports/net/arla.
105 1:23pm/usr/ports/net/arla#

>How-To-Repeat:

cd /usr/ports/net/arla
make build

>Fix:

Thats what I'd like to know. I think a #define symbol is wrong in one of the header
files (klog.h?). Still looking.

>Release-Note:
>Audit-Trail:

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
 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Thu Mar 23 17:04:10 PST 2000 
State-Changed-Why:  
Problem resolved (stale kerberos libraries) 
>Unformatted:
