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,a2b00634ab454a1a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-06 06:02:06 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!lsanca1-snf1!news.gtei.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3B45AA32.F85391A1@earthlink.net> From: "Marc A. Criley" Organization: Quadrus Corporation X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Gnat 3.13p and shared libraries on HP-UX References: <93172edb.0107060334.40218f28@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 06 Jul 2001 13:02:01 GMT NNTP-Posting-Host: 158.252.122.200 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 994424521 158.252.122.200 (Fri, 06 Jul 2001 06:02:01 PDT) NNTP-Posting-Date: Fri, 06 Jul 2001 06:02:01 PDT X-Received-Date: Fri, 06 Jul 2001 05:59:46 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:9545 Date: 2001-07-06T13:02:01+00:00 List-Id: Pierre Favier wrote: > > Hello, > > I am currently porting a piece of Ada code from Linux to HP-UX. > The build process creates shared libraries from the compiled Ada units > and then a main program which links against these libraries. > > Under Linux with gnat 3.13p everything works fine. > > Under HP-UX, the program links but during execution it seems to enter > an infinite loop somewhere when exceptions are raised (exceptions > which are normally handled by an appropriate exception block). > > Am I missing some special compiler options on HP-UX (I am compiling > with -O0 -g -gnatwu -gnatf) or is it something which is not working in > the HP-UX version ov 3.13p? I haven't done HP in a while, but isn't there supposed to be an -fPIC option when compiling code that's going into shared libraries? Check the "Creating an Ada Library" section of the GNAT User Guide. (I would, though, drop the -O0 option since there's no benefit to doing that, and -gnatf and -gnatwu have no effect on the generated code.) Marc A. Criley Senior Staff Engineer Quadrus Corporation www.quadruscorp.com