dnstap module compilation error on Turris Omnia
Hi, I'm trying to build dnstap module for Turris Omnia, but it fails to generate dnstap.pb-c.h
../modules/dnstap/dnstap.c:23:40: fatal error: modules/dnstap/dnstap.pb-c.h: No such file or directory
which is probably caused by this
FAILED: modules/dnstap/dnstap.pb-c.h modules/dnstap/dnstap.pb-c.c
/home/cznic/data/src/openwrt_devhonza_lastlast/openwrt/staging_dir/host/bin/protoc-c --c_out=modules/dnstap --proto_path /home/cznic/data/src/openwrt_devhonza_lastlast/openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/knot-resolver/modules/dnstap dnstap.proto
dnstap.proto: No such file or directory
I tried to fixed that with this patch and now it looks that dnstap modules is build.
Index: knot-resolver/modules/dnstap/meson.build
===================================================================
--- knot-resolver.orig/modules/dnstap/meson.build
+++ knot-resolver/modules/dnstap/meson.build
@@ -27,9 +27,8 @@ if build_dnstap
'dnstap_pb',
command: [
protoc_c,
- '--c_out=@OUTDIR@',
- '--proto_path', meson.current_source_dir(),
- 'dnstap.proto',
+ '--c_out=' + meson.current_build_dir(),
+ '--proto_path', meson.current_source_dir(), join_paths([meson.current_source_dir(), 'dnstap.proto']),
],
output: [
'dnstap.pb-c.h',
Edited by Jan Pavlinec