ares_library_init_mem missing from ares.h
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
c-ares (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
In summary:
Looks like the manual page for c-ares is unclear as to the
availability of the two functions it covers:
ares_library_init
ares_library_
Secondly the #define only seems to cover availability of:
ares_library_init
I would suggest an update to the manual with the addition of
2. Another page/section for ares_library_
for the ares_library_
-------
I am making calls to:
ares_library_
I am expecting it to compile
However I am getting:
undefined reference to `ares_library_
This code is further protected with:
#ifdef CARES_HAVE_
see manual page text:
AVAILABILITY
This function was first introduced in c-ares version 1.7.0 along with the definition of preprocessor symbol CARES_HAVE_
Since the introduction of this function it is absolutely mandatory to call it for any Win32/64 program using c-ares.
Non-Win32/64 systems can still use c-ares version 1.7.0 without calling ares_library_init due to the fact that currently it is nearly a do-nothing function on non-Win32/64 platforms at this point.
Found inside ares_versions.h:
#define ARES_VERSION_MAJOR 1
#define ARES_VERSION_MINOR 10
#define ARES_VERSION_PATCH 0
#define ARES_VERSION ((ARES_
#define ARES_VERSION_STR "1.10.0"
#if (ARES_VERSION >= 0x010700)
# define CARES_HAVE_
# define CARES_HAVE_
#else
# undef CARES_HAVE_
# undef CARES_HAVE_
#endif
-------
System Info:
lsb_release -rd
Description: Ubuntu 16.04.3 LTS
Release: 16.04
libc-ares-dev:
Installed: 1.10.0-3ubuntu0.2
Candidate: 1.10.0-3ubuntu0.2
Version table:
*** 1.10.0-3ubuntu0.2 500
500 http://
500 http://
100 /var/lib/
1.10.0-3 500
500 http://
tags: | added: xenial |