Bill Allombert on Fri, 29 Jul 2011 12:15:51 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: gp2c trouble?


On Fri, Jul 29, 2011 at 12:43:39AM -0400, Charles Greathouse wrote:
> I just built and installed the latest versions of gp and gp2c
> 
> GP/PARI CALCULATOR Version 2.6.0 (development git-982909e)
> 
> (there's no version number on gp2c that I can find, but it's the git
> version from an hour ago).  gp runs and passed the bench, and gp2c
> similarly runs and seems to have access to the 2.6.0 functions:
> 
> $ gp2c -l | grep 'ellheegner'
> ellheegner ellheegner G
> 
> But when I try to load my gp2c file in gp it fails:
> 
> \r auto.gp.so
>   ***   Warning: auto.gp.so is not a GP binary file.
>   ***   error opening input file: `auto.gp.so'.
>   ***   Break loop: type 'break' to go back to GP

You should do 
\r auto.gp.run
instead. Using \r to read shared library cannot work.

> I get a similar error if I use gp2c-run:
> 
> $ gp2c-run auto.gp.c
> 
> /auto.gp.so: cannot open shared object file: No such file or directory
> 
>   ***   at top-level: install("rev","GD10,
>   ***                 ^--------------------
>   *** install: couldn't open dynamic library '/auto.gp.so'.
>   ***   Break loop: type 'break' to go back to GP
> 
> auto.gp.so exists and looks normal to me in a hex editor.  What could
> be going wrong?

Your install() command is missing a dot before the slash. It should be
"./auto.gp.so"
and not
"/auto.gp.so"

Cheers,
Bill.