Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-22-2009, 04:52 AM   #1
Registered: Aug 2009
Posts: 228

Rep: Reputation: 30
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
Old 08-23-2009, 08:37 AM   #2
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Buster (Fluxbox WM)
Posts: 1,391
Blog Entries: 52

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Built on Linux. Built on *nix. The OS X application model. drhart4000 Linux - General 2 06-10-2009 04:27 AM
Bug in 8.04, fixed in 8.10 - How to get fixed in 8.04 which is LTS? taylorkh Ubuntu 4 02-28-2009 05:17 PM
Redhat Linux Enterprise 3 AS - Incorrectly built binary which accesses errno or h_err patvejano Linux - Enterprise 0 11-15-2005 11:32 PM
built-to-order PC or ready-built PC from well-known companies? kpachopoulos General 6 11-03-2004 03:14 PM
Binary Built problem Maranello Linux - Newbie 2 12-03-2003 05:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration