Subject: Re: Anybody running arla?
To: Torsten Harenberg <harenberg@physik.uni-wuppertal.de>
From: =?iso-8859-1?q?Love_H=F6rnquist_=C5strand?= <lha@kth.se>
List: port-alpha
Date: 09/01/2005 16:09:57
--=-=-=


Torsten Harenberg <harenberg@physik.uni-wuppertal.de> writes:

> I try to compile arla (0.38 from pkgsrc as well as recent 0.40) on a
> freshly installed NetBSD 2.0.2. This allways fails like this:
>
> gcc -c  -DHAVE_CONFIG_H -I. -I.  -I../../include -I./../../include
> -I./../include -DNNPFS_DEBUG -DINET6 -g  -Wall -Wmissing-prototypes
> -Wpointer-arith -Wmissing-declarations -Wnested-externs   -D_KERNEL
> -D_LKM -ffreestanding -mieee -mno-fp-regs -I/usr/src/sys -nostdinc
> -isystem /usr/src/sys -isystem /usr/src/sys/arch
> -I/root/arla-0.40/include/netbsd-lkm -Wno-unused -Werror
> nnpfs_syscalls-common.cnnpfs_syscalls-common.c: In function
> getfh_compat':
> nnpfs_syscalls-common.c:358: error: structure has no member named `f_fsidx'
> nnpfs_syscalls-common.c: In function `trad_fhget':
> nnpfs_syscalls-common.c:399: error: structure has no member named `f_fsidx'
> *** Error code 1

Aprently I got the ifdef wrong.

#if defined(__NetBSD_Version__) && __NetBSD_Version__ > 200040000 /* really statvfs */
    fh.fh_fsid = vp->v_mount->mnt_stat.f_fsidx;
#else
    fh.fh_fsid = vp->v_mount->mnt_stat.f_fsid;
#endif

if you change the #if line to #if 0, does it work then (and what number
should I really have used ?) 

Love


--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iQEVAwUAQxcLuNo1gLFKFEjAAQKOWQgAqB7eBBRKkyFVy6f1F7GcNT4YzwRep48O
h3pTIxacVab9GVe366LxpdmmSOp2qekTYTI/1IibxDptg49kn+wWlqYnHIaxaZex
d2wGHaAk42KuBx75q1cmCorPrPwrAUoA/s3kWigyAdb3Rd7Ko/ExNFxUR8UsfZPm
KdhmkFrqesOmh3RGm2fo8/IYpIgHt2U27FF7jbG7chwXSoYJcpIUmsAtEU9KAl87
PNNce1SmDdbQMykwP3+/nUuwUuqO/p1crSvP3y+VsGM/jFJ3Dv7sk5/DR+zyu9WD
NCAA+KPEKA2s988Jotmi5fGSpgM60FpJ+Q/62oYsq86xBhCkmojZ8w==
=W/4W
-----END PGP SIGNATURE-----
--=-=-=--