Build from source outdated

Developer discussions.

Build from source outdated

Postby Iai19 » Tue Dec 26, 2023 6:24 am

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.
Iai19
 
Posts: 1
Joined: Tue Dec 26, 2023 6:21 am

Re: Build from source outdated

Postby lundman » Wed Jan 03, 2024 4:28 pm

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.
User avatar
lundman
 
Posts: 1338
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan


Return to OpenZFS on OS X Development

Who is online

Users browsing this forum: No registered users and 2 guests