RE: Build of v4.0.x fails : missing include (in src/protocols/dhcpv4/decode.c)
About this error:
src/protocols/dhcpv4/decode.c: In function ‘fr_dhcpv4_decode_option’: src/protocols/dhcpv4/decode.c:376:55: error: ‘FR_VENDOR_SPECIFIC’ undeclared (first use in this function); did you mean ‘_SC_DEVICE_SPECIFIC’? parent = fr_dict_attr_child_by_num(packet_ctx->root, FR_VENDOR_SPECIFIC); ^~~~~~~~~~~~~~~~~~ _SC_DEVICE_SPECIFIC
I've added the following include, in file: src/protocols/dhcpv4/decode.c #include <freeradius-devel/libradius.h> Now the build is successful. :) Regards, Nicolas. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
On Feb 19, 2018, at 4:13 AM, Chaigneau, Nicolas <nicolas.chaigneau@capgemini.com> wrote:
About this error:
src/protocols/dhcpv4/decode.c: In function ‘fr_dhcpv4_decode_option’: src/protocols/dhcpv4/decode.c:376:55: error: ‘FR_VENDOR_SPECIFIC’ undeclared (first use in this function); did you mean ‘_SC_DEVICE_SPECIFIC’? parent = fr_dict_attr_child_by_num(packet_ctx->root, FR_VENDOR_SPECIFIC); ^~~~~~~~~~~~~~~~~~ _SC_DEVICE_SPECIFIC
It works for me, which is a bit weird. But I've pushed a fix. Alan DeKok.
I think I know why it worked for you. "dhcpv4.h" includes "pcap.h", which includes "libradius.h" (but only with "HAVE_LIBPCAP"). I don't have libpcap. I suspect you do. :)
About this error:
src/protocols/dhcpv4/decode.c: In function ‘fr_dhcpv4_decode_option’: src/protocols/dhcpv4/decode.c:376:55: error: ‘FR_VENDOR_SPECIFIC’ undeclared (first use in this function); did you mean ‘_SC_DEVICE_SPECIFIC’? parent = fr_dict_attr_child_by_num(packet_ctx->root, FR_VENDOR_SPECIFIC); ^~~~~~~~~~~~~~~~~~ _SC_DEVICE_SPECIFIC
It works for me, which is a bit weird. But I've pushed a fix.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
On Feb 22, 2018, at 10:31 AM, Chaigneau, Nicolas <nicolas.chaigneau@capgemini.com> wrote:
I think I know why it worked for you.
"dhcpv4.h" includes "pcap.h", which includes "libradius.h" (but only with "HAVE_LIBPCAP").
I don't have libpcap. I suspect you do. :)
Ah, yes. I pushed a fix. Alan DeKok.
participants (2)
-
Alan DeKok -
Chaigneau, Nicolas