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!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Building an encapsulated library that uses GNAT sockets under Windows Date: Sat, 23 Apr 2016 11:48:57 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <58a4942a-452a-4f32-b39b-f8f1fdbfe9fb@googlegroups.com> <68353b5d-94dc-4604-bdb1-00b48396ec1b@googlegroups.com> NNTP-Posting-Host: LMk7+sG0YqgPmReI4fVkAA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:30256 Date: 2016-04-23T11:48:57+02:00 List-Id: On 2016-04-23 11:20, Ahlan wrote: > The problem is not in Gprbuild.exe but in libexe/gprbuild/gprlib.exe > Have you tried building Gprlib from the git sources? - that might be a more elegant solution. Yes I did. When you build gprbuild, it also builds all other utilities including gprlib.exe. You can try it yourself. It is here: https://github.com/AdaCore/gprbuild There are two problems to fix to be able to do so: 1. OS_Lib does not contain Kill and Kill_Process_Tree gprclear requires. You can comment them out. Kill is relatively easy, you must add win32ada to the project and do: procedure Kill (Pid : Process_Id; Hard_Kill : Boolean) is use Win32.Winbase; use Win32.Winnt; Process : HANDLE; Result : Win32.BOOL; begin Process := OpenProcess ( PROCESS_ALL_ACCESS, 1, Win32.DWORD (Pid_To_Integer (Pid)) ); Result := TerminateProcess (Process, 1); end Kill; Kill_Process_Tree is more complicated, but could be just Kill (:-)) 2. There is a dynamic_constraint somewhere put on a type, that promptly crashes the compiler. I removed it. However I was not aware of the directory ...\libexec\gprbuild. I replaced only the executables in ...\bin. Thank you for the hint. Maybe that would do the trick. I will try it next week and report back. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de