-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build Netatalk on FreeBSD 14 with PAM support #560
Comments
I have also just tested using the current 'main' branch source for Netatalk3 on FreeBSD 14;
Build fails with the above configure options, and shows the same PAM build error (PAM option is enabled by default)
Builds perfectly when PAM is disabled with |
Thanks for reporting! I've been testing continuously on FreeBSD 13.1 without trouble, and I was able to build with PAM support just now too. So FreeBSD 14 must have introduced a major update to the PAM libraries that breaks compatibility...? Are you able to check what version of PAM is on you system? BTW, you're using several deprecated configure options with the
|
I tracked down the issue to the definition of the
11 years ago this commit made the assumption that the This assumption is incorrect on at least FreeBSD and NetBSD. However Illumos seems to use the non-const struc type. Hence, I think this should be an adequate fix: #563 Basically, flip the ifdef check to look for Solaris and descendants. @andylemin Would you be able to test if this resolves your problem? |
For the record, I went back and compiled on FreeBSD 13.1 again, observing the compiler log. The compiler does actually warn about incompatible function pointer types there, but does not error out. So the only change between 13 and 14 is that gcc got stricter in the latter. |
Note: The inverse is true for the netatalk2 branches when built on OpenIndiana. We need to add the |
@andylemin The fix is in the |
Hi @rdmark I was going to compare with 13.x, and see if I could find the relevant header files for you on the weekend, but I did not have time. Thank you for breathing new life and love into this project! |
We don't ignore you if you speak up. ;) Earlier this year I had a hypothesis that enterprise users had all but moved off of netatalk at this point. Given the feedback that we've gotten over the last few months, that does not seem to be the case. In the absence of user analytics I can't say for sure what the active install base looks like. But hearing from folks like you is very valuable. This year we celebrate (?) the 10 year anniversary of Apple making SMB the primary file sharing protocol (OS X Mavericks, October 22, 2013). The AFP client is living on borrowed time, surely! |
Hi @rdmark Thanks, I will test the fix hopefully this week and let you know. Ha, that's great to hear :) I see mostly startups using Netatalk. |
Hi @rdmark I pulled the latest main branch code on a test FreeBSD 14 box today (confirmed your fix for PAM is there), and configured with; giving;
However I now get the build error;
This surpised me as according to https://github.com/Netatalk/netatalk/pull/572/commits, using So I think I am using bad options or something.. |
@andylemin If you haven't done so already, please try to:
|
Hi @rdmark and I have just tried again today (again deleted and fresh clone);
Same talloc build error as before.. ./configure output shows Spotlight is disabled, but it is still trying to build talloc etc. If I install talloc with PAM testing; And check that your After restarting with debug mode enabled I can see lines like; So it looks like your const changes did the trick. I will test with radius and let you know if any issues, otherwise looking good. |
Cheers, thanks for testing. Good to hear that the original issue was resolved at least. The talloc configuration issue has been reported by another user (for macOS) in #577 so let’s follow up on this over there! |
I have a tentative patch lined up in #578 ... however not fully tested yet |
Hi,
It is no longer possible to compile Netatalk 3 on FreeBSD 14 with PAM support enabled.
Install FreeBSD 14 Release (test using netatalk3 in FreeBSD ports = 3.1.16)
We need to enable PAM to provide YubiKey Authentication etc (via FreeRadius) to AFP clients.
PS; I notice that the Netatalk team seem to consider Netatalk as only for home/hobby users now, for legacy apple devices. However this is not true. The number of Apple-only businesses is increasing in my own experience, and nearly all these businesses use Netatalk in production/commercial environments as AFP is still much faster and more reliable than SMB..
SMB is only faster than AFP when using multiple RSS (receive side scaling) connections, on the latest code, on Linux, with Windows Clients. However MacOS does not support RSS at all yet. Until Apple support RSS, to allow multiple connections between Client and Server, Netatalk is the only realistic option.
I know Apple officially dropped support for AFP (Server, not Client), and one day they may also drop the AFP Client. However until the AFP Client stops working, Netatalk is often still the best option for many Apple-only businesses.
In other words, Please don't ignore the business users - we are still here :)
The text was updated successfully, but these errors were encountered: