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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,758d9807e32e6a81 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-13 20:50:18 PST Path: archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!drn From: peter@nowhere Newsgroups: comp.lang.ada Subject: Re: c2ada compilinG/runtime problem Date: 13 May 2001 19:54:27 -0700 Organization: Newsguy News Service [http://newsguy.com] Message-ID: <9dnhd3098r@drn.newsguy.com> References: <3AFE6C1F.178D6ECB@gmx.de> NNTP-Posting-Host: p-255.newsdawg.com X-Newsreader: Direct Read News v2.65 Xref: archiver1.sj.google.com comp.lang.ada:7472 Date: 2001-05-13T19:54:27-07:00 List-Id: 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