[1123] in arla-drinkers

home help back first fref pref prev next nref lref last post

Two bugs in arla-0.27 build on Solaris 7 / X86

daemon@ATHENA.MIT.EDU (Rainer Schoepf)
Fri Sep 3 09:28:54 1999

From owner-arla-drinkers@stacken.kth.se Fri Sep 03 13:28:54 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 28166 invoked from network); 3 Sep 1999 13:28:53 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 3 Sep 1999 13:28:53 -0000
Received: (from majordom@localhost)
	by sundance.stacken.kth.se (8.8.8/8.8.8) id PAA04467
	for arla-drinkers-list; Fri, 3 Sep 1999 15:16:26 +0200 (MET DST)
Received: from perdita.zdv.Uni-Mainz.de (perdita.zdv.Uni-Mainz.DE [134.93.179.147])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id PAA04462
	for <arla-drinkers@stacken.kth.se>; Fri, 3 Sep 1999 15:16:20 +0200 (MET DST)
Received: (from schoepf@localhost)
	by perdita.zdv.Uni-Mainz.de (8.9.3/8.9.3) id PAA15511;
	Fri, 3 Sep 1999 15:16:18 +0200 (MEST)
From: Rainer Schoepf <schoepf@uni-mainz.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <14287.51744.745254.783752@perdita.zdv.Uni-Mainz.de>
Date: Fri, 3 Sep 1999 15:16:16 +0200 (MEST)
To: arla-drinkers@stacken.kth.se
CC: schoepf@uni-mainz.de
Subject: Two bugs in arla-0.27 build on Solaris 7 / X86
X-Mailer: VM 6.62 under Emacs 19.34.1
Organization: Johannes Gutenberg-Universitaet Mainz
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk

I'm trying to build arla-0.27 on a PC running Solaris 7, with krb4-0.9.9.

1. xfs/solaris/xfs_syscalls.c fails to compile because the preprocessors
symbols 

  VIOC_FHGET_32
  VIOC_FHOPEN_32
  VIOC_XFSDEBUG_32

are undefined. These symbols are defined only for the sparc64 target
architecture. 

I made the following patch:

RCS file: RCS/xfs_syscalls.c,v
retrieving revision 1.1
diff -c -r1.1 xfs_syscalls.c
*** 1.1 1999/09/03 10:01:21
--- xfs_syscalls.c      1999/09/03 10:02:43
***************
*** 424,438 ****
--- 424,444 ----
  
      switch (a_opcode) {
      case VIOC_FHGET :
+ #ifdef VIOC_FHGET_32
      case VIOC_FHGET_32 :
+ #endif
        XFSDEB(XDEBSYS, ("calling fhget(%x, %x)\n",
                         (int)vp, (int)a_paramsP));
        return fhget_call (vp, a_paramsP);
      case VIOC_FHOPEN :
+ #ifdef VIOC_FHOPEN_32
      case VIOC_FHOPEN_32 :
+ #endif
        return fhopen_call (vp, a_paramsP, a_followSymlinks);
      case VIOC_XFSDEBUG :
+ #ifdef VIOC_XFSDEBUG_32
      case VIOC_XFSDEBUG_32 :
+ #endif
        return xfs_debug (a_paramsP);
      default :
        return remote_pioctl (a_opcode, vp, a_paramsP);


2. xfs/solaris/bin/test-fhopen fails to link:

gcc -o test-fhopen test-fhopen.o -L/usr/letc/lib -lkafs -L../../../lib/roken -lroken -lkvm -lresolv -lnsl -lsocket
Undefined                       first referenced
 symbol                             in file
krb_life_to_time                    /usr/letc/lib/libkafs.so
krb_mk_req                          /usr/letc/lib/libkafs.so
krb_realmofhost                     /usr/letc/lib/libkafs.so
krb_get_lrealm                      /usr/letc/lib/libkafs.so
krb_get_cred                        /usr/letc/lib/libkafs.so
ld: fatal: Symbol referencing errors. No output written to test-fhopen

Obviously, -lkrb is missing. Adding it solves the problem.

Thanks 
  Rainer 

-- 
   Rainer Schöpf
   Zentrum für Datenverarbeitung           A point of view can be a dangerous
    der Universität Mainz                  luxury when substituted for insight
   Anselm-Franz-von-Bentzel-Weg 12         and understanding.
   D-55099 Mainz
   Germany                                  Herbert Marshall McLuhan:
   <Schoepf@Uni-Mainz.DE>                          The Gutenberg Galaxy

home help back first fref pref prev next nref lref last post