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

Chaigneau, Nicolas nicolas.chaigneau at
Thu Feb 22 16:31:02 CET 2018

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.

More information about the Freeradius-Devel mailing list