comp.lang.ada
 help / color / mirror / Atom feed
From: peter@nowhere <peter_member@newsguy.com>
Subject: Re: c2ada compilinG/runtime problem
Date: 13 May 2001 19:54:27 -0700
Date: 2001-05-13T19:54:27-07:00	[thread overview]
Message-ID: <9dnhd3098r@drn.newsguy.com> (raw)
In-Reply-To: 3AFE6C1F.178D6ECB@gmx.de

In article <3AFE6C1F.178D6ECB@gmx.de>, Henrik says...
>
>Hi everybody,
>I have recompiled the c2ada application on Red Hat 6.1
>with gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>and everything worked right.
>
>Now I have started c2ada by typing:
>
>c2ada hallo.c
>
>The result is that I got the error:
>
>symset.c, line 52, Assertion Failed: pymod_Symbol
>
>It would be very nice if someone can help me to make
>c2ada runable. I have also tried to let run a pre-
>compiled binary of c2ada. The same error came up.
>

it sounds like you have a python library issue.

You need to set env variable for pyhon befor running c2ada, I think
the variable is $PYTHONHOME to point to where python is installed or
to where the python libraries are.

If you look at symset.c 
----------------------------

static PyObject * pymod_Symbol;  

 pymod_Symbol = PyImport_ImportModule("Symbol");
    assert(pymod_Symbol);


oSymbol = PyObject_GetAttrString(pymod_Symbol, "oSymbol");
    assert(oSymbol);
      
------------------------------------

so the code seems to load a library, then tries to read the value
of a symbol from that library.

Are you using the correct python version with c2ada? I think
c2ada was build against a specific python library 1.5, but it could
work also with python 2.0.


also do this

PYTHONPATH=/home/c2ada  <---- where you installed phython.
export PYTHONPATH

may be that will help :)

There should be a readme file that talk about all of this, I think
the Ada for linux folks have an RPM build of c2ada but I could be wrong.

/p




  reply	other threads:[~2001-05-14  2:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-13 11:12 c2ada compilinG/runtime problem Henrik Quintel
2001-05-14  2:54 ` peter [this message]
2001-05-14 19:12   ` Henrik Quintel
replies disabled

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