In fact ipset_envopt_parsemoved from  libipset/session.h to libipset/ipset.h

So try to adapt the lib here https://github.com/inverse-inc/go-ipset/blob/master/ipset.h#L5 (#include <libipset/ipset.h>)

 Le 21-01-28 à 08 h 30, Fabrice Durand a écrit :

Hello Harvey,

what version of ipset is installed on your system ?

Btw you have 2 choices:


1- Downgrade ipset to 6.x

2- Modify the golang ipset lib to support new versions.

Regards

Fabrice


Le 21-01-28 à 07 h 07, har...@wojti.de a écrit :

Hi,

I'm trying to build packetfence 10.2.0 for ubuntu arm64 and I'm getting an strange error with go-ipset. I've allredy tried to change the version of ipset in the packetfence.spec but this wasn't helpfull at all. (https://github.com/inverse-inc/packetfence/pull/4821)

Also I got the same error-message on amd64...

Do you have some ideas to solve this issue?

Greetings,
Harvey

develobuntu:~/packetfence-10.2.0$ dpkg-buildpackage -us -uc -rfakeroot
....
#Golang binary
install -d -m0744 /home/ryan/packetfence-10.2.0/debian/packetfence-golang-daemon/usr/local/pf/sbin
make -C go all
make[1]: Entering directory '/home/ryan/packetfence-10.2.0/go'
cd cmd/pfhttpd && \
go build && \
mv pfhttpd ../..
# github.com/inverse-inc/go-ipset
/home/ryan/go/pkg/mod/github.com/inverse-inc/go-ipset@v0.0.0-20190925174109-4d5749cc4aa6/ipset.go:160:2: could not determine kind of name for C.ipset_envopt_parse
make[1]: *** [Makefile:22: pfhttpd] Error 2
make[1]: Leaving directory '/home/ryan/packetfence-10.2.0/go'
make: *** [debian/rules:160: install] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2



_______________________________________________
PacketFence-devel mailing list
PacketFence-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-devel
--
Fabrice Durand
fdur...@inverse.ca  ::  +1.514.447.4918 (x135) ::www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://packetfence.org)


_______________________________________________
PacketFence-devel mailing list
PacketFence-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-devel

--
Fabrice Durand
fdur...@inverse.ca ::  +1.514.447.4918 (x135) ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence 
(http://packetfence.org)

_______________________________________________
PacketFence-devel mailing list
PacketFence-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-devel

Reply via email to