Ubuntuでソースからmakeするのはむずかしいかも。
https://packages.ubuntu.com/ja/source/bionic/libspf2
1. history
# apt-get install libspf2-2 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libstartup-notification0 libxcb-util1 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: libspf2-2 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 53.3 kB of archives. After this operation, 152 kB of additional disk space will be used. Get:1 http://jp.archive.ubuntu.com/ubuntu bionic/universe amd64 libspf2-2 amd64 1.2.10-7build2 [53.3 kB] Fetched 53.3 kB in 0s (119 kB/s) Selecting previously unselected package libspf2-2. (Reading database ... 137840 files and directories currently installed.) Preparing to unpack .../libspf2-2_1.2.10-7build2_amd64.deb ... Unpacking libspf2-2 (1.2.10-7build2) ... Setting up libspf2-2 (1.2.10-7build2) ... Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
2. header など
# apt-get install libspf2-dev Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libstartup-notification0 libxcb-util1 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: libspf2-dev 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 60.8 kB of archives. After this operation, 287 kB of additional disk space will be used. Get:1 http://jp.archive.ubuntu.com/ubuntu bionic/universe amd64 libspf2-dev amd64 1.2.10-7build2 [60.8 kB] Fetched 60.8 kB in 0s (394 kB/s) Selecting previously unselected package libspf2-dev. (Reading database ... 137848 files and directories currently installed.) Preparing to unpack .../libspf2-dev_1.2.10-7build2_amd64.deb ... Unpacking libspf2-dev (1.2.10-7build2) ... Setting up libspf2-dev (1.2.10-7build2) ...