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-08 14:30:17 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3B48C44D.886CF16F@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> <3B45AA32.F85391A1@earthlink.net> <93172edb.0107080156.22e37181@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 08 Jul 2001 21:30:12 GMT NNTP-Posting-Host: 158.252.122.226 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 994627812 158.252.122.226 (Sun, 08 Jul 2001 14:30:12 PDT) NNTP-Posting-Date: Sun, 08 Jul 2001 14:30:12 PDT X-Received-Date: Sun, 08 Jul 2001 14:27:55 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:9644 Date: 2001-07-08T21:30:12+00:00 List-Id: Pierre Favier wrote: > > "Marc A. Criley" wrote: > > 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.) > > > > It was a mistake on my part: I did compile with -fPIC. I also tried > with -O2 with the same result. > > For further clarification, it is not the runtime I am trying to > dynamically link in my program but libraries of code belonging to my > application. Yes, that's what I understood. Did you call adainit and adafinal? (Just asking the obvious here...based on personal past experience :-) Can you successfully build a small, test library to make sure that works? Marc