[Ottawa-pm] Perl 5 to 6 tutorials

Yanick Champoux yanick at babyl.dyndns.org
Tue Oct 14 18:42:53 PDT 2008


Michael P. Soulier wrote:
> On 12/10/08 Yanick Champoux said:
> 
>> 	I would expect Perl 5.8 to be just fine for the task (and it's 
>> 	exactly what is required within Parrot's Makefile.PL).  At which point of 
>> the build process did it choke?
> 
> During the link. 
> 
> gcc -o miniparrot src/main.o src/null_config.o \
> -Wl,-rpath=/home/msoulier/downloads/parrot-0.7.1/blib/lib
> -L/home/msoulier/downloads/parrot-0.7.1/blib/lib -lparrot  -lresolv -lnsl -ldl
> -lm -lcrypt -lutil -lpthread -lrt -lgmp -lreadline -lncurses -lcrypto
> -L/usr/local/lib -Wl,-E
> src/main.o(.text+0x5c): In function `main':
> src/main.c:52: undefined reference to `Parrot_new'
> src/main.o(.text+0x6a):src/main.c:53: undefined reference to `imcc_initialize'
> src/main.o(.text+0x86):src/main.c:58: undefined reference to
> `string_from_cstring'
> src/main.o(.text+0x95):src/main.c:58: undefined reference to
> `Parrot_set_executable_name'
> src/main.o(.text+0xae):src/main.c:60: undefined reference to `parseflags'
> src/main.o(.text+0xd1):src/main.c:61: undefined reference to `imcc_run'
> src/main.o(.text+0xdf):src/main.c:65: undefined reference to `Parrot_destroy'
> src/main.o(.text+0xf2):src/main.c:66: undefined reference to `Parrot_exit'
> src/null_config.o(.text+0x25): 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
> make: *** [miniparrot] Error 1


	*scratch head*  I must admit I have no clue.  We have the same version, 
and for mine the compilation went without a hitch.  I don't think the 
problem is due by your version of Perl -- the problem seems to sit 
squarely in the C compilation.  What you can always do is to report a 
bug to the Perl6 guys.  If nothing else, they'll be happy to know 
someone tried to compile their stuff on a Solaris box...


Wishing I could help more, <:-/
`/anick


More information about the Ottawa-pm mailing list