sakaki- / gentoo-on-rpi-64bit

Bootable 64-bit Gentoo image for the Raspberry Pi4B, 3B & 3B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera and h/w codec support, weekly-autobuild binhost
GNU General Public License v3.0
918 stars 126 forks source link

net-dialup/freeradius-3.0.17 missing /usr/lib64/rlm_mschap.so #127

Closed seanuxbridgeperluser closed 4 years ago

seanuxbridgeperluser commented 4 years ago

Hello,

FreeRADIUS will not run. When I try to use usr/sbin/radiusd, it complains that /usr/lib64/rlm_mschap.so is missing.

I have three different suggestions on how to resolve.

1.) I don't use MS-CHAP, so if you need to build without linking to it, that's fine. 2.) You can release a version of 3.0.17 that has the required library 3.) You can release a newer version as stable that has the required library 4.) Or, heck, there could be another idea that I'm not thinking of

I just really want to run RADIUS on my Pi. Can you help?

(also, that's a dynamically-linked binary under sbin but that's neither here nor there)

sakaki- commented 4 years ago

Looking at the ebuild for this package, it seems you need to set the samba USE flag to retain this library.

To do so, issue:

pi64 ~ # echo "net-dialup/freeradius samba" >> /etc/portage/package.use/freeradius
pi64 ~ # emerge -av net-dialup/freeradius

PS I don't understand your point about (/usr)/sbin? This location is for executables intended for use exclusively by system admins; it does not mandate anything about static or dynamic linking. See e.g. these notes.

seanuxbridgeperluser commented 4 years ago

Thanks, that worked!

I could have sworn I had the samba flag set but apparently I did not.

Disregard the sbin comment. In some systems, sbin houses statically linked binaries but this is not that one.