[Swan] Compiling on Ubuntu 16.04

Whit Blauvelt whit.swan at transpect.com
Sun Aug 12 15:29:34 UTC 2018


On Sat, Aug 11, 2018 at 11:06:11PM -0400, Paul Wouters wrote:

> (or grab the latest git master from github)

Following up on that suggestion: The positive thing to report is "make deb"
gave a list of a half-dozen package dependencies that weren't installed; a
list that worked cleanly with apt install. This hadn't happened with 3.25,
so a good improvement.

The misfortune is that, when invoked after that, it churns through part of
the build only to stop at:

-----

/usr/src/libreswan/programs/pluto/kernel_pfkey.c:754:13: error: ‘pfkey_register_proto’ defined but not used [-Werror=unused-function]
 static void pfkey_register_proto(unsigned int sadb_register,
             ^
cc1: all warnings being treated as errors
../../mk/depend.mk:34: recipe for target 'kernel_pfkey.o' failed
make[5]: *** [kernel_pfkey.o] Error 1
../../mk/targets.mk:82: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/usr/src/libreswan/programs/pluto'
../mk/targets.mk:82: recipe for target 'recursive-all' failed
make[3]: *** [recursive-all] Error 2
make[3]: Leaving directory '/usr/src/libreswan/programs'
mk/targets.mk:82: recipe for target 'recursive-all' failed
make[2]: *** [recursive-all] Error 2
make[2]: Leaving directory '/usr/src/libreswan'
debian/rules:23: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/usr/src/libreswan'
debian/rules:6: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc -i -b failed
Makefile:598: recipe for target 'deb' failed
make: *** [deb] Error 29

-----

Would not treating warnings as errors get around that? Or is it something
more? I'm hesitant to change things naively, as I want a stable program to
result.

Thanks again for the help so far,

Whit


More information about the Swan mailing list