Am 29.04.2017 um 14:19 schrieb Antony Antony:
On Sat, Apr 29, 2017 at 01:16:01PM +0200, Muenz, Michael wrote:
Hi,

I tried to build a deb with the latest source, but I got many errors that
some includes can not be found (e.g. /usr/include/nss/pk11pub.h)
The files are included with #include <pk11pub.h> and I have to add #include
<nss/pk11pub.h>

Isn't there a way to check the linux version with an IF in order to change
the path in the include?

After the third file I just did a

ln -s /usr/include/nss/* /usr/include/
ln -s /usr/include/nspr/* /usr/include/
the automagic include path detection use pkg-config
e.g
pkg-config --cflags nss
-I/usr/include/nss -I/usr/include/nspr

to install all dependencies to build on Debian, in the libreswan source 
directory
mk-build-deps --install  ./debian/control
mk-build-deps is part of devscripts

pkg-config did it, thanks!

Michael
_______________________________________________
Swan mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan

Reply via email to