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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ddc946a0620cceed X-Google-Attributes: gid103376,public From: Alex Maranda Subject: Re: c2ada for Linux, has anyone got it to run on Linux? Date: 1999/02/03 Message-ID: <36B81ED1.15D4@spider.com>#1/1 X-Deja-AN: 440128895 Content-Transfer-Encoding: 7bit X-NNTP-Posting-Host: trevor.spider.com:194.217.109.83 References: <79741p$c18@drn.newsguy.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 918036381 disrupt:5098 NO-IDENT trevor.spider.com:194.217.109.83 Organization: Spider Software Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-02-03T00:00:00+00:00 List-Id: nabbasi@earthlink.net wrote: > > hi, > > has anyone get c2ada to run on Linux? > > I finsihed building it on Linux (after much tweeking) , but it > failes to run (seems like python library problem) : > > This is the final link step: > > $gcc ada_types.o aux_decls.o cbfe.o comment.o configure.o context.o fix_stmt.o > gen.o gen_stmt.o gen_expr.o gen_macros.o ada_perf.o ada_name.o format.o > initializer.o order.o print.o y.tab.o scan.o nodeop.o package.o c_perf.o > types.o stab.o stmt.o symset.o units.o anonymous.o localfunc.o libcbind.a \ > config.o -L/usr/lib/python1.5/lib-dynload > -L/usr/lib/python1.5/lib-stdwin -L/usr/lib/python1.5/lib-tk > -L/usr/lib/python1.5/config -lpython1.5 -lm -lnsl -ldl -lm -o cbfe > > > $./cbfe > symset.c, line 54, Assertion Failed: pymod_Symbol > > pymod_Symbol = PyImport_ImportModule("Symbol"); > assert(pymod_Symbol); ----> this fires > > c2ada uses pyhton. which I know very little about. Looks like you have an import problem; modules in python are imported from a list of paths specified by the sys.path variable. How to fix: 1. search in the installation a Symbol.py file (or Symbol.so, could be a shared object written in C). Locate its path. 2. export PYTHONPATH= (or setenv, whatever) 3. ./cbfe PS: you should really have asked this on comp.lang.python Cheers, Alex -- Alex Maranda mailto: amaranda@spider.com Spider Software Ltd. Tel: +44 (0)131 4757036 Edinburgh, UK http://members.xoom.com/Alex_Maranda STREAMS based communications protocols for embedded systems