LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Inquiry:Incorrectly built binary.Needs to be fixed. (https://www.linuxquestions.org/questions/linux-newbie-8/inquiry-incorrectly-built-binary-needs-to-be-fixed-749488/)

hadimotamedi 08-22-2009 04:52 AM

Inquiry:Incorrectly built binary.Needs to be fixed.
 
Dear All
Can you please do me favor and let me know what is the cause of the following error message that I am getting when trying to run my application on my Linux server :
"Incorrectly built binary which accesses errno, h_errno or _res directly. Needs to be fixed."
Thank you in advance
Regards
H.Motamedi

neonsignal 08-23-2009 08:37 AM

If this is an application written or ported by you, it means that the code has explicitly declared at least one of these (errno, h_errno, or _res), probably using an extern statement. Direct access to these library variables has been deprecated because they do not work properly in a multithreaded context.

This can be dealt with. The 'errno' should be accessed via "#include <errno.h>". The functions to do with h_errno and _res are obsolete; 'getaddrinfo' and 'getnameinfo' should be used instead.


All times are GMT -5. The time now is 01:20 PM.