Page 1 of 1

Building o3x 2.1

PostPosted: Mon Jan 10, 2022 7:36 am
by abc123
I'm on Monterey and have pulled down the repository. I've installed autoconf, automake etc through MacPorts not brew. I've run autogen and now trying to run configure. This is failing with the following output. Any ideas?

Code: Select all
checking for library containing xdrmem_create... none required
checking for libudev... no
checking for libudev.h... no
checking for libudev.h... no
configure: WARNING: cannot find udev via pkg-config or in the standard locations
checking for libcrypto... no
checking for openssl/evp.h... no
checking for openssl/evp.h... no
configure: WARNING: cannot find crypto via pkg-config or in the standard locations
configure: error: in `/Users/russell/Projects/zfs/openzfs-devel':
configure: error:
      *** evp.h missing, libssl-devel package required
See `config.log' for more details


Thanks

Re: Building o3x 2.1

PostPosted: Mon Jan 10, 2022 7:47 am
by abc123
Never mind, after re-reading https://openzfsonosx.org/wiki/Install#I ... rom_source I finally noticed the example configure line and have fixed the path for openssl-1.1 and get text from MacPorts.

Thanks

Re: Building o3x 2.1

PostPosted: Mon Jan 10, 2022 4:16 pm
by lundman
\o/

Re: Building o3x 2.1

PostPosted: Tue Jan 11, 2022 12:42 am
by abc123
Just an update for others: I'm using MacPorts for autoconf/make, libtool, gawk etc but brew for the gettext and openssl-1.1 libs. Looks like the MacPorts libintl isn't providing x64 versions? Or that was the linker error I was getting. Everything builds now.

I think it may have been rottegift who mentioned using MacPorts mostly for binaries and Homebrew for libs on IRC a while back. Seems to work.

Re: Building o3x 2.1

PostPosted: Tue Jan 11, 2022 1:02 am
by lundman
i used brew for everything, except gettext and openssl, as they only do one type of x64/arm64 - and I wanted one binary with both :) macports for those two

Re: Building o3x 2.1

PostPosted: Tue Jan 11, 2022 3:30 am
by abc123
I'll have to give MacPorts another go then but I was getting errors about not able to find architecture x64 from it - but may be I screwed the paths up as this was my first few attempts to get it to build.

Re: Building o3x 2.1

PostPosted: Tue Jan 11, 2022 3:40 am
by abc123
Yes I must have cocked up the lib paths as it builds now, pointing it to the MacPorts versions.

Re: Building o3x 2.1

PostPosted: Tue Jan 11, 2022 4:20 pm
by lundman
You can just build gettext and openssl yourself too, I was just lazy :)