Build of v4.0.x fails : missing include (in src/protocols/dhcpv4/decode.c)

Chaigneau, Nicolas nicolas.chaigneau at capgemini.com
Mon Feb 19 10:13:55 CET 2018


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.



More information about the Freeradius-Devel mailing list