[4.0.x] build fails (module imap) with libcurl 7.29.0

Chaigneau, Nicolas nicolas.chaigneau at capgemini.com
Sat Jun 27 21:15:49 CEST 2020


Module imap is trying to use CURLOPT_DEFAULT_PROTOCOL, which was added in libcurl 7.45.0.

See build error below:


CC src/modules/rlm_imap/rlm_imap.c
In file included from /usr/include/curl/curl.h:2223,
                 from src/freeradius-devel/curl/base.h:32,
                 from src/modules/rlm_imap/rlm_imap.c:29:
src/modules/rlm_imap/rlm_imap.c: In function 'mod_authenticate':
src/modules/rlm_imap/rlm_imap.c:150:29: error: 'CURLOPT_DEFAULT_PROTOCOL' undeclared (first use in this function); did you mean 'CURLOPT_REDIR_PROTOCOLS'?
  150 |  FR_CURL_REQUEST_SET_OPTION(CURLOPT_DEFAULT_PROTOCOL, "imap");
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
src/modules/rlm_imap/rlm_imap.c:150:2: note: in expansion of macro 'FR_CURL_REQUEST_SET_OPTION'
  150 |  FR_CURL_REQUEST_SET_OPTION(CURLOPT_DEFAULT_PROTOCOL, "imap");
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/modules/rlm_imap/rlm_imap.c:150:29: note: each undeclared identifier is reported only once for each function it appears in
  150 |  FR_CURL_REQUEST_SET_OPTION(CURLOPT_DEFAULT_PROTOCOL, "imap");
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
src/modules/rlm_imap/rlm_imap.c:150:2: note: in expansion of macro 'FR_CURL_REQUEST_SET_OPTION'
  150 |  FR_CURL_REQUEST_SET_OPTION(CURLOPT_DEFAULT_PROTOCOL, "imap");
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [scripts/boiler.mk:704: build/objs/src/modules/rlm_imap/rlm_imap.lo] Error 1

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