Re: ZFS port to FreeBSD: 2nd patchset available.

From: Danny Braniss <danny_at_cs.huji.ac.il>
Date: Tue, 06 Mar 2007 16:27:03 +0200
Hi Pawel,
	patches applied cleanly, no .rej.
	after fixing Makefile1.inc I managed to make buildworld,
then applied Yoshihiro Ota <ota_at_j.email.ne.jp> fix,
but now I'm stuck in buildkernel, mainly because im using a Freebsd 6.2
to cross compile.
the make failes in src/sys/modules/zfs because	/r+d/7.0/src/sys/modules/zfs/../
../compat/opensolaris/kern/opensolaris_condvar.c
is including
	/usr/include/machine/signal.h
which is from 6.2 instead.
the fix is:

diff -bru src/sys/modules/zfs/Makefile{.orig,}
--- src/sys/modules/zfs/Makefile.orig   Tue Mar  6 15:49:49 2007
+++ src/sys/modules/zfs/Makefile        Tue Mar  6 15:50:01 2007
_at__at_ -85,7 +85,7 _at__at_
 CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/common/zfs
 CFLAGS+=-I${.CURDIR}/../../../contrib/opensolaris/common
 #
-CFLAGS+=-I/usr/include
+CFLAGS+=-I${.CURDIR}/../../../include
 CFLAGS+=-O1
 #CFLAGS+=-DKTR
 
now, it fails with

/r+d/7.0/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/rpc/xdr.c: 
In function `xdr_bytes':
/r+d/7.0/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/rpc/xdr.c:497
: warning: cast to pointer from integer of different size
/r+d/7.0/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/rpc/xdr.c: 
In function `xdr_string':
/r+d/7.0/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/rpc/xdr.c:627
: warning: cast to pointer from integer of different size
*** Error code 1

hum, does this copile for amd64?

danny
Received on Tue Mar 06 2007 - 13:27:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:06 UTC