Since I'm thinking of using my pi to do some downloads, i would like to setup a peerblock/peerguardian equivalent.
I searched the internet, and I've found this.
i'm using latest raspbmc,
cat /scripts/upd_hist/build_info
raspbmc-rls-1.0-hardfp-b20130616-u20130616
uname output:
Linux raspbmc 3.6.11 #2 PREEMPT Sat Jun 15 21:45:28 UTC 2013 armv6l GNU/Linux
./autogen.sh output:
pglgui/Makefile.am:65: `%'-style pattern rules are a GNU make extension
pglgui/Makefile.am:81: `%'-style pattern rules are a GNU make extension
./configure –without-qt4 –disable-dbus output:
pgl.......................................... : Version 2.2.2
Prefix....................................... : /usr/local
Exec_Prefix.................................. : ${prefix}
Initd........................................ : ${prefix}/etc/init.d
Logdir....................................... : ${prefix}/var/log/pgl
Piddir....................................... : ${prefix}/var/run
Tmpdir....................................... : /tmp
Blocklists................................... : ${prefix}/var/spool/pgl
Localblocklist............................... : ${prefix}/etc/pgl/blocklists.local
Masterblocklist.............................. : ${prefix}/var/lib/pgl
LSB (use built-in functions if empty)........ :
logrotate.................................... : yes
cron......................................... : yes
networkmanager............................... : yes
zlib......................................... : yes
dbus......................................... : no
lowmem....................................... : no
QT-gui....................................... : no
.............................................
Developer debug:
PGLD_CFLAGS:
PGLD_CPPFLAGS: -DVERSION=\"2.2.2\" -DPACKAGE_NAME=\"pgl\" -DPIDFILE=\"${prefix}/var/run/pgld.pid\" -DHAVE_ZLIB
PGLD_LDFLAGS:
PGLD_LIBS: -lnetfilter_queue -lnfnetlink -lz
QT_CXXFLAGS:
QT_CPPFLAGS: -DVERSION=\"2.2.2\" -DPGLCMDDEFAULTSPATH=\"${exec_prefix}/lib/pgl/pglcmd.defaults\" -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
QT_LDFLAGS:
QT_LIBS:'
make output (where the error occurs):
make[2]: Entering directory `/home/mushi/peerguardian/pgl-2.2.2/pgld'
gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=\"2.2.2\" -DPACKAGE_NAME=\"pgl\" -DPIDFILE=\"/usr/local/var/run/pgld.pid\" -DHAVE_ZLIB -g -O2 -MT pgld.o -MD -MP -MF .deps/pgld.Tpo -c -o pgld.o `test -f 'src/pgld.c' || echo './'`src/pgld.c
In file included from /usr/include/linux/kernel.h:4:0,
from /usr/include/linux/sysctl.h:25,
from /usr/include/linux/netfilter.h:6,
from /usr/include/linux/netfilter_ipv4.h:8,
from src/pgld.h:42,
from src/pgld.c:22:
/usr/include/linux/sysinfo.h:8:2: error: unknown type name '__kernel_long_t'
/usr/include/linux/sysinfo.h:9:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:10:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:11:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:12:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:13:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:14:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:15:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:18:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:19:2: error: unknown type name '__kernel_ulong_t'
/usr/include/linux/sysinfo.h:21:22: error: '__kernel_ulong_t' undeclared here (not in a function)
make[2]: *** [pgld.o] Error 1
make[2]: Leaving directory `/home/mushi/peerguardian/pgl-2.2.2/pgld'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mushi/peerguardian/pgl-2.2.2'
make: *** [all] Error 2'
trying to compile pgl 2.2.2