Page 1 of 1

Build from source outdated

PostPosted: Tue Dec 26, 2023 6:24 am
by Iai19
Any luck on building from source for Ventura 13.6.3 ?

zfsadm script is outdated

and a regular make throws:
```
In file included from IDCLI.cpp:15:
./IDException.hpp:71:49: error: use of undeclared identifier 'kCFStringEncodingUTF8'
char const * esp = CFStringGetCStringPtr(es, kCFStringEncodingUTF8);
```

any suggestions are highly appreciated.

Re: Build from source outdated

PostPosted: Wed Jan 03, 2024 4:28 pm
by lundman
I never used zfsadm myself, and I don't know if ilovezfs is maintaining it.

But you are right, the wiki is woefully out of date, still talks about spl and zfs being separate repositories.

When I build I go checkout openzfs-fork:

Code: Select all
# git checkout zfs-macOS-2.2.2-release
# ./autogen.sh
# ./configure CPPFLAGS="-I/usr/local/opt/gettext/include -I/usr/local/opt/openssl@1.1/include" LDFLAGS="-L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/gettext/lib" CFLAGS="-Wno-error -O2 -g" --sysconfdir=/etc --localstatedir=/var --prefix=/usr/local/zfs/ --sbindir=/usr/local/zfs/bin --libexecdir=/usr/local/zfs/libexec --enable-pam=NO SED=gsed
# make

# make install
-or-
# ./scripts/pkg_macos.sh -L


Showing the full configure for how I make install pkg. You will need to change the include and library paths based on where you install openssl and gettext. I used brew or macports.
In your case, no "-Wno-error" is what is stopping you, what is an unavoidable warning, is turned into an error due to -Werror that zfsadm uses.