ERROR: /usr/lib/swipl/library/http/http_open.pl:67:
ERROR: Exported procedure socket:tcp_connect/2 is not defined
ERROR: /home/roblaing/swipl/bin/kif2prolog.pl:6: user:main module/2: No permission to redefine module `socket' (Already loaded from /usr/lib/swipl/library/socket.pl)
The problem went away when reverted to 9.2.4 (the version Arch Linux’s pacman installs) from the built-from sources 9.3.6.
All the tests passed when I built 9.3.6, so no idea if it’s an Arch Linux problem or some bug in the development version code.
AFAIK, the problem is due to the reorganization of the library file structure. Both the old and new should work fine, but if due to an old installation to have both the old and new files installed you get these issues. So, you have to clean all files from the installation directory before installing the new version.
As I’ve already done on my server, I’ve opted now to be also conservative on my development laptop and just used the version installed by my distribution’s package manager because compiling from source has become too difficult for me.