develooper Front page | perl.perl5.porters | Postings from March 2007

[perl #41745] Make error while trying to compile perl 5.8.8

From:
Radu Alexa
Date:
March 8, 2007 03:47
Subject:
[perl #41745] Make error while trying to compile perl 5.8.8
Message ID:
rt-3.6.HEAD-30201-1173353191-662.41745-75-0@perl.org
# New Ticket Created by  Radu Alexa 
# Please include the string:  [perl #41745]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=41745 >


Hi,

While trying to compile perl 5.8.8 I got the following error:

        Making attrs (dynamic)
Writing Makefile for attrs
make[1]: Entering directory `/home/radu/perl/perl-5.8.8/ext/attrs'
make[1]: Leaving directory `/home/radu/perl/perl-5.8.8/ext/attrs'
make[1]: Entering directory `/home/radu/perl/perl-5.8.8/ext/attrs'
cp attrs.pm ../../lib/attrs.pm
../../miniperl "-I../../lib" "-I../../lib" ../../lib/ExtUtils/xsubpp
-noprototypes -typemap ../../lib/ExtUtils/typemap  attrs.xs > attrs.xsc &&
mv attrs.xsc attrs.c
gcc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2   -DVERSION=\"1.02\" -DXS_VERSION=\"1.02\" -fpic
"-I../.."   attrs.c
Running Mkbootstrap for attrs ()
chmod 644 attrs.bs
rm -f ../../lib/auto/attrs/attrs.so
gcc   attrs.o  -o ../../lib/auto/attrs/attrs.so         \
        \

/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21):
In function `_start':
: undefined reference to `main'
attrs.o(.text+0x11): In function `XS_attrs_import':
: undefined reference to `PL_markstack_ptr'
attrs.o(.text+0x18): In function `XS_attrs_import':
: undefined reference to `PL_stack_sp'
attrs.o(.text+0x2c): In function `XS_attrs_import':
: undefined reference to `PL_stack_base'
attrs.o(.text+0x6a): In function `XS_attrs_import':
: undefined reference to `PL_compcv'
attrs.o(.text+0x8f): In function `XS_attrs_import':
: undefined reference to `Perl_croak'
attrs.o(.text+0x99): In function `XS_attrs_import':
: undefined reference to `Perl_ckwarn'
attrs.o(.text+0xb6): In function `XS_attrs_import':
: undefined reference to `PL_stack_base'
attrs.o(.text+0x147): In function `XS_attrs_import':
: undefined reference to `PL_stack_sp'
attrs.o(.text+0x178): In function `XS_attrs_import':
: undefined reference to `Perl_sv_2pv_flags'
attrs.o(.text+0x193): In function `XS_attrs_import':
: undefined reference to `Perl_warner'
attrs.o(.text+0x1a9): In function `XS_attrs_import':
: undefined reference to `Perl_croak'
attrs.o(.text+0x1e0): In function `XS_attrs_get':
: undefined reference to `PL_markstack_ptr'
attrs.o(.text+0x1e7): In function `XS_attrs_get':
: undefined reference to `PL_stack_sp'
attrs.o(.text+0x1fb): In function `XS_attrs_get':
: undefined reference to `PL_stack_base'
attrs.o(.text+0x252): In function `XS_attrs_get':
: undefined reference to `Perl_get_cv'
attrs.o(.text+0x271): In function `XS_attrs_get':
: undefined reference to `PL_stack_max'
attrs.o(.text+0x299): In function `XS_attrs_get':
: undefined reference to `Perl_newSVpvn'
attrs.o(.text+0x2a1): In function `XS_attrs_get':
: undefined reference to `Perl_sv_2mortal'
attrs.o(.text+0x2b8): In function `XS_attrs_get':
: undefined reference to `PL_stack_max'
attrs.o(.text+0x2dc): In function `XS_attrs_get':
: undefined reference to `Perl_newSVpvn'
attrs.o(.text+0x2e4): In function `XS_attrs_get':
: undefined reference to `Perl_sv_2mortal'
attrs.o(.text+0x2ef): In function `XS_attrs_get':
: undefined reference to `PL_stack_sp'
attrs.o(.text+0x31a): In function `XS_attrs_get':
: undefined reference to `Perl_croak'
attrs.o(.text+0x32b): In function `XS_attrs_get':
: undefined reference to `Perl_sv_2pv_flags'
attrs.o(.text+0x343): In function `XS_attrs_get':
: undefined reference to `Perl_stack_grow'
attrs.o(.text+0x35b): In function `XS_attrs_get':
: undefined reference to `Perl_stack_grow'
attrs.o(.text+0x380): In function `boot_attrs':
: undefined reference to `PL_markstack_ptr'
attrs.o(.text+0x387): In function `boot_attrs':
: undefined reference to `PL_stack_sp'
attrs.o(.text+0x39b): In function `boot_attrs':
: undefined reference to `PL_stack_base'
attrs.o(.text+0x3d9): In function `boot_attrs':
: undefined reference to `PL_stack_base'
attrs.o(.text+0x461): In function `boot_attrs':
: undefined reference to `Perl_croak'
attrs.o(.text+0x47b): In function `boot_attrs':
: undefined reference to `Perl_newXS'
attrs.o(.text+0x49f): In function `boot_attrs':
: undefined reference to `Perl_newXS'
attrs.o(.text+0x4c3): In function `boot_attrs':
: undefined reference to `Perl_newXS'
attrs.o(.text+0x4ca): In function `boot_attrs':
: undefined reference to `PL_stack_base'
attrs.o(.text+0x4d1): In function `boot_attrs':
: undefined reference to `PL_sv_yes'
attrs.o(.text+0x4e6): In function `boot_attrs':
: undefined reference to `PL_stack_sp'
attrs.o(.text+0x50f): In function `boot_attrs':
: undefined reference to `Perl_form'
attrs.o(.text+0x519): In function `boot_attrs':
: undefined reference to `Perl_get_sv'
attrs.o(.text+0x549): In function `boot_attrs':
: undefined reference to `Perl_form'
attrs.o(.text+0x553): In function `boot_attrs':
: undefined reference to `Perl_get_sv'
attrs.o(.text+0x568): In function `boot_attrs':
: undefined reference to `Perl_sv_2pv_flags'
attrs.o(.text+0x57f): In function `boot_attrs':
: undefined reference to `Perl_sv_2pv_flags'
collect2: ld returned 1 exit status
make[1]: *** [../../lib/auto/attrs/attrs.so] Error 1
make[1]: Leaving directory `/home/radu/perl/perl-5.8.8/ext/attrs'
make: *** [lib/auto/attrs/attrs.so] Error 2


I could not run perlbug by hand (./perl -Ilib utils/perlbug : Can't locate
Sys/Hostname.pm in @INC (@INC contains: lib [..] .) at utils/perlbug line
262.) so here it is the output of  myconfig:

[radu@svn-krk perl-5.8.8]$ ./myconfig
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=rhel4, osvers=2.6.9-42.0.3.elsmp, archname=x86_64-rhel4
    uname='linux svn-krk.dilloncs.de 2.6.9-42.0.3.elsmp #1 smp mon sep 25
17:24:31 edt 2006 x86_64 x86_64 x86_64 gnulinux '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/include -I/usr/include/gdbm'
    ccversion='', gccversion='3.4.6 20060404 (Red Hat 3.4.6-3)',
gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =''
    libpth=/lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.4'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fpic', lddlflags=' '



Google could only find one reference but unfortunately in chinese (link to
google cache:
http://209.85.129.104/search?q=cache:RScHatOFkE4J:docs.chinalinuxpub.com/bbs
/showthread.php%3Ft%3D11221+attrs.o+PL_stack_sp&hl=de&strip=1
<http://209.85.129.104/search?q=cache:RScHatOFkE4J:docs.chinalinuxpub.com/bb
s/showthread.php%3Ft%3D11221+attrs.o+PL_stack_sp&hl=de&strip=1> )


What have I done wrong (it was the first time when I tried to compile perl)?

Many thanks.

Best regards,
Radu Alexa





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About