Dynamic linking issues with classic snap

See this answer about block devices.

I quickly tried to look for answers about the /sys/kernel/mm/hugepages issues and only found this document and this potentially relevant thread.