Both illumos and Solaris provide a link to the running binary as /proc/self/path/a.out but gnupg is trying to readlink /proc/curproc/file
Please could something like the following be added to common/homedir.c?
#elif defined(__illumos__) || defined(__sun) # define MYPROC_SELF_EXE "/proc/self/path/a.out"
I'd submit a patch myself but I don't have contributor access, thanks!