develooper Front page | perl.perl5.porters | Postings from August 2001

[ID 20010808.005] Problems building 5.6.1 with gcc under irix 6.5

Thread Next
From:
Andrew Williams
Date:
August 8, 2001 12:19
Subject:
[ID 20010808.005] Problems building 5.6.1 with gcc under irix 6.5
Message ID:
20010808191854.60843.qmail@web11408.mail.yahoo.com
Platform
SGI O200
2 r10k cpu's
512m ram
18G disk
all dev libs etc installed


gcc 2.95.3 (built using a precompiled version of gcc)
gmake 3.79.1


Errors during build
gmake[1]: Entering directory `/usr/people/andrew/Build/perl-5.6.1/ext/B'
rm -f ../../lib/auto/B/B.so
LD_RUN_PATH="" /usr/local/bin/gcc  -mabi=64 -L/usr/lib64 -L/usr/local/lib B.o 
-o ../../lib/auto/B/B.so     
ld64: ERROR 33: Unresolved text symbol "main" -- 1st referenced by
/usr/lib64/mips3/crt1.o.
        Use linker option -v to see when and which objects, archives and dsos
are loaded.  
ld64: ERROR 33: Unresolved text symbol "PL_opargs" -- 1st referenced by B.o.
        Use linker option -v to see when and which objects, archives and dsos
are loaded.  
ld64: ERROR 33: Unresolved text symbol "PL_op_name" -- 1st referenced by B.o.
        Use linker option -v to see when and which objects, archives and dsos
are loaded.  
ld64: ERROR 33: Unresolved text symbol "Perl_warn" -- 1st referenced by B.o.
        Use linker option -v to see when and which objects, archives and dsos
are loaded.  
ld64: ERROR 33: Unresolved text symbol "Perl_newSVpvn" -- 1st referenced by
B.o.
        Use linker option -v to see when and which objects, archives and dsos
are loaded.  
ld64: ERROR 33: Unresolved text symbol "Perl_sv_setpvn" -- 1st referenced by
B.o.
        Use linker option -v to see when and which objects, archives and dsos
are loaded.  
ld64: ERROR 33: Unresolved text symbol "Perl_sv_2pv" -- 1st referenced by B.o.
        Use linker option -v to see when and which objects, archives and dsos
are loaded.  
ld64: ERROR 33: Unresolved text symbol "Perl_sv_catpv" -- 1st referenced by
B.o.
        Use linker option -v to see when and which objects, archives and dsos
are loaded.  
ld64: ERROR 33: Unresolved text symbol "Perl_sv_catpvn" -- 1st referenced by
B.o.
        Use linker option -v to see when and which objects, archives and dsos
are loaded.  
ld64: ERROR 33: Unresolved text symbol "PL_stack_sp" -- 1st referenced by B.o.
        Use linker option -v to see when and which objects, archives and dsos
are loaded.  
.
.
.

Several more along the same lines


Output of myconfig (I have tried with and without -DPERL_POLLUTE as suggested
on #perl on efnet)

oontz 94% myconfig
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=irix, osvers=6.5, archname=IP27-irix
    uname='irix64 oontz 6.5 01221553 ip27 '
    config_args='-Dcc=/usr/local/bin/gcc -Accflags=-DPERL_POLLUTE -d'
    hint=previous, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
  Compiler:
    cc='/usr/local/bin/gcc', ccflags ='-D_BSD_TYPES -D_BSD_TIME
-D_POSIX_C_SOURCE -mabi=64 -fno-strict-aliasing -I/usr/local/include
-DLANGUAGE_C -DPERL_POLLUTE',
    optimize='-O3',
    cppflags='-D_BSD_TYPES -D_BSD_TIME -D_POSIX_C_SOURCE -mabi=64
-fno-strict-aliasing -I/usr/local/include -DLANGUAGE_C -DPERL_POLLUTE'
    ccversion='', gccversion='2.95.3 20010315 (release)',
gccosandvers='irix6.5'
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='/usr/local/bin/gcc', ldflags =' -mabi=64 -L/usr/lib64 -Wl,-woff,84
-L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib
    libs=-ldb -lm -lc
    perllibs=-lm -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fpic', lddlflags=' -mabi=64 -L/usr/lib64 -L/usr/local/lib'

nm reveals that the compiled symbols do exist.  I just can't get the linker to
find/recognize them.

I've spent a good ammount of time trying to find an answer and have not been
able to.  Sorry if this has already been answered elsewhere.

- andrew



__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


Thread Next


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