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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Mathpaqs release 13-Mar-2018 Date: Fri, 16 Mar 2018 17:54:37 +0000 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="baebf2bbe04253dca3258e26aa150792"; logging-data="21929"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iV5qGzE0Hfu/IayvXXJBpwHDPl+WJFa8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:TPAopNduoNyIZp968nj2ohWd31U= sha1:ZtPPVT0EgdrTGCt37lKJGp4XFNE= Xref: reader02.eternal-september.org comp.lang.ada:51033 Date: 2018-03-16T17:54:37+00:00 List-Id: "Vincent D." writes: > Therefore I downloaded the file : zipada53.zip and tried to build > unzipada but it failed on OS X with the following error message : > > ld: library not found for -lwin32ada > > collect2: error: ld returned 1 exit status > > gprbuild: link of unzipada.adb failed > > How can I build unzipada under OS X ? zipada.txt says UnZipAda uses a procedure from an extension to Ada.Directories for setting time stamps of extracted files. This extension in its turn uses a system-specific call. You can replace the call to Set_Modification_Time by null and remove the line with Ada_Directories_Extensions to get a totally portable tool using only Zip-Ada and Ada standard libraries. Then built OK for me with $ gprbuild -p -XBuild_Mode=Debug unzipada.adb (the default is Fast, and that uses the linker flag -gc-sections, which macOS's ld doesn't understand, it's a GNU ld facility.) Unfortunately the resulting tool only printed out its help message ...