PIDL generated headers in librpc/gen_ndr/
Dimitris Gravanis
dimgrav at gmail.com
Tue Aug 22 19:33:37 UTC 2017
Hi,
If I read this output correctly, i appears that PIDL-generated
default/librpc/gen_ndr/misc.h and default/librpc/gen_ndr/dnsp.h don't
include libcli/util/data_blob.h and libcli/util/time.h when compiled:
|In file included from default/librpc/gen_ndr/dns.h:10:0,||
|| from ../source4/dns_server/dns_server.h:25,||
|| from ../libcli/dns/libtcp.h:27,||
|| from ../libcli/dns/cli_dns.c:32:||
||default/librpc/gen_ndr/misc.h:98:2: error: unknown type name ‘DATA_BLOB’||
|| DATA_BLOB binary;/* [case(REG_BINARY),flag(LIBNDR_FLAG_REMAINING)] ||
|| ^||
||In file included from default/librpc/gen_ndr/dns.h:11:0,||
|| from ../source4/dns_server/dns_server.h:25,||
|| from ../libcli/dns/libtcp.h:27,||
|| from ../libcli/dns/cli_dns.c:32:||
||default/librpc/gen_ndr/dnsp.h:303:2: error: unknown type name ‘NTTIME’||
|| NTTIME timestamp;/* [case(DNS_TYPE_TOMBSTONE)] */||
|| ^|
Therefore linking with dns.h fails, thus resulting in unknown types in
cli_dns.c. Any idea on how to fix that?
Adding
|#include "lib/util/data_blob.h"||
||#include "lib/util/time.h"|
to libtsig.h (included in cli_dns.c) didn't do the trick, nor including
them directly in cli_dns.
Cheers,
Dimitris
More information about the samba-technical
mailing list