PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Linking warning

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
alexloksh



Joined: 24 Mar 2006
Posts: 1

PostPosted: Fri Mar 24, 2006 9:46 am    Post subject: Linking warning Reply with quote

I am linking my application an dgetting the following warning message:
warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking.

I need to link statically.
I also understand that I am linking dynamicall with NSS libraries.

But can I somehow to get rid of this message ?
Is any workaround exist ?

Thx,
Alexander
Back to top
View user's profile
brentl



Joined: 20 Jul 2004
Posts: 132

PostPosted: Tue Mar 28, 2006 4:05 pm    Post subject: Reply with quote

Hi Alexander,

I'm not sure I understand your question. Do you want to just not get the message, or actually build your app so that no dynamic, shared libraries are required? The PGI tools use the gnu linker ld, and you can investigate the command we use with the -v flag to the compiler. You might be able to change the linking behavior by the placement of the -Bstatic and -Bdynamic options to ld. What you want may require you to build your own versions of glibc...?

Let me know.

- Brent
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group