[Parrot-users] undefined reference to `allocate_interpreter'

Brian Xue brxue.cn at gmail.com
Mon Sep 13 08:21:44 UTC 2010


By the way, following is the checking result of Configure.pl

init::manifest -      Check
MANIFEST.....................................done.
init::defaults -      Set Configure's default
values.....................done.
init::install -       Set up installation
paths..........................done.
init::hints -         Load platform and local hints
files................done.
init::headers -       Find header files distributed with
Parrot..........done.
inter::progs -        Determine what C compiler and linker to
use........done.
inter::make -         Is make
installed...................................yes.
inter::lex -          Is lex
installed................................skipped.
inter::yacc -         Is yacc
installed...............................skipped.
auto::gcc -           Is your C compiler actually gcc................yes,
3.4.
auto::glibc -         Is GNU libc
installed...............................yes.
auto::backtrace -     Does libc have the backtrace*
functions.............yes.
auto::msvc -          Is your C compiler actually Visual
C++..........skipped.
auto::attributes -    Detect compiler
attributes.........................done.
auto::warnings -      Detect supported compiler
warnings.................done.
auto::arch -          Determine CPU architecture and
OS..................done.
auto::cpu -           Generate CPU specific
stuff........................done.
init::optimize -      Enable
optimization.................................yes.
inter::shlibs -       Determine flags for building shared
libraries.....-fPIC.
inter::libparrot -    Should parrot link against a shared
library.........yes.
inter::charset -      Which charset files should be compiled
in..........done.
inter::encoding -     Which encoding files should be compiled
in.........done.
inter::types -        What types should Parrot
use.......................done.
auto::ops -           Which opcode files should be compiled
in...........done.
auto::pmc -           Which pmc files should be compiled
in..............done.
auto::headers -       Probe for C
headers................................done.
auto::sizes -         Determine some
sizes...............................done.
auto::byteorder -     Compute native byteorder for
wordsize.....little-endian.
auto::va_ptr -        Test the type of
va_ptr........................register.
auto::format -        What formats should be used for
sprintf............done.
auto::isreg -         Does your C library have a working
S_ISREG..........yes.
auto::jit -           Determine JIT
capability.............................no.
auto::frames -        Determine call frame building
capability.............no.
auto::inline -        Does your compiler support
inline...................yes.
auto::gc -            Determine allocator to
use.........................done.
auto::memalign -      Does your C library support
memalign................yes.
auto::signal -        Determine some signal
stuff........................done.
auto::socklen_t -     Determine whether there is
socklen_t................yes.
auto::neg_0 -         Determine whether negative zero can be
printed......yes.
auto::env -           Does your C library have setenv /
unsetenv.........both.
auto::thread -        Does your system has
thread.........................yes.
auto::gmp -           Does your platform support
GMP......................yes.
auto::readline -      Does your platform support
readline.................yes.
auto::pcre -          Does your platform support
pcre....................done.
auto::opengl -        Does your platform support OpenGL.......yes, freeglut
4.
auto::zlib -          Does your platform support
zlib.....................yes.
auto::gettext -       Does your configuration include
gettext.............yes.
auto::snprintf -      Test
snprintf......................................done.
auto::perldoc -       Is perldoc
installed................................yes.
auto::pod2man -       Is pod2man
installed................................yes.
auto::ctags -         Is (exuberant) ctags
installed......................yes.
auto::revision -      Determine Parrot's
revision........................done.
auto::icu -           Is ICU installed..........................no
icu-config.
gen::config_h -       Generate C
headers.................................done.
gen::core_pmcs -      Generate core pmc
list.............................done.
gen::opengl -         Generating OpenGL
bindings.........................done.
gen::makefiles -      Generate makefiles and other build
files...........done.
gen::platform -       Move platform files into
place.....................done.
gen::config_pm -      Record configuration data for later
retrieval......done.
Okay, we're done!

2010/9/13 Brian Xue <brxue.cn at gmail.com>

> Hello Gerd,
>
> Thanks for your response.
>
> I didn't use the "-prefix" option, but I can try it as you suggested.
>
> Brian
>
>
> 2010/9/13 Gerd Pokorra <gp at zimt.uni-siegen.de>
>
> Hello,
>>
>> I think you use "perl Configure.pl --gen-parrot" with the --prefix
>> option. Without the --prefix option Parrot is install in the "install"
>> subdirectory of the Rakudo sources. If you use the prefix option you
>> must specify a absolute path. (It do not work with a relativ path.)
>>
>>  > perl Configure.pl --gen-parrot --prefix=/home/comet/rak_par_inst_dir
>>
>> -- Gerd
>>
>> Am Montag, den 13.09.2010, 07:42 +0200 schrieb Brian Xue:
>> > Hello,
>>
>> > I downloaded Rakudo Star 2010.08 release from github.com, but it report
>> > the following errors when executes "perl Configure.pl --gen-parrot", can
>> > anyone help? It seems it's compiling parrot at this time.
>> > where does parrot_config locate in rakudo star's parrot directory? when
>> > doing configure, it executes "/usr/bin/perl
>> > tools/build/parrot_config_c.pl --mini > src/null_config.c", may it
>> > should be "/usr/bin/perl tools/build/parrot_config_c.pl --mini >
>> > src/parrot_config.c"?
>> >
>> > gcc -o miniparrot src/main.o src/null_config.o \
>> > -Wl,-rpath=/home/comet/Rakudo/rakudo-star-2010.07/parrot-2.6.0/blib/lib
>> > -L/home/comet/Rakudo/rakudo-star-2010.07/parrot-2.6.0/blib/lib -lparrot
>> > -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lrt -Wl,-E
>> > src/main.o(.text+0xcf): In function `main':
>> > src/main.c:126: undefined reference to `allocate_interpreter'
>> > src/main.o(.text+0x17f):src/main.c:137: undefined reference to
>> > `initialize_interpreter'
>> > src/main.o(.text+0x1b1):src/main.c:522: undefined reference to
>> > `Parrot_cmd_options'
>> > src/main.o(.text+0x1c5):src/main.c:522: undefined reference to
>> `longopt_get'
>> > src/main.o(.text+0x201):src/main.c:480: undefined reference to
>> > `Parrot_get_runtime_path'
>> > src/main.o(.text+0x215):src/main.c:480: undefined reference to
>> > `Parrot_io_printf'
>> > src/main.o(.text+0x26a):src/main.c:496: undefined reference to
>> > `Parrot_set_flag'
>> > src/main.o(.text+0x285):src/main.c:489: undefined reference to
>> `Parrot_warn'
>> > src/main.o(.text+0x299):src/main.c:512: undefined reference to
>> > `Parrot_setwarnings'
>> > src/main.o(.text+0x309):src/main.c:507: undefined reference to
>> > `Parrot_lib_add_path_from_cstring'
>> > src/main.o(.text+0x422):src/main.c:461: undefined reference to
>> > `Parrot_set_debug'
>> > src/main.o(.text+0x65b):src/main.c:142: undefined reference to
>> > `Parrot_set_trace'
>> > src/main.o(.text+0x667):src/main.c:143: undefined reference to
>> > `Parrot_set_run_core'
>> > src/main.o(.text+0x676):src/main.c:144: undefined reference to
>> > `Parrot_str_new'
>> > src/main.o(.text+0x681):src/main.c:144: undefined reference to
>> > `Parrot_set_executable_name'
>> > src/main.o(.text+0x692):src/main.c:146: undefined reference to
>> `imcc_run'
>> > src/main.o(.text+0x69e):src/main.c:152: undefined reference to
>> > `Parrot_destroy'
>> > src/main.o(.text+0x6a8):src/main.c:153: undefined reference to
>> `Parrot_exit'
>> > src/main.o(.text+0x70b):src/main.c:149: undefined reference to
>> > `imcc_run_pbc'
>> > src/null_config.o(.text+0xd): In function `Parrot_set_config_hash':
>> > src/null_config.c:29: undefined reference to
>> > `Parrot_set_config_hash_internal'
>> > collect2: ld returned 1 exit status
>> > gmake: *** [miniparrot] Error 1
>> > Command failed (status 512): gmake install-dev
>> > ===SORRY!===
>> > Unable to locate parrot_config
>> > To automatically build the version of Parrot that came with this
>> > distribution (2.6.0), try re-running Configure.pl with the
>> > '--gen-parrot' option. Or, use the '--parrot-config' option to
>> > explicitly specify the location of parrot_config to be used to
>> > build Rakudo Star.
>> >
>> >
>> ------------------------------------------------------------------------------------------
>> > My system info is as follows:
>> > [brxue at linux ~]$ lsb_release -a
>> > LSB Version:
>> >
>> :core-3.0-amd64:core-3.0-ia32:core-3.0-noarch:graphics-3.0-amd64:graphics-3.0-ia32:graphics-3.0-noarch
>> > Distributor ID: RedHatEnterpriseAS
>> > Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 7)
>> > Release: 4
>> > Codename: NahantUpdate7
>> >
>> > And there is no previous parrot version installed in my machine.
>> >
>> > Thank you all,
>> >
>> > Brian
>> >
>> > _______________________________________________
>> > Parrot-users mailing list
>> > Parrot-users at lists.parrot.org
>> > http://lists.parrot.org/mailman/listinfo/parrot-users
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.parrot.org/pipermail/parrot-users/attachments/20100913/e3adc5ca/attachment-0001.html>


More information about the Parrot-users mailing list