comp.lang.ada
 help / color / mirror / Atom feed
From: Alex Maranda <amaranda@spider.com>
Subject: Re: c2ada for Linux, has anyone got it to run on Linux?
Date: 1999/02/03
Date: 1999-02-03T00:00:00+00:00	[thread overview]
Message-ID: <36B81ED1.15D4@spider.com> (raw)
In-Reply-To: 79741p$c18@drn.newsguy.com

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=<path to file> (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




  reply	other threads:[~1999-02-03  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-02  0:00 c2ada for Linux, has anyone got it to run on Linux? nabbasi
1999-02-03  0:00 ` Alex Maranda [this message]
1999-02-03  0:00   ` nabbasi
1999-02-03  0:00     ` Dale Pontius
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox