LPM: perl 5.6 released

Gregg Casillo gcasillo at ket.org
Tue Apr 4 12:49:39 CDT 2000


This may sound like a lame question, but does perlcc require a separate C/C++
compiler (e.g. gcc, egcs). Or is the compiler part of the 5.6 distribution? I ask
because most of my Perl work these days is for the Win32 platform where Visual C++
(bleck!) rules the earth. Of course there's DJGPP, but I digress. I really must go
and read about 5.6...

Gregg Casillo
gcasillo at ket.org

Rich Bowen wrote:

> Janine Ladick wrote:
> >
> > Yay!
> >
> > Is this the release that will have a compiler?
>
> Um, sort of ...
>
> [rbowen at localhost /tmp]$ cat test.pl
> #!/usr/bin/perl
> print "Hello World\n";
>
> [rbowen at localhost /tmp]$ perl test.pl
> Hello World
>
> (so far, so good)
>
> [rbowen at localhost /tmp]$ perlcc test.pl
>
> --------------------------------------------------------------------------------
> Compiling test.pl:
> --------------------------------------------------------------------------------
> Making C(test.pl.c) for test.pl!
> perl -I/usr/local/lib/perl5/5.6.0/i586-linux
> -I/usr/local/lib/perl5/5.6.0 -I/usr
> /local/lib/perl5/site_perl/5.6.0/i586-linux
> -I/usr/local/lib/perl5/site_perl/5.6
> .0 -I/usr/local/lib/perl5/site_perl -I. -MB::Stash -c  test.pl
> perl -I/usr/local/lib/perl5/5.6.0/i586-linux
> -I/usr/local/lib/perl5/5.6.0 -I/usr
> /local/lib/perl5/site_perl/5.6.0/i586-linux
> -I/usr/local/lib/perl5/site_perl/5.6
> .0 -I/usr/local/lib/perl5/site_perl -I. -MO=C,-umain,-uattributes,-uDB
> test.pl
> Starting compile
> Walking tree
> Prescan
> Saving methods
> Bootstrap attributes test.pl
> Writing output
> Loaded B
> Loaded IO
> Loaded Fcntl
> test.pl syntax OK
> Compiling C(test) for test.pl!
> perl -I/usr/local/lib/perl5/5.6.0/i586-linux
> -I/usr/local/lib/perl5/5.6.0 -I/usr
> /local/lib/perl5/site_perl/5.6.0/i586-linux
> -I/usr/local/lib/perl5/site_perl/5.6
> .0 -I/usr/local/lib/perl5/site_perl -I. /tmp/test.pl.tst
> cc -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/usr/local
> /lib/perl5/5.6.0/i586-linux/CORE -o test test.pl.c   -L/usr/local/lib
> -L/usr/loc
> al/lib/perl5/5.6.0/i586-linux/CORE -lperl -lnsl -lndbm -lgdbm -ldb -ldl
> -lm -lc
> -lposix -lcrypt /usr/local/lib/perl5/5.6.0/i586-linux/auto/IO/IO.so
> /usr/local/l
> ib/perl5/5.6.0/i586-linux/auto/Fcntl/Fcntl.so
> /tmp/ccRdBXSU.o: In function `xs_init':
> /tmp/ccRdBXSU.o(.text+0x3279): undefined reference to `boot_DynaLoader'
> ERROR: In compiling code for test.pl.c !
>
> Um ... huh?
> test.pl is 40bytes. The generated test.pl.c is about 35k. But I'm a
> little lost as to what's going on in the compile stage there, and why it
> failed. Apparently I'm not the only one. Tom Christiansen posted a
> similar example to P5P a few days ago, wondering why it did not work.
> Perhaps we'll see some progress on this in the next few days.
>
> Rich
> --
> http://www.ApacheUnleashed.com/
> Lexington Perl Mongers - http://lexington.pm.org/
> PGP Key - http://www.rcbowen.com/pgp.txt




More information about the Lexington-pm mailing list