error compiling on c-ares AIX #224
Comments
What version of AIX are you running? What version of c-ares are you testing (e.g. official 1.14.0 release, git master, etc)? In my AIX version, at the top of nameser.h is a #define BIND_4_COMPAT which causes nameser_compat.h to be included if _USE_IRS is also defined. That said, I don't see anything setting _USE_IRS so onameser_compat.h would be included.
So if things have changed on more recent versions of AIX we'd need to know how. Its possible it simply isn't appropriate to include arpa/nameser_compat.h manually any longer on AIX. Either that or previously we really should have just done |
I am using AIX 7200-01-03-1720 and official release 1.14.0 release. |
basically looks the same, not sure why I'm not seeing that same issue on AIX 5. I really think the solution is to set _USE_IRS on AIX. I wonder if autotools doesn't already set that flag and its just something we ned to add to cmake. |
@bradh352 I am very unfamiliar with the code base but if you could explain in more detail, i could give it a try and test it. |
If you try the current git master, I've made the change for the CMakeLists.txt to define _USE_IRS on AIX. |
@bradh352 yes that compiles. Thanks for fixing this. |
That's just whatever your compiler and tools default to. No build system ever builds both 32bit and 64bit. From what I recall though, on AIX, pretty much everything honors the OBJECT_MODE environment variable and the valid values are/were 32 or 64. |
AIX attempts to include both nameser_compat.h and onameser_compat.h. It appears the proper fix is to define _USE_IRS so that only nameser_compat.h is used. Bug: c-ares#224 Fix By: Brad House (@bradh352)
Hi [00:49:11]W: [install] ld: 0711-317 ERROR: Undefined symbol: .ares_inet_pton Please help here. Thanks |
This issue and that version are several years old by now. Please try the latest
version and open a new issue if it still doesn't work.
|
c-ares 1.14.0 version was released on 16-feb-2018.This is working fine for windows and linux but for aix i am getting above mentioned errors. According to you, it is c-ares verison related issue or AIX version related issue ? |
I don't use AIX so I can't confirm. But, it should be easy for you to confirm
yourself.
|
I tried with c-ares 1.15.0 version.Getting the below errors after running the make command $ make Stop. |
@anshul-j why 1.15.0? The latest release is 1.16.1! |
I have tried compiling c-ares 1.16.1 also. getting the similar errors as c-ares 1.15.0 $ make |
Please open a new bug for a new issue.
|
i have opened a new bug 369 |
When trying to compile on AIX, I see the following error:
To compile, I did the following:
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.
The text was updated successfully, but these errors were encountered: