Re: undefined symbol: PL_stack_sp

[email protected] (demerphq) Thu, 17 Jul 2014 08:45:31 +0200
Newsgroups perl.inline
Message-ID <CANgJU+UtsQVO1T6mCLJ7pkeJZs27KV4f7HRE5-zzoRvc2q2BjQ@mail.gmail.com>
--001a11c1e3dcada39e04fe5dfc29
Content-Type: text/plain; charset=UTF-8

On 14 July 2014 23:08, demerphq <[email protected]> wrote:

> Hi,
>
> I've been encountering the error in the subject line when I try to use
> Inline::C.
>
> For instance when I build the sample code from the Inline::C docs
>
> use Inline C;
> greet('Ingy');
> greet(42);
> __END__
> __C__
> void greet(char* name) {
>   printf("Hello %s!\n", name);
> }
>
> I get the following error:
>
> Had problems bootstrapping Inline module 'FOO_2bd2'
>
> Can't load '/git_tree/perl/Porting/_Inline/lib/auto/FOO_2bd2/FOO_2bd2.so'
> for module FOO_2bd2:
> /git_tree/perl/Porting/_Inline/lib/auto/FOO_2bd2/FOO_2bd2.so: undefined
> symbol: PL_stack_sp at /usr/lib/perl/5.14/DynaLoader.pm line 184.
>  at /usr/local/share/perl/5.14.2/Inline.pm line 526.
>
>
>  at - line 0.
> INIT failed--call queue aborted.
>
> I have searched around and there are CPANTester reports of failure due to
> this. But I only see one solution, on stackoverflow, that it has to do with
> 32bit versus 64bit, but it doesnt say what to do to fix and I somehow doubt
> it is relevant here.
>
> I did a complete rebuild and test of the latest Inline::C and all tests
> passed. So I am a bit confused what I am doing wrong.
>
> My perl version is:
>
> This is perl 5, version 14, subversion 2 (v5.14.2) built for
> x86_64-linux-gnu-thread-multi
>
> Complete -V output available on request.
>
> Any ideas on what to do to fix this?
>

Ping?

Yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

--001a11c1e3dcada39e04fe5dfc29
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On 1=
4 July 2014 23:08, demerphq <span dir=3D"ltr">&lt;<a href=3D"mailto:demerph=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br>=
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I&#39;ve been encounteri=
ng the error in the subject line when I try to use Inline::C.=C2=A0</div><d=
iv><br></div>For instance when I build the sample code from the Inline::C d=
ocs=C2=A0<div>

<br></div><div><div>use Inline C;</div><div>greet(&#39;Ingy&#39;);</div><di=
v>greet(42);</div><div>__END__</div><div>__C__</div><div>void greet(char* n=
ame) {</div><div>=C2=A0 printf(&quot;Hello %s!\n&quot;, name);</div><div>}<=
/div>

</div><div><br></div><div>I get the following error:<div><br></div><div>Had=
 problems bootstrapping Inline module &#39;FOO_2bd2&#39;<br></div><div><div=
><br></div><div>Can&#39;t load &#39;/git_tree/perl/Porting/_Inline/lib/auto=
/FOO_2bd2/FOO_2bd2.so&#39; for module FOO_2bd2: /git_tree/perl/Porting/_Inl=
ine/lib/auto/FOO_2bd2/FOO_2bd2.so: undefined symbol: PL_stack_sp at /usr/li=
b/perl/5.14/DynaLoader.pm line 184.</div>

<div>=C2=A0at /usr/local/share/perl/5.14.2/Inline.pm line 526.</div><div><b=
r></div><div><br></div><div>=C2=A0at - line 0.</div><div>INIT failed--call =
queue aborted.</div><div><br></div><div>I have searched around and there ar=
e CPANTester reports of failure due to this. But I only see one solution, o=
n stackoverflow, that it has to do with 32bit versus 64bit, but it doesnt s=
ay what to do to fix and I somehow doubt it is relevant here.</div>

<div><br></div><div>I did a complete rebuild and test of the latest Inline:=
:C and all tests passed. So I am a bit confused what I am doing wrong.</div=
><div><br></div><div>My perl version is:</div><div><br></div><div>This is p=
erl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread=
-multi<br>

</div><div><br></div><div>Complete -V output available on request.</div><di=
v><br></div><div>Any ideas on what to do to fix this?</div></div></div></di=
v></blockquote><div><br></div><div>Ping?</div><div><br></div><div>Yves=C2=
=A0<br>
</div></div><br clear=3D"all"><div><br></div>-- <br>perl -Mre=3Ddebug -e &q=
uot;/just|another|perl|hacker/&quot;
</div></div>

--001a11c1e3dcada39e04fe5dfc29--