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.58.41.39 with SMTP id c7mr27738127vel.25.1398278271035; Wed, 23 Apr 2014 11:37:51 -0700 (PDT) X-Received: by 10.140.49.70 with SMTP id p64mr63955qga.21.1398278271006; Wed, 23 Apr 2014 11:37:51 -0700 (PDT) Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!m5no4720448qaj.1!news-out.google.com!dz10ni19326qab.1!nntp.google.com!cm18no5717745qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 23 Apr 2014 11:37:50 -0700 (PDT) In-Reply-To: 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 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: GLIBC_2.14 memcpy From: Ian Douglas Injection-Date: Wed, 23 Apr 2014 18:37:51 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Original-Bytes: 3342 Xref: number.nntp.dca.giganews.com comp.lang.ada:186039 Date: 2014-04-23T11:37:50-07:00 List-Id: hi All On Wednesday, 23 April 2014 09:53:00 UTC+2, an...@att.net wrote: > 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 Thanks for the suggestion. Results below. ~/1web/adatest1 $ gnat compile s-memcop gcc -gnatpg -c -I./ -I- /usr/gnat/lib/gcc/x86_64-pc-linux-gnu/4.7.4/adainclude/s-memcop.ads ~/1web/adatest1 $ ll total 564 -rwxr-xr-x 1 ian ian 547443 Apr 21 22:20 Hello1 -rw-r--r-- 1 ian ian 172 Apr 21 22:18 Hello1.adb -rw-r--r-- 1 ian ian 1574 Apr 22 14:25 Hello1.ali -rw-r--r-- 1 ian ian 1824 Apr 22 14:25 Hello1.o -rw-r--r-- 1 ian ian 695 Apr 22 14:25 hello.gpr -rw-r--r-- 1 ian ian 783 Apr 23 20:32 s-memcop.ali -rw-r--r-- 1 ian ian 1004 Apr 23 20:32 s-memcop.o ~/1web/adatest1 $ gnat make Hello1.adb -largs s-memcop.o gnatbind -x Hello1.ali gnatlink Hello1.ali s-memcop.o ~/1web/adatest1 $ ll total 564 -rwxr-xr-x 1 ian ian 547654 Apr 23 20:32 Hello1 -rw-r--r-- 1 ian ian 172 Apr 21 22:18 Hello1.adb -rw-r--r-- 1 ian ian 1574 Apr 22 14:25 Hello1.ali -rw-r--r-- 1 ian ian 1824 Apr 22 14:25 Hello1.o -rw-r--r-- 1 ian ian 695 Apr 22 14:25 hello.gpr -rw-r--r-- 1 ian ian 783 Apr 23 20:32 s-memcop.ali -rw-r--r-- 1 ian ian 1004 Apr 23 20:32 s-memcop.o ~/1web/adatest1 $ ./Hello1 Hello, cruel world! I am an Ada program with package use. =============== Upload to server, SSH in and make executable. [root@xaxint web]# ll total 560 -rw-r--r-- 1 web1 client1 547654 Apr 23 20:33 Hello1 -rwxr-xr-- 1 web1 client1 7358 Apr 15 15:28 favicon.ico -rwxr-xr-- 1 web1 client1 1861 Apr 15 15:28 index.html -rwxr-xr-- 1 web1 client1 14 Apr 15 15:28 robots.txt drwxr-xr-x 2 root root 4096 Apr 17 00:30 stats [root@xaxint web]# chmod 744 Hello1 [root@xaxint web]# ./Hello1 ./Hello1: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./Hello1) [root@xaxint web]# ============================= So end up with same issue.... thanks, Ian