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-Thread: 103376,d99dc61bb22990d2 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder2.cambriumusenet.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.87.MISMATCH!news.astraweb.com!border2.a.newsrouter.astraweb.com!newsfeed.kpn.net!pfeed09.wxs.nl!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Packaging and linking shared Ada libraries Date: Mon, 07 Mar 2011 07:15:06 +0000 Organization: A noiseless patient Spider Message-ID: References: <4d746dde$0$10593$742ec2ed@news.sonic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx03.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="30067"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QHkk11PtAotZWlpre0iyDw8xrWxfu9Dg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:iUxgwKNtvrf/WEoCT5xqiESQllY= sha1:HkVOE5xGEup0Cv8h5+DymOmofrQ= Xref: g2news2.google.com comp.lang.ada:18903 Date: 2011-03-07T07:15:06+00:00 List-Id: R Tyler Croy writes: > I'm trying to figure out how to package up and use XML/Ada for > openSUSE and I'm having a bit of trouble trying to figure what > actually needs to be packaged. > > Right now I'm packaging up the .so and the .ads files and trying to > use them but to no avail: > > tyler@spinach:~/source> gnatmake -aI/usr/include/xmlada -aO/usr/lib64 test.adb -largs -lxmlada > gnatmake: "dom-readers.adb" not found > tyler@spinach:~/source> Tyler, Is there any reason why you don't just ./configure make make install ? I end up with (more or less) the following under $prefix: - include/xmlada/ - lib/ - lib/gnat/ - lib/xmlada/relocatable/ - lib/xmlada/static/ and the GPRs are exactly where GNAT built for $prefix expects them. I'm not sure of the exact rules for when the Ada source files in the library require .adb's, but certainly they're needed for generics and where the spec uses pragma Inline. I think you need to make sure the corresponding .alis are read-only. A good deal of the work is done by library gpr's, see http://www.adacore.com/wp-content/files/auto_update/gprbuild-docs/html/gprbuild_ug.html#Library-Projects