Two bugs in arla-0.27 build on Solaris 7 / X86
Rainer Schoepf
schoepf at uni-mainz.de
Fri Sep 3 15:16:26 CEST 1999
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 at Uni-Mainz.DE> The Gutenberg Galaxy
More information about the Arla-drinkers
mailing list