undefined symbol: PL_stack_sp

[email protected] (demerphq) Mon, 14 Jul 2014 23:08:03 +0200
Newsgroups perl.inline
Message-ID <CANgJU+VwiYx3kNg6R+K2qRro+A3Rr919EY7kQjpTKkRh=CHzYw@mail.gmail.com>
--001a11c13f44d41ea804fe2dafc9
Content-Type: text/plain; charset=UTF-8

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?

cheers.
Yves

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

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

<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><br></div><=
div>cheers.</div><div>Yves</div><div><br></div>-- <br>perl -Mre=3Ddebug -e =
&quot;/just|another|perl|hacker/&quot;
</div></div></div>

--001a11c13f44d41ea804fe2dafc9--