Front page | perl.perl5.porters |
Postings from April 2000
[ID 20000428.004] perlcc 5.6.0 fails for even Hello World
From:
Mike Schilli
Date:
April 28, 2000 16:02
Subject:
[ID 20000428.004] perlcc 5.6.0 fails for even Hello World
Message ID:
200004282302.QAA13670@reverence.mcom.com
This is a bug report for perl from mschilli@reverence.mcom.com,
generated with the help of perlbug 1.28 running under perl v5.6.0.
-----------------------------------------------------------------
[Please enter your report here]
Hi folks,
the perlcc that comes with 5.6.0 had problems on both my Linux
and my Solaris system -- looks like it couldn't find the DynaLoader,
cause I used to get the following
error message even for the simplest of scripts:
/tmp/ccF7lsFG.o: In function `xs_init':
/tmp/ccF7lsFG.o(.text+0x325d): undefined reference to `boot_DynaLoader'
collect2: ld returned 1
exit status
ERROR: In compiling code for t.pl.c !
For a quick fix, just put the line
use DynaLoader;
at line 393 of perlcc, so that it reads
...
print $fd <<"EOF";
use DynaLoader;
use FileHandle;
my \$fh3 = new FileHandle("> $incfile")
...
This at least lets it compile simple Perl scripts into native binaries,
though everything's still very, very experimental.
-- Mike
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=utilities
severity=critical
---
Site configuration information for perl v5.6.0:
Configured by mschilli at Wed Mar 29 15:40:37 PST 2000.
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=solaris, osvers=2.6, archname=sun4-solaris
uname='sunos reverence 5.6 generic_105181-16 sun4u sparc sunw,ultra-2 '
config_args='-d -D prefix=/u/mschilli/PERL-5.6.0 -D cc=gcc'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='gcc', optimize='-O', gccversion=egcs-2.91.60 19981201 (egcs-1.1.1 release)
cppflags='-fno-strict-aliasing -I/usr/local/include -I/opt/local/include'
ccflags ='-fno-strict-aliasing -I/usr/local/include -I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib -L/opt/local/lib '
libpth=/usr/local/lib /opt/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc -lcrypt -lsec
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E'
cccdlflags='-fPIC', lddlflags=' -W,l-E -G -L/usr/local/lib -L/opt/local/lib'
Locally applied patches:
---
@INC for perl v5.6.0:
/u/mschilli/PERL-5.6.0/lib/perl5/5.6.0/sun4-solaris
/u/mschilli/PERL-5.6.0/lib/perl5/5.6.0
/u/mschilli/PERL-5.6.0/lib/perl5/site_perl/5.6.0/sun4-solaris
/u/mschilli/PERL-5.6.0/lib/perl5/site_perl/5.6.0
/u/mschilli/PERL-5.6.0/lib/perl5/site_perl
.
---
Environment for perl v5.6.0:
HOME=/u/mschilli
LANG (unset)
LANGUAGE (unset)
LC_COLLATE=en_US
LC_CTYPE=en_US
LC_MESSAGES=C
LC_MONETARY=en_US
LC_NUMERIC=en_US
LC_TIME=en_US
LD_LIBRARY_PATH=/u/mschilli/INSTALL/zlib/lib:.:/util/lib:/util/nspr20/lib:/usr/lib:/util/libnls31/lib
LOGDIR (unset)
PATH=/u/mschilli/bin:.:/u/mschilli/PERL/bin:/u/mschilli/SGML/bin:/u/mschilli/PERL/bin:/tools/ns/workshop-5.0/bin:/u/mschilli/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/ucb:/usr/bsd:/util/bin:/util/bin:/tools/ns/workshop/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/ccs/bin:/usr/ucb:/usr/openwin/bin:/tools/ns/bin:/usr/local/bin
PERL_BADLANG (unset)
SHELL=/usr/bin/bash
-
[ID 20000428.004] perlcc 5.6.0 fails for even Hello World
by Mike Schilli