Mailing list archives : pcb-rnd

ID:3239
From:ge...@igor2.repo.hu
Date:Tue, 6 Aug 2019 06:16:24 +0200 (CEST)
Subject:Re: [pcb-rnd] fungw: re-installation required
in-reply-to:3237 from James Battat <jb...@wellesley.edu>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
 
--0-1104281318-1565064984=:2358
Content-Type: TEXT/PLAIN; charset=UTF-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
 
 
 
On Mon, 5 Aug 2019, James Battat wrote:
 
> OK -- verified the same output for c, lua, and tcl.
 
Cool!
 
> But have problems with perl and python:
>
> =3D=3D=3D perl =3D=3D=3D
> ?$ LNG=3Dperl SCRIPT=3Dhello.pl ./test_script
>
> ### Set up perl (hello.pl)
>
> ### Call hello()
> ERROR: hello() not found.
> res=3D-1
 
This probably means your version if perl won't work. Perl has a rather=20
bad API and I had to do some hacking to get the minimal requirements done=
=20
by perl. This is documented (among with the versions I've seen it=20
working) at:
 
http://repo.hu/projects/fungw/lang_perl.html
 
 
> =3D=3D=3D python =3D=3D=3D
> $ LNG=3Dpython SCRIPT=3Dhello.py ./test_script
>
> ### Set up python (hello.py)
> hello world from init 33
>
> ### Call hello()
> Segmentation fault: 11
>
 
Segfault, cool! The python API is a PITA too, I think I would debug this=20
only if I had SSH access to a target system where everything is=20
preinstalled.
 
> The perl output is the same as for languages that configure did not find =
(e.g.
> python3).=C2=A0 But that's strange since ./configure did find perl.=C2=A0=
 From
> config.log:
>
>
> ###report### Checking for perl...=C2=A0 find_perl: trying to find perl...
> <<<snip>>>
> ###report### OK ('', '-fno-common -DPERL_DARWIN -mmacosx-version-min=3D10=
=2E12
> -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include
> -DPERL_USE_SAFE_PUTENV
> -I/usr/local/Cellar/perl/5.30.0/lib/perl5/5.30.0/darwin-thread-multi-2lev=
el/CORE'
> and '-mmacosx-version-min=3D10.12 -fstack-protector-strong -L/usr/local/l=
ib
> -L/usr/local/Cellar/perl/5.30.0/lib/perl5/5.30.0/darwin-thread-multi-2lev=
el/CORE
> -lperl -lpthread -ldl -lm -lutil\
> =C2=A0-lc')
>
 
Most probably the API changed enough that the fungw binding doesn't work=20
with it anymore.
 
Regards,
 
Igor2
 
--0-1104281318-1565064984=:2358--
 

Reply subtree:
3239 Re: [pcb-rnd] fungw: re-installation required from ge...@igor2.repo.hu