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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: anon@att.net Newsgroups: comp.lang.ada Subject: Re: GLIBC_2.14 memcpy Date: Wed, 23 Apr 2014 07:53:00 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: Reply-To: anon@att.net NNTP-Posting-Host: W+WfamX0ROlemCQzwluMKw.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: IBM NewsReader/2 2.0 Xref: news.eternal-september.org comp.lang.ada:19515 Date: 2014-04-23T07:53:00+00:00 List-Id: Why not use the HI-E (high integrity version) of "System-Memory_Copy" package which routines can be written Ada. Instead of using 'libC' gnat compile s-memcop then add "-largs s-memcop.o" at the end of gnat command line gnat make hello.adb -largs s-memcop.o In , Ian Douglas writes: >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