-
Notifications
You must be signed in to change notification settings - Fork 651
Closed
Description
When trying to compile on AIX, I see the following error:
In file included from /tmp/aix_softwares/cares-1.14.0/ares_parse_a_reply.c:34:
/usr/include/arpa/nameser_compat.h:244:3: error: conflicting types for 'HEADER'
} HEADER;
^~~~~~
In file included from /usr/include/arpa/nameser.h:645,
from /tmp/aix_softwares/cares-1.14.0/ares_parse_a_reply.c:29:
/usr/include/arpa/onameser_compat.h:265:3: note: previous declaration of 'HEADER' was here
} HEADER;
^~~~~~
To compile, I did the following:
cd /path/to/cmake/source
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/cares ..
Any suggestions on how to solve the problem? I would be willing to send a PR for this, if suggestion is given. Problem seems to be that on AIX both these HEADER is defined in both .h files. Please let me know.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels