PeerGuardian Linux does not make on Ubuntu 22.04:
Configure command works fine.
# make
make all-recursive
make[1]: Entering directory '/root/Downloads/pgl-2.3.1'
Making all in docs
make[2]: Entering directory '/root/Downloads/pgl-2.3.1/docs'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/Downloads/pgl-2.3.1/docs'
Making all in pglcmd
make[2]: Entering directory '/root/Downloads/pgl-2.3.1/pglcmd'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/Downloads/pgl-2.3.1/pglcmd'
Making all in pgld
make[2]: Entering directory '/root/Downloads/pgl-2.3.1/pgld'
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o pgld src/pgld.o sr c/stream.o src/blocklist.o src/parser.o -lnetfilter_queue -lnfnetlink -lz
libtool: link: gcc -g -O2 -o pgld src/pgld.o src/stream.o src/blocklist.o src/pa rser.o -lnetfilter_queue -lnfnetlink -lz
/usr/bin/ld: src/stream.o:/root/Downloads/pgl-2.3.1/pgld/src/blocklist.h:77: mul tiple definition of `blocklist'; src/pgld.o:/root/Downloads/pgl-2.3.1/pgld/src/b locklist.h:77: first defined here
/usr/bin/ld: src/blocklist.o:/root/Downloads/pgl-2.3.1/pgld/src/blocklist.h:77: multiple definition of `blocklist'; src/pgld.o:/root/Downloads/pgl-2.3.1/pgld/sr c/blocklist.h:77: first defined here
/usr/bin/ld: src/parser.o:/root/Downloads/pgl-2.3.1/pgld/src/blocklist.h:77: mul tiple definition of `blocklist'; src/pgld.o:/root/Downloads/pgl-2.3.1/pgld/src/b locklist.h:77: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:554: pgld] Error 1
make[2]: Leaving directory '/root/Downloads/pgl-2.3.1/pgld'
make[1]: *** [Makefile:549: all-recursive] Error 1
make[1]: Leaving directory '/root/Downloads/pgl-2.3.1'
make: *** [Makefile:460: all] Error 2
Any fix?
Sorry, here is the full output in proper format:
I got it to make / compile properly in Ubuntu 22.04 by making the following changes to configure.ac:
https://github.com/own3mall/peerguardian/commit/250ed4d1349587a0c39781715ba8071299746df3
https://github.com/own3mall/peerguardian/commit/d4eae376d998b3122c1588743248e0d12fe47f53
This is not the "right" way to fix this problem. It's just a work-around to get it to make for now since I'm not very experienced with C code.
I had a quick look at your commits. Not being a C-coder myself, I think they are a valid workaround.
Thus having said I'll follow up in https://sourceforge.net/p/peerguardian/discussion/446996/thread/5a4dc2b92a/ about the general state and usefulness of pgl.
Last edit: jre-phoenix 2024-07-11