I have been trying to get PeerGuardian on my Ubuntu 21.04 system, but the PPA maintainer is not updating the package, and the project seems to be abandoned.
When I try to compile on my laptop, I get this error:
/usr/bin/ld: src/stream.o:/home/frigyes/Desktop/peerguardian-code/pgld/src/blocklist.h:77: multiple definition of `blocklist'; src/pgld.o:/home/frigyes/Desktop/peerguardian-code/pgld/src/blocklist.h:77: first defined here
/usr/bin/ld: src/blocklist.o:/home/frigyes/Desktop/peerguardian-code/pgld/src/blocklist.h:77: multiple definition of `blocklist'; src/pgld.o:/home/frigyes/Desktop/peerguardian-code/pgld/src/blocklist.h:77: first defined here
/usr/bin/ld: src/parser.o:/home/frigyes/Desktop/peerguardian-code/pgld/src/blocklist.h:77: multiple definition of `blocklist'; src/pgld.o:/home/frigyes/Desktop/peerguardian-code/pgld/src/blocklist.h:77: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:554: pgld] Error 1
make[2]: Leaving directory '/home/frigyes/Desktop/peerguardian-code/pgld'
make[1]: *** [Makefile:547: all-recursive] Error 1
make[1]: Leaving directory '/home/frigyes/Desktop/peerguardian-code'
make: *** [Makefile:458: all] Error 2
I made a github repo to experiment with the github action compilation, and don't screw my system over, and that can compile the program flawlessly. What's going on?
Here is the github repo, with all the workflow logs:
https://github.com/Frigyes06/peerguardian
I'm a noob with Github actions too, so if you can fix anything, feel free to make a PR!
Thanks for any help in advance!