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 X-Received: by 2002:a02:3b6e:: with SMTP id i46mr25595096jaf.16.1546129719609; Sat, 29 Dec 2018 16:28:39 -0800 (PST) X-Received: by 2002:aca:cc0f:: with SMTP id c15mr389401oig.3.1546129719443; Sat, 29 Dec 2018 16:28:39 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!q69no241515itb.0!news-out.google.com!v71ni256ita.0!nntp.google.com!q69no241509itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 29 Dec 2018 16:28:39 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=93.28.198.175; posting-account=HFCrOQoAAABZD_f-UUbYHm3lJDIrh-UX NNTP-Posting-Host: 93.28.198.175 References: <3c1b3efc-90d8-4642-a72e-7ab4d7680921@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <06c84a2d-a9f0-4163-8b39-b38e1ac77081@googlegroups.com> Subject: Re: protobuff for Ada From: joakimds@kth.se Injection-Date: Sun, 30 Dec 2018 00:28:39 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:55126 Date: 2018-12-29T16:28:39-08:00 List-Id: > Joakim its still in non working alpha state and should not work. Hi Per! I have taken a look at this and the result can be found at: https://github.com/joakim-strandberg/temp_protobuf As you remember it wasn't possible to execute "./autogen.sh" without error = message. And the error message indicated that the "src/" directory was miss= ing. To improve on this situation I cloned the repository https://github.com/protocolbuffers/protobuf which contains the latest version of the official C++ protocol buffer compi= ler and took the "src/" directory. In addition I've taken the latest versio= n of "autogen.sh", "configure.ac", "Makefile.am" and "Makefile.in". Also I = took the directories "benchmarks" and "conformance" since these directories= were non-existant in the 2013 version of the protobuf implementation for A= da. In the 2013 protobuf repository the contents of directory "m4" was dele= ted and then replenished with the the latest versions from the official C++= repository. With these changes it was then possible to run "./autogen.sh" without error= and then successfully run "make". Next step after this was to compile the C++ code in the "compiler" director= y by executing "gprbuild -p -P protoc_ada.gpr". This was not possible due t= o compilation errors. To fix the compilation errors the following changes w= ere done to the C++ code: scoped_ptr --> std::unique_ptr scoped_array --> std::vector map --> std::map numeric_limits --> std::numeric_limits It seems the protocol buffer C++ code from 2013 had a dependency upon Boost= which has been removed. With the changes in place it is possible to compi= le the C++ code. The protoc_ada.gpr file also needed adjustments to be able= to link against libprotoc and libprotobuf that are created in the "src/.li= bs" directory when running make above. I hope this feedback will help accel= erate the Ada binding from "non working alpha state" into a "working alpha = state". Best regards, Joakim