Front page | perl.perl5.porters |
Postings from January 2001
[ID 20010122.139] perlcc: link error: missing boot_DynaLoader
From:
Frank.Herrmann
Date:
January 22, 2001 16:36
Subject:
[ID 20010122.139] perlcc: link error: missing boot_DynaLoader
Message ID:
3A687CE4.1E9893A4@alcatel.de
This is a bug report for perl from Frank.Herrmann@alcatel.de,
generated with the help of perlbug 1.28 running under perl v5.6.0.
-----------------------------------------------------------------
[Please enter your report here]
I tried to compile a perl script (htmltoc) using perlcc. I get a link
error when the generated c code is compiled. The symbol
boot_DynaLoader (DynaLoader.a) is missing. See the log:
**********
slspdw:[~/htmltoc] >perlcc htmltoc.p
--------------------------------------------------------------------------------
Compiling htmltoc.p:
--------------------------------------------------------------------------------
Making C(htmltoc.p.c) for htmltoc.p!
/usr/local/bin/perl -I/usr/local/lib/perl5/5.6.0/sun4-solaris
-I/usr/local/lib/perl5/5.6.0
-I/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
-I/usr/local/lib/perl5/site_perl/5.6.0 -I/usr/local/lib/perl5/site_perl
-I. -MB::Stash -c htmltoc.p
/usr/local/bin/perl -I/usr/local/lib/perl5/5.6.0/sun4-solaris
-I/usr/local/lib/perl5/5.6.0
-I/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
-I/usr/local/lib/perl5/site_perl/5.6.0 -I/usr/local/lib/perl5/site_perl
-I. -MO=C,-umain,-uDB,-uattributes htmltoc.p
Starting compile
Walking tree
Prescan
Saving methods
Bootstrap attributes htmltoc.p
Writing output
Loaded B
Loaded IO
Loaded Fcntl
htmltoc.p syntax OK
Compiling C(htmltoc) for htmltoc.p!
/usr/local/bin/perl -I/usr/local/lib/perl5/5.6.0/sun4-solaris
-I/usr/local/lib/perl5/5.6.0
-I/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
-I/usr/local/lib/perl5/site_perl/5.6.0 -I/usr/local/lib/perl5/site_perl
-I. /tmp/htmltoc.p.tst
gcc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE
-o htmltoc htmltoc.p.c -L/usr/local/lib
-L/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -lperl -lsocket -lnsl
-ldl -lm -lc -lcrypt -lsec
/usr/local/lib/perl5/5.6.0/sun4-solaris/auto/IO/IO.so
/usr/local/lib/perl5/5.6.0/sun4-solaris/auto/Fcntl/Fcntl.so
Undefined first referenced
symbol in file
boot_DynaLoader /var/tmp/ccejtMid.o
ld: fatal: Symbol referencing errors. No output written to htmltoc
collect2: ld returned 1 exit status
ERROR: In compiling code for htmltoc.p.c !
**********
Adding DynaLoader.a at the end of the line "gcc ..." and reexecuting
this line works for a "hello world" script but not for "htmltoc". I
guess due to command line arguments. See the error message:
Undefined subroutine &main::GetOptions called at
/usr/local/lib/perl5/5.6.0/newgetopt.pl line 61.
You can find the "htmltoc" at
http://www.oac.uci.edu/indiv/ehood/htmltoc.doc.html
It would be great if there is a workaround so that I can compile
"htmltoc" into an executable.
--
---------------------------------------------------------------------
Frank Herrmann (IDE GmbH) Frank.Herrmann@alcatel.de
Alcatel SEL AG, ZIT/A5 phone: +49 711 / 821-43049
Lorenzstr. 10 Alcatel Documentation System (ADS) Developer
D-70435 Stuttgart http://aww.sel.alcatel.de/pub/it/general/zita5
---------------------------------------------------------------------
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=utilities
severity=medium
---
Site configuration information for perl v5.6.0:
Configured by root at Thu Jan 18 16:10:35 MET 2001.
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=solaris, osvers=2.7, archname=sun4-solaris
uname='sunos slspdw 5.7 generic sun4u sparc sunw,ultra-5_10 '
config_args='-Dcc=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=2.95.2 19991024 (release)
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccflags ='-fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
stdchar='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 '
libpth=/usr/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=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.6.0:
/usr/local/lib/perl5/5.6.0/sun4-solaris
/usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl
.
---
Environment for perl v5.6.0:
HOME=/home/herrmann
LANG=C
LANGUAGE (unset)
LD_LIBRARY_PATH=/usr/dt/lib:/opt/SUNWspro/lib:/usr/openwin/lib:/opt/SUNWmotif/lib:/tools/hammer_sol_24
LOGDIR (unset)
PATH=.:/bin:/usr/bin:/usr/local/bin:/etc:/tools/SUNWspro/bin:/div/SUNWspro/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/lib:/usr/openwin/bin:/usr/dt/bin:/usr/ucb:/home/herrmann/bin:/tools/emacs/emacs19.29/bin:/tools/Acrobat3/bin:/interleaf/ileaf6/bin:/ileaf/iview2.3/bin:/interleaf/ileaf6/apps/ads/sun4os5/bin:/interleaf/ileaf6/apps/gapi/sun4os5/bin:/interleaf/ileaf5/bin:/tools/qsilver.ileaf/bin:/usr/etc:/etc:/interleaf/ileaf6/bin:/interleaf/iview2/bin:/usr/openwin/bin:/usr/local:/tools/Acrobat3/bin:/tools/SUNWspro/bin:/tools/SUNWspro/SC3.0/bin:/usr/ucb:/usr/sbin:/usr/ccs/bin:/opt/SUNWmotif/bin
PERL_BADLANG (unset)
SHELL=/bin/csh
-
[ID 20010122.139] perlcc: link error: missing boot_DynaLoader
by Frank.Herrmann