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:4f03:: with SMTP id c3mr25857864jab.13.1546129660546; Sat, 29 Dec 2018 16:27:40 -0800 (PST) X-Received: by 2002:aca:5884:: with SMTP id m126mr388836oib.4.1546129660382; Sat, 29 Dec 2018 16:27:40 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!2.eu.feeder.erje.net!4.us.feeder.erje.net!feeder.erje.net!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!q69no241413itb.0!news-out.google.com!v71ni256ita.0!nntp.google.com!q69no241411itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 29 Dec 2018 16:27:40 -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: <061d90d3-385c-44d6-9be8-0428570199db@googlegroups.com> Subject: Re: protobuff for Ada From: joakimds@kth.se Injection-Date: Sun, 30 Dec 2018 00:27:40 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:55125 Date: 2018-12-29T16:27:40-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 when running ma= ke above. I hope this feedback will help accelerate the Ada binding from "non working= alpha state" into a "working alpha state". Best regards, Joakim