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,c76d41708bf94f23 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!k10g2000prh.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: c2ada bug report filed Date: Fri, 1 Apr 2011 21:45:40 -0700 (PDT) Organization: http://groups.google.com Message-ID: <61c5b143-0617-4fc9-a395-14bb8530cc96@k10g2000prh.googlegroups.com> References: <3a657bf9-89ed-45c8-bd4d-f226cb3bc5fa@w7g2000pre.googlegroups.com> NNTP-Posting-Host: 75.172.189.65 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1301719541 27378 127.0.0.1 (2 Apr 2011 04:45:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 2 Apr 2011 04:45:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k10g2000prh.googlegroups.com; posting-host=75.172.189.65; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-US) AppleWebKit/531.21.8+(KHTML, like Gecko, Safari/528.16) (null),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:18681 Date: 2011-04-01T21:45:40-07:00 List-Id: On Mar 30, 1:03=A0pm, Simon Wright wrote: > Simon Wright writes: > > Jerry writes: > > >> I made a bug report for c2ada at > >>http://sourceforge.net/tracker/?func=3Ddetail&aid=3D3259603&group_id=3D= 2035... > > >> This isn't =A0super important but I was going to try to use it to > >> convert a 900-line C example file for the PLplot project. > > >> I was trying to build on OS X 10.6.6 and ran into C errors relating to > >> undeclared variables. > > > SF changed its wiki software a while back, with the result that the > > c2ada web site is now very uninformative. > > > You should be using the 'portability' branch: > > > * go to branches/portability in your checkout > > * edit setup (you'll need to change the Python version, at least) > > * ./setup > > * make > > > Bets of luck! > > =A0 ^^^^ > =A0 Best (of course). > > I've now merged the portability branch back into trunk, and updated > setup so it chooses Python 2.6. Builds OK here (10.6.7, XCode 3.2.6). > > I've restored the wiki content, but have yet to make it the standard > home page (and there are still bits of it I don't understand; it got > majorly mangled somewhere along the line before I got hold of it). Thanks for the updates, Simon. I don't expect much handholding here but I thought that I should at least report my results. I updated my system to OS X 10.6.7 and Xcode to 3.2.6. After downloading c2ada from SVN, rev 23, I cd-ed to the distribution directory and built by ./setup and make which created c2ada. I then ran c2ada (still cd-ed to the distribution dir) on two very small C programs in another directory. The first one int main(void) { int a; a =3D 1; return 0; } resulted in a useful Ada package. However, the second one #include int main(void) { printf("Hello World\n"); return 0; } resulted in just a skeleton Ada package with no useful lines. (Other files were also created.) The terminal output had a few lines that looked troublesome. I tried with -I/usr/include which is where stdio.h is stored but it made no difference in the output, at least with respect to the corresponding Ada package. Jerry