comp.lang.ada
 help / color / mirror / Atom feed
* GLIBC_2.14  memcpy
@ 2014-04-22 13:28 Ian Douglas
  2014-04-22 16:54 ` Tero Koskinen
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Ian Douglas @ 2014-04-22 13:28 UTC (permalink / raw)


Hi all

So I write my first hello world program, and it runs fine. Upload to the server, but it does not run there.

./Hello1: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./Hello1)

Dev box is Gentoo linux, server is CentOS 6.2

Google shows many C programmers complaining about similar issue.

Some analysis shows the problem to be memcpy wanting GLIBC_2.14 while everything else is happy with GLIBC_2.25.

I  can't find anything relevant in this newsgroup (surprising!), or on AdaCore's site (program was built with GPS), so I was wondering if anyone has a workaround ... the C people add a line to force the compiler to use a more recent version of memcpy, as per 

__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");

While I am horrified at the necessity of doing something like that (especially for a simple Hello World), how would I do this in Ada / Gnat?

(A way to do it globally for C is here: 
http://rjpower9000.wordpress.com/2012/04/09/fun-with-shared-libraries-version-glibc_2-14-not-found/)

Thanks, Ian


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-04-28 12:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-22 13:28 GLIBC_2.14 memcpy Ian Douglas
2014-04-22 16:54 ` Tero Koskinen
2014-04-22 19:41   ` Ian Douglas
2014-04-22 21:58     ` Jeffrey Carter
2014-04-23  7:47 ` Stephen Leake
2014-04-23 11:11   ` G.B.
2014-04-23 18:30   ` Ian Douglas
2014-04-23  7:53 ` anon
2014-04-23 18:37   ` Ian Douglas
2014-04-24  9:56     ` anon
2014-04-26 20:10       ` Ian Douglas
2014-04-28 12:23         ` anon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox