Build of v4.0.x fails : freeradius-devel/io/ring_buffer.h: No such file or directory => solved (+ more issues)

Chaigneau, Nicolas nicolas.chaigneau at capgemini.com
Fri Feb 16 19:31:25 CET 2018


I solved my issue by making the following change:


In file: src/include/all.mk (line 136)

#       ${Q}[ -e src/include/io ] || ln -s src/lib/io ${top_srcdir}/src/include
        ${Q}[ -e src/include/io ] || ln -s ${top_srcdir}/src/lib/io ${top_srcdir}/src/include



Then it fails later, because of compilation warnings (I tried to configure with "--enable-werror"):


CC src/main/map.c
src/main/map.c: In function ‘map_list_mod_apply’:
src/main/map.c:1679:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
   {
   ^
src/main/map.c:1709:3: note: here
   case T_OP_ADD:
   ^~~~
src/main/map.c: In function ‘map_to_request’:
src/main/map.c:2433:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
    if (map->rhs->type == TMPL_TYPE_LIST) {
       ^
src/main/map.c:2438:3: note: here
   case T_OP_EQ:
   ^~~~
In file included from src/freeradius-devel/io/time.h:32:0,
                 from src/freeradius-devel/clients.h:33,
                 from src/freeradius-devel/radiusd.h:60,
                 from src/main/map.c:31:
src/freeradius-devel/rad_assert.h:43:30: error: this statement may fall through [-Werror=implicit-fallthrough=]
 #  define rad_assert(_expr) ((void) ((_expr) ? (void) 0 : (void) fr_assert_exit(__FILE__, __LINE__, #_expr)))
                             ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main/map.c:2439:5: note: in expansion of macro ‘rad_assert’
     rad_assert(map->rhs->type == TMPL_TYPE_EXEC);
     ^~~~~~~~~~
src/main/map.c:2440:3: note: here
   case T_OP_ADD:
   ^~~~
cc1: all warnings being treated as errors
make: *** [build/objs/src/main/map.lo] Error 1



So I tried removing  "--enable-werror" from configure.
I go a bit farther now. Include issues, I guess:

CC src/protocols/dhcpv4/decode.c
In file included from src/protocols/dhcpv4/decode.c:33:0:
src/freeradius-devel/dhcpv4/dhcpv4.h:145:1: error: unknown type name ‘RADIUS_PACKET’; did you mean ‘AF_PACKET’?
 RADIUS_PACKET *fr_dhcpv4_udp_packet_recv(int sockfd);
 ^~~~~~~~~~~~~
 AF_PACKET

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



To be continued. :)
I'll look into this next week.


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