Zfone

has anyone compiled zfone on opensuse 11 (kde)? I’m getting the
following error in compiling the daemon:

/usr/include/linux/netfilter.h:41: error: expected
specifier-qualifier-list before ‘__be32’


AntoniosX

AntoniosX’s Profile: http://forums.opensuse.org/member.php?userid=4230
View this thread: http://forums.opensuse.org/showthread.php?t=400275

Hi
Had a look and there are a couple of errors in the code. It’s
looking for the libipq.h in a different directory and it’s
referencing sys/types.h which should be linux/types.h.

You need to add the #include between netinit and the netfilter one
which exist in the code;

Also because the way the install script runs you need to rebuild the
edited one so it unpacks the modified code.


mkdir /usr/include/libipq
cp /usr/include/libipq.h /usr/include/libipq/


rm zfoned-0.91.233.tar.gz

vi zfoned-0.91.233/src/daemon/zfoned_net_lin.c

#include <netinet/in.h>

#include <linux/types.h>

#include <linux/netfilter.h>

tar cf zfoned-0.91.233.tar zfoned-0.91.233/*
gzip zfoned-0.91.233.tar

../install.sh

modprobe ip_queue
/etc/init.d/zfone start


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 4:27, 4 users, load average: 0.06, 0.25, 0.39
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82