From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.43.88.73 with SMTP id az9mr18025505icc.5.1398173284535; Tue, 22 Apr 2014 06:28:04 -0700 (PDT) X-Received: by 10.140.101.147 with SMTP id u19mr47027qge.10.1398173284503; Tue, 22 Apr 2014 06:28:04 -0700 (PDT) Path: border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!c1no1934326igq.0!news-out.google.com!dz10ni19001qab.1!nntp.google.com!cm18no5067091qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 22 Apr 2014 06:28:04 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=105.237.162.39; posting-account=FlDDTgoAAAB5iCuW7fM5pP_RHQGC8krX NNTP-Posting-Host: 105.237.162.39 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: GLIBC_2.14 memcpy From: Ian Douglas Injection-Date: Tue, 22 Apr 2014 13:28:04 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Original-Bytes: 2125 Xref: number.nntp.dca.giganews.com comp.lang.ada:185936 Date: 2014-04-22T06:28:04-07:00 List-Id: Hi all So I write my first hello world program, and it runs fine. Upload to the se= rver, but it does not run there. ./Hello1: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./H= ello1) 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 every= thing else is happy with GLIBC_2.25. I can't find anything relevant in this newsgroup (surprising!), or on AdaC= ore'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=20 __asm__(".symver memcpy,memcpy@GLIBC_2.2.5"); While I am horrified at the necessity of doing something like that (especia= lly for a simple Hello World), how would I do this in Ada / Gnat? (A way to do it globally for C is here:=20 http://rjpower9000.wordpress.com/2012/04/09/fun-with-shared-libraries-versi= on-glibc_2-14-not-found/) Thanks, Ian