[Parrot-users] undefined reference to `allocate_interpreter'

Gerd Pokorra gp at zimt.uni-siegen.de
Mon Sep 13 07:56:13 UTC 2010


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




More information about the Parrot-users mailing list