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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b70281e9df653875 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-19 00:14:50 PST Message-ID: <3FBB2585.2010104@nowhere.com> Date: Wed, 19 Nov 2003 16:10:45 +0800 From: Adrian Hoe User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.4.1) Gecko/20020518 Netscape6/6.2.3 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gcc/gnat 3.3 References: <3f8fff8b$1_1@news.tm.net.my> <3f98ec41_1@news.tm.net.my> <3f9ded55$1_2@news.tm.net.my> <3f9e8c01$1_2@news.tm.net.my> <_MDnb.37361$mZ5.190069@attbi_s54> <3fa348e4$1_1@news.tm.net.my> <3FA621A2.8020205@nowhere.com> <3FA9D6D1.9050803@nowhere.com> <3FA9DA39.3090607@nowhere.com> <3FA9EF9E.7040301@nowhere.com> <3FAA2DD5.5040503@nowhere.com> <3FAB1B17.8000307@nowhere.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 219.95.193.86 X-Original-NNTP-Posting-Host: 219.95.193.86 X-Trace: news.tm.net.my 1069229635 219.95.193.86 (19 Nov 2003 16:13:55 +0800) Organization: TMnet Malaysia Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!news1.tm.net.my Xref: archiver1.google.com comp.lang.ada:2669 Date: 2003-11-19T16:10:45+08:00 List-Id: Andreas Almroth wrote: > Adrian Hoe wrote: > >> >> After gmake gnatlib-shared, I got these in ada/rts: >> >> 22 -rw-r--r-- 1 byhoe staff 10436 Nov 7 10:56 libgmem.a >> 2112 -rwxr-xr-x 1 byhoe staff 1066876 Nov 7 10:56 >> libgnarl-3.15.so >> 2224 -rw-r--r-- 1 byhoe staff 1123904 Nov 7 10:44 libgnarl.a >> 2 lrwxrwxrwx 1 byhoe staff 16 Nov 7 10:56 libgnarl.so >> -> libgnarl-3.15.so* >> 10992 -rwxr-xr-x 1 byhoe staff 5613388 Nov 7 10:56 >> libgnat-3.15.so >> 12240 -rw-r--r-- 1 byhoe staff 6250572 Nov 7 10:44 libgnat.a >> 2 lrwxrwxrwx 1 byhoe staff 15 Nov 7 10:56 libgnat.so >> -> libgnat-3.15.so* >> >> >> Notice the 3.15 in libgnat and libgnarl. Is this normal? Should I >> rename to 3.3.2? >> > > Normal I guess, probably the stuff from gnat 3.15, but who knows... > >> I'm still not able to dynamic link. What is still missing? > > > Have you tried > export LD_OPTIONS='-R... -L...' > Replace ... with the path to the dynamic libraries > Try compile your app, and check with ldd command if it references the *.so. > Also check the gnat manual for command line options run-time options. Nope! LD_OPTIONS alone does not work. I need -lgnat -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/adalib --RTS=/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/ for gnatmake. Just checking of I have LD_OPTIONS correct: $ env LD_OPTIONS=-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/ -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/adalib Is there a way to save -largs and -L each time I use gnatmake. I just want to use gnatmake without the hassle to type -l and -L everytime so let's forget about Makefile. -- Adrian Hoe m a i l b o x AT a d r i a n h o e . c o m