Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2010 22:27:24 +0300
From:      "Alexander Zagrebin" <alexz@visp.ru>
To:        "'John Baldwin'" <jhb@freebsd.org>
Cc:        freebsd-stable@freebsd.org
Subject:   RE: upcoming 7.3-RELEASE: zfsloader doesn't support ZFS (doesn't link with libzfsboot)
Message-ID:  <B7C3DB99508C418ABC14AE4B8FB7F845@vosz.local>
In-Reply-To: <201003231009.54872.jhb@freebsd.org>
References:  <74426BABA82C4FD28FDF848FB65197FF@vosz.local> <201003231009.54872.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Tuesday 23 March 2010 3:41:06 am Alexander Zagrebin wrote:
> > I have tried to build RELENG_7_3_0_RELEASE and have noticed 
> that zfsloader
> > really doesn't supports ZFS due to incomplete Makefiles 
> (LOADER_ZFS_SUPPORT
> > issue).
> > Will be this issue fixed in 7.3-RELEASE?
> 
> Can you provide the output of the errors you are seeing?

There are no build errors.

IMHO, to support a ZFS, the loader have to be linked with the libzfsboot.
But (IMHO again) in the RELENG_7_3_0_RELEASE zfsloader builds without
this library.

To build zfsloader, the /usr/src/sys/boot/i386/zfsloader/Makefile contains
the following most important lines:

LOADER_ZFS_SUPPORT=yes
...
.include "${.CURDIR}/../loader/Makefile"

So the /usr/src/sys/boot/i386/loader/Makefile have to set required CFLAGS
and so on,
but it don't. It contains the folowing ZFS related lines:

# Set by zfsloader Makefile
#.if ${MK_ZFS} != "no"
#CFLAGS+=       -DLOADER_ZFS_SUPPORT
#LIBZFS=                ${.OBJDIR}/../../zfs/libzfsboot.a
#.else
LIBZFS=
#.endif

As you can see, all ZFS related stuff is commented out.
So "LOADER_ZFS_SUPPORT=yes" (/usr/src/sys/boot/i386/zfsloader/Makefile)
doesn't
affects a build process.

-- 
Alexander Zagrebin





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B7C3DB99508C418ABC14AE4B8FB7F845>