Skip Menu |

This queue is for tickets about the RPerl CPAN distribution.

Report information
The Basics
Id: 121075
Status: resolved
Priority: 0/
Queue: RPerl

People
Owner: WBRASWELL [...] cpan.org
Requestors: garyfalos [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: /tmp/cctigPvq.o: In function `RPerl_object_property_init(sv*)':
To whom it may concern, I am trying to run a simple sample of RPerl sample bellow: #!/usr/bin/perl use RPerl; use strict; use warnings; our $VERSION = 0.001_000; # [[[ CRITICS ]]] ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils ## no critic qw(ProhibitInterpolationOfLiterals) # USER DEFAULT 3: allow anything print 'Hello Perl'; Although that RPerl is correctly installed: Reading '/home/user/.cpan/Metadata' Database was generated on Tue, 11 Apr 2017 07:53:44 GMT RPerl is up to date (2.450000). I am getting the following errors when I am trying to compile the script can you help me to find the solution? $ rperl -D test_2.pl in rperl, have $RPerl::DEBUG = 1 in rperl, have $RPerl::VERBOSE = 0 g++ -pthread -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xc++ -I"/home/tinyos/perl5" -I"/home/tinyos/perl5/lib/perl5" -Ilib -Wno-unused-variable -DNO_XSLOCKS -Wno-deprecated -std=c++11 -Wno-reserved-user-defined-literal -Wno-literal-suffix -D__CPP__TYPES -D__TYPE__INTEGER__LONG -D__TYPE__NUMBER__DOUBLE -O3 -fomit-frame-pointer -march=native -g -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -fPIC "-I/home/tinyos/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1/x86_64-linux/CORE" ./test_2.cpp -o ./test_2 -lperl [[[ SUBCOMPILE STDERR ]]] /tmp/ccfTajIH.o: In function `RPerl_object_property_init(sv*)': /home/tinyos/perl5/lib/perl5/RPerl/HelperFunctions.cpp:29: undefined reference to `PL_markstack_ptr' /home/tinyos/perl5/lib/perl5/RPerl/HelperFunctions.cpp:28: undefined reference to `PL_stack_sp' /home/tinyos/perl5/lib/perl5/RPerl/HelperFunctions.cpp:29: undefined reference to `PL_markstack_max' /home/tinyos/perl5/lib/perl5/RPerl/HelperFunctions.cpp:29: undefined reference to `PL_stack_base' /home/tinyos/perl5/lib/perl5/RPerl/HelperFunctions.cpp:30: undefined reference to `PL_stack_max' /tmp/ccfTajIH.o: In function `RPerl__diag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)': /home/tinyos/perl5/lib/perl5/RPerl.cpp:89: undefined reference to `PL_stack_sp' /home/tinyos/perl5/lib/perl5/RPerl.cpp:94: undefined reference to `PL_tmps_floor' /home/tinyos/perl5/lib/perl5/RPerl.cpp:94: undefined reference to `PL_tmps_ix' /home/tinyos/perl5/lib/perl5/RPerl.cpp:95: undefined reference to `PL_markstack_max' /home/tinyos/perl5/lib/perl5/RPerl.cpp:95: undefined reference to `PL_markstack_ptr' /home/tinyos/perl5/lib/perl5/RPerl.cpp:95: undefined reference to `PL_stack_base' /home/tinyos/perl5/lib/perl5/RPerl.cpp:95: undefined reference to `PL_stack_max' /tmp/ccfTajIH.o: In function `RPerl__verbose(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)': /home/tinyos/perl5/lib/perl5/RPerl.cpp:108: undefined reference to `PL_stack_sp' /home/tinyos/perl5/lib/perl5/RPerl.cpp:113: undefined reference to `PL_tmps_floor' /home/tinyos/perl5/lib/perl5/RPerl.cpp:113: undefined reference to `PL_tmps_ix' /home/tinyos/perl5/lib/perl5/RPerl.cpp:114: undefined reference to `PL_markstack_max' /home/tinyos/perl5/lib/perl5/RPerl.cpp:114: undefined reference to `PL_markstack_ptr' /home/tinyos/perl5/lib/perl5/RPerl.cpp:114: undefined reference to `PL_stack_base' /home/tinyos/perl5/lib/perl5/RPerl.cpp:114: undefined reference to `PL_stack_max' /tmp/ccfTajIH.o: In function `RPerl__warning(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)': /home/tinyos/perl5/lib/perl5/RPerl.cpp:127: undefined reference to `PL_stack_sp' /home/tinyos/perl5/lib/perl5/RPerl.cpp:132: undefined reference to `PL_tmps_floor' /home/tinyos/perl5/lib/perl5/RPerl.cpp:132: undefined reference to `PL_tmps_ix' /home/tinyos/perl5/lib/perl5/RPerl.cpp:133: undefined reference to `PL_markstack_max' /home/tinyos/perl5/lib/perl5/RPerl.cpp:133: undefined reference to `PL_markstack_ptr' /home/tinyos/perl5/lib/perl5/RPerl.cpp:133: undefined reference to `PL_stack_base' /home/tinyos/perl5/lib/perl5/RPerl.cpp:133: undefined reference to `PL_stack_max' collect2: error: ld returned 1 exit status ERROR ECOCOSU04, COMPILER, SUBCOMPILE: C++ compiler returned error code, please run again with `rperl -D` command or RPERL_DEBUG=1 environmental variable for error messages if none appear above, croaking at /home/tinyos/perl5/bin/rperl line 782. BAILING OUT: One or more problems encountered, see error messages above for details, dying I am running on LinuxOS: $ uname -a Linux localhost 4.4.0-73-generic #94-Ubuntu SMP Thu Apr 6 13:38:37 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Per version: $ perl -v This is perl 5, version 20, subversion 1 (v5.20.1) built for x86_64-linux (with 1 registered patch, see perl -V for more detail) Copyright 1987-2014, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. Have you resolved a similar case? Thanks in advance for your time and effort.
Hello Mr. Garyfalos, Thank you for your interest in RPerl! I believe you may be experiencing this error because you do not have libperl installed in your operating system. In Ubuntu, you can simply run the RPerl installer script and follow the directions at the command line: https://github.com/wbraswell/rperl/blob/master/script/rperl_installer.sh This will help you install libperl and anything else you may be missing. You can do this at the command line as a shortcut to download and run the installer: wget https://raw.githubusercontent.com/wbraswell/rperl/master/script/rperl_installer.sh; chmod a+x ./rperl_installer.sh; ./rperl_installer.sh Please let me know if this works for you. Perling, ~ Will the Chill On Tue Apr 11 12:34:29 2017, GARYFALOS wrote: Show quoted text
> To whom it may concern, > > I am trying to run a simple sample of RPerl sample bellow: > > #!/usr/bin/perl > > use RPerl; > use strict; > use warnings; > our $VERSION = 0.001_000; > > # [[[ CRITICS ]]] > ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers > RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & > print operator > ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: > allow single-quoted control characters & sigils > ## no critic qw(ProhibitInterpolationOfLiterals) # USER DEFAULT 3: > allow anything > > print 'Hello Perl'; > > Although that RPerl is correctly installed: > > Reading '/home/user/.cpan/Metadata' > Database was generated on Tue, 11 Apr 2017 07:53:44 GMT > RPerl is up to date (2.450000). > > I am getting the following errors when I am trying to compile the > script can you help me to find the solution? > > $ rperl -D test_2.pl > > > in rperl, have $RPerl::DEBUG = 1 > in rperl, have $RPerl::VERBOSE = 0 > > > g++ -pthread -fwrapv -fno-strict-aliasing -pipe -fstack-protector > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xc++ > -I"/home/tinyos/perl5" -I"/home/tinyos/perl5/lib/perl5" -Ilib -Wno- > unused-variable -DNO_XSLOCKS -Wno-deprecated -std=c++11 -Wno-reserved- > user-defined-literal -Wno-literal-suffix -D__CPP__TYPES > -D__TYPE__INTEGER__LONG -D__TYPE__NUMBER__DOUBLE -O3 -fomit-frame- > pointer -march=native -g -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" > -fPIC "-I/home/tinyos/perl5/perlbrew/perls/perl- > 5.20.1/lib/5.20.1/x86_64-linux/CORE" ./test_2.cpp -o ./test_2 -lperl > > > [[[ SUBCOMPILE STDERR ]]] > > /tmp/ccfTajIH.o: In function `RPerl_object_property_init(sv*)': > /home/tinyos/perl5/lib/perl5/RPerl/HelperFunctions.cpp:29: undefined > reference to `PL_markstack_ptr' > /home/tinyos/perl5/lib/perl5/RPerl/HelperFunctions.cpp:28: undefined > reference to `PL_stack_sp' > /home/tinyos/perl5/lib/perl5/RPerl/HelperFunctions.cpp:29: undefined > reference to `PL_markstack_max' > /home/tinyos/perl5/lib/perl5/RPerl/HelperFunctions.cpp:29: undefined > reference to `PL_stack_base' > /home/tinyos/perl5/lib/perl5/RPerl/HelperFunctions.cpp:30: undefined > reference to `PL_stack_max' > /tmp/ccfTajIH.o: In function > `RPerl__diag(std::__cxx11::basic_string<char, std::char_traits<char>, > std::allocator<char> >)': > /home/tinyos/perl5/lib/perl5/RPerl.cpp:89: undefined reference to > `PL_stack_sp' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:94: undefined reference to > `PL_tmps_floor' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:94: undefined reference to > `PL_tmps_ix' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:95: undefined reference to > `PL_markstack_max' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:95: undefined reference to > `PL_markstack_ptr' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:95: undefined reference to > `PL_stack_base' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:95: undefined reference to > `PL_stack_max' > /tmp/ccfTajIH.o: In function > `RPerl__verbose(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> >)': > /home/tinyos/perl5/lib/perl5/RPerl.cpp:108: undefined reference to > `PL_stack_sp' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:113: undefined reference to > `PL_tmps_floor' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:113: undefined reference to > `PL_tmps_ix' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:114: undefined reference to > `PL_markstack_max' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:114: undefined reference to > `PL_markstack_ptr' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:114: undefined reference to > `PL_stack_base' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:114: undefined reference to > `PL_stack_max' > /tmp/ccfTajIH.o: In function > `RPerl__warning(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> >)': > /home/tinyos/perl5/lib/perl5/RPerl.cpp:127: undefined reference to > `PL_stack_sp' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:132: undefined reference to > `PL_tmps_floor' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:132: undefined reference to > `PL_tmps_ix' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:133: undefined reference to > `PL_markstack_max' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:133: undefined reference to > `PL_markstack_ptr' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:133: undefined reference to > `PL_stack_base' > /home/tinyos/perl5/lib/perl5/RPerl.cpp:133: undefined reference to > `PL_stack_max' > collect2: error: ld returned 1 exit status > > ERROR ECOCOSU04, COMPILER, SUBCOMPILE: C++ compiler returned error > code, > please run again with `rperl -D` command or RPERL_DEBUG=1 > environmental variable for error messages if none appear above, > croaking at /home/tinyos/perl5/bin/rperl line 782. > > BAILING OUT: One or more problems encountered, see error > messages above for details, dying > > I am running on LinuxOS: > > $ uname -a > Linux localhost 4.4.0-73-generic #94-Ubuntu SMP Thu Apr 6 13:38:37 UTC > 2017 x86_64 x86_64 x86_64 GNU/Linux > > Per version: > > $ perl -v > > This is perl 5, version 20, subversion 1 (v5.20.1) built for x86_64- > linux > (with 1 registered patch, see perl -V for more detail) > > Copyright 1987-2014, Larry Wall > > Perl may be copied only under the terms of either the Artistic License > or the > GNU General Public License, which may be found in the Perl 5 source > kit. > > Complete documentation for Perl, including FAQ lists, should be found > on > this system using "man perl" or "perldoc perl". If you have access to > the > Internet, point your browser at http://www.perl.org/, the Perl Home > Page. > > Have you resolved a similar case? > > Thanks in advance for your time and effort.
I am closing this issue, as I believe it only applies to users who do not yet have libperl properly installed on their systems. I can re-open this issue if I am mistaken. Thanks! ~ Will