Building o3x 2.1

Developer discussions.

Building o3x 2.1

Postby abc123 » Mon Jan 10, 2022 7:36 am

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
abc123
 
Posts: 56
Joined: Mon Jan 30, 2017 11:46 pm

Re: Building o3x 2.1

Postby abc123 » Mon Jan 10, 2022 7:47 am

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
abc123
 
Posts: 56
Joined: Mon Jan 30, 2017 11:46 pm

Re: Building o3x 2.1

Postby lundman » Mon Jan 10, 2022 4:16 pm

\o/
User avatar
lundman
 
Posts: 1075
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Building o3x 2.1

Postby abc123 » Tue Jan 11, 2022 12:42 am

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.
abc123
 
Posts: 56
Joined: Mon Jan 30, 2017 11:46 pm

Re: Building o3x 2.1

Postby lundman » Tue Jan 11, 2022 1:02 am

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

Re: Building o3x 2.1

Postby abc123 » Tue Jan 11, 2022 3:30 am

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.
abc123
 
Posts: 56
Joined: Mon Jan 30, 2017 11:46 pm

Re: Building o3x 2.1

Postby abc123 » Tue Jan 11, 2022 3:40 am

Yes I must have cocked up the lib paths as it builds now, pointing it to the MacPorts versions.
abc123
 
Posts: 56
Joined: Mon Jan 30, 2017 11:46 pm

Re: Building o3x 2.1

Postby lundman » Tue Jan 11, 2022 4:20 pm

You can just build gettext and openssl yourself too, I was just lazy :)
User avatar
lundman
 
Posts: 1075
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 3 guests