Subject: | make error in Solaris 10 environment |
Make failed with perl 5.8.8 but successful with OS build in perl
version 5.8.4
Error as follows,
##############################################
$ pwd
/sbcimp/build/pd/cpan/32-bit/5.8.8-2006.09/.cpan/builds/CtCmd
##############################################
$ ls -l lib*
lrwxrwxrwx 1 sca org_sca_g 56 Jan 25 10:53 libCrun.so -
Show quoted text
> /usr/lib/libCrun.so.1
##############################################
$ make
linking libzuba.so
/usr/ccs/bin/ld -G -f /usr/ucblib/librpcsoc.so.1 -z interpose -o
blib/arch/auto/ClearCase/CtCmd/libzuba.so aux_zuba.o rm -f
blib/arch/auto/ClearCase/CtCmd/CtCmd.so
LD_RUN_PATH="/usr/atria/shlib:/usr/lib" gcc -Wl,-E -G -
L/sbcimp/run/pd/gdbm/32-bit/1.8.3/lib CtCmd.o -
Lblib/arch/auto/ClearCase/CtCmd -t -ucmdsyn_proc_table -R/shlib -
R/sbcimp/run/pd/cpan/32-bit/5.8.8-2006.09/lib/auto/ClearCase/CtCmd -
R/sbcimp/run/pd/cpan/32-bit/5.8.8-2006.09/lib/auto/ClearCase/CtCmd -
Rblib/arch/auto/ClearCase/CtCmd -o
blib/arch/auto/ClearCase/CtCmd/CtCmd.so -lzuba \
-L/usr/lib -L/sbcimp/build/pd/cpan/32-bit/5.8.8-
2006.09/.cpan/builds/CtCmd -L/usr/atria/shlib -latriacmdsyn -
latriacmd -latriasumcmd -latriasum -latriamsadm -latriamntrpc -
latriacm -latriavob -latriaview -latriacm -latriadbrpc -latriatirpc -
latriaxdr -latriamvfs -latriatbs -latriaadm -latriasplit -
latriacredmap -latriaks -lezrpc -lrpcsvc -latriaccfs -latriasquidad -
latriasquidcore -lc -lw -lCrun -R/usr/atria/shlib -latriamsadm -
latriamsinfobase -latriamsinfovob \
/sbcimp/run/pd/binutils/2.16.1-32bit/bin/ld: mode
elf32_sparc /sbcimp/run/pd/gcc/4.1.1-32bit/lib/gcc/sparc-sun-
solaris2.10/4.1.1/crt1.o
/sbcimp/run/pd/gcc/4.1.1-32bit/lib/gcc/sparc-sun-
solaris2.10/4.1.1/crti.o
/usr/ccs/lib/values-Xa.o
/sbcimp/run/pd/gcc/4.1.1-32bit/lib/gcc/sparc-sun-
solaris2.10/4.1.1/crtbegin.o
CtCmd.o
-lzuba (blib/arch/auto/ClearCase/CtCmd/libzuba.so)
-latriacmdsyn (/usr/atria/shlib/libatriacmdsyn.so)
-latriacmd (/usr/atria/shlib/libatriacmd.so) -latriasumcmd
(/usr/atria/shlib/libatriasumcmd.so)
-latriasum (/usr/atria/shlib/libatriasum.so) -latriamsadm
(/usr/atria/shlib/libatriamsadm.so)
-latriamntrpc (/usr/atria/shlib/libatriamntrpc.so)
-latriacm (/usr/atria/shlib/libatriacm.so) -latriavob
(/usr/atria/shlib/libatriavob.so) -latriaview
(/usr/atria/shlib/libatriaview.so)
-latriacm (/usr/atria/shlib/libatriacm.so) -latriadbrpc
(/usr/atria/shlib/libatriadbrpc.so)
-latriatirpc (/usr/atria/shlib/libatriatirpc.so)
-latriaxdr (/usr/atria/shlib/libatriaxdr.so) -latriamvfs
(/usr/atria/shlib/libatriamvfs.so)
-latriatbs (/usr/atria/shlib/libatriatbs.so) -latriaadm
(/usr/atria/shlib/libatriaadm.so) -latriasplit
(/usr/atria/shlib/libatriasplit.so)
-latriacredmap (/usr/atria/shlib/libatriacredmap.so)
-latriaks (/usr/atria/shlib/libatriaks.so) -lezrpc
(/usr/atria/shlib/libezrpc.so) -lrpcsvc (/usr/lib/librpcsvc.so) -
latriaccfs (/usr/atria/shlib/libatriaccfs.so)
-latriasquidad (/usr/atria/shlib/libatriasquidad.so)
-latriasquidcore (/usr/atria/shlib/libatriasquidcore.so)
-lc (/usr/lib/libc.so)
-lw (/usr/lib/libw.so)
/sbcimp/build/pd/cpan/32-bit/5.8.8-
2006.09/.cpan/builds/CtCmd/libCrun.so: file not recognized: File
format not recognized
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/ClearCase/CtCmd/CtCmd.so] Error 1 Opened
On : 01/29/07 02:42:15
##############################################
ssyd0107dsc$ uname -a
SunOS ssyd0107dsc.syd.swissbank.com 5.10 Generic_118833-02 sun4u sparc
SUNW,Sun-Fire-V240
##############################################
Make will success if perl version 5.8.4 set in the environment.
##############################################
ssyd0107dsc$ /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=solaris, osvers=2.10, archname=sun4-solaris-64int
uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2'
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=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
xarch=v8 -D_TS_ERRNO',
optimize='-xO3 -xspace -xildoff',
cppflags=''
ccversion='Sun WorkShop', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-
R /usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE'
cccdlflags='-KPIC', lddlflags='-G'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
Locally applied patches:
22667 The optree builder was looping when constructing the
ops ...
22715 Upgrade to FileCache 1.04
22733 Missing copyright in the README.
22746 fix a coredump caused by rv2gv not fully converting a
PV ...
22755 Fix 29149 - another UTF8 cache bug hit by substr.
22774 [perl #28938] split could leave an array without ...
22775 [perl #29127] scalar delete of empty slice returned
garbage
22776 [perl #28986] perl -e "open m" crashes Perl
22777 add test for change #22776 ("open m" crashes Perl)
22778 add test for change #22746 ([perl #29102] Crash on
assign ...
22781 [perl #29340] Bizarre copy of ARRAY make sure a pad
op's ...
22796 [perl #29346] Double warning for int(undef) and abs
(undef) ...
22818 BOM-marked and (BOMless) UTF-16 scripts not working
22823 [perl #29581] glob() misses a lot of matches
22827 Smoke [5.9.2] 22818 FAIL(F) MSWin32 WinXP/.Net SP1
(x86/1 cpu)
22830 [perl #29637] Thread creation time is hypersensitive
22831 improve hashing algorithm for ptr tables in
perl_clone: ...
22839 [perl #29790] Optimization busted: '@a = "b", sort
@a' ...
22850 [PATCH] 'perl -v' fails if local_patches contains code
snippets
22852 TEST needs to ignore SCM files
22886 Pod::Find should ignore SCM files and dirs
22888 Remove redundant %SIG assignments from FileCache
23006 [perl #30509] use encoding and "eq" cause memory leak
23074 Segfault using HTML::Entities
23106 Numeric comparison operators mustn't compare addresses
of ...
23320 [perl #30066] Memory leak in nested shared data
structures ...
23321 [perl #31459] Bug in read()
SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
Built under solaris
Compiled at Feb 13 2006 05:12:02
@INC:
/usr/perl5/5.8.4/lib/sun4-solaris-64int
/usr/perl5/5.8.4/lib
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int
/usr/perl5/site_perl/5.8.4
/usr/perl5/site_perl
/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int
/usr/perl5/vendor_perl/5.8.4
/usr/perl5/vendor_perl
##############################################
ssyd0107dsc$ ./perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=solaris, osvers=2.10, archname=sun4-solaris-thread-multi
uname='sunos ssyd0107dsc.syd.swissbank.com 5.10 generic_118833-02
sun4u sparc sunw,sun-fire-v240 '
config_args='-Dprefix=/sbcimp/run/pd/perl/32-bit/5.8.8 -
Dprivlib=/sbcimp/run/pd/perl/32-bit/5.8.8/lib -
Darchlib=/sbcimp/run/pd/perl/32-bit/5.8.8/lib -
Dsitelib=/sbcimp/run/pd/perl/32-bit/5.8.8/lib -
Dsitearch=/sbcimp/run/pd/perl/32-bit/5.8.8/lib -
Dlocincpth=/sbcimp/run/pd/gdbm/32-bit/1.8.3/include -
Dloclibpth=/sbcimp/run/pd/gdbm/32-bit/1.8.3/lib -Dcc=gcc -Dusethreads -
Uinstallusrbinperl -Dperladmin=dl-pdsupport@ubs.com -Dcf_email=dl-
pdsupport@ubs.com -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -fno-strict-aliasing -pipe -
Wdeclaration-after-statement -I/sbcimp/run/pd/gdbm/32-
bit/1.8.3/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
DPERL_USE_SAFE_PUTENV',
optimize='-O',
cppflags='-D_REENTRANT -fno-strict-aliasing -pipe -Wdeclaration-
after-statement -I/sbcimp/run/pd/gdbm/32-bit/1.8.3/include'
ccversion='', gccversion='4.1.1', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
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, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/sbcimp/run/pd/gdbm/32-bit/1.8.3/lib '
libpth=/sbcimp/run/pd/gdbm/32-bit/1.8.3/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldl -lm -lpthread -lc
perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E'
cccdlflags='-fPIC', lddlflags=' -Wl,-E -G -L/sbcimp/run/pd/gdbm/32-
bit/1.8.3/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP PERL_USE_SAFE_PUTENV
USE_ITHREADS USE_LARGE_FILES USE_PERLIO
USE_REENTRANT_API
Built under solaris
Compiled at Sep 5 2006 12:25:58
@INC:
/sbcimp/run/pd/perl/32-bit/5.8.8/lib
/sbcimp/run/pd/perl/32-bit/5.8.8/lib
/sbcimp/run/pd/perl/32-bit/5.8.8/lib
/sbcimp/run/pd/perl/32-bit/5.8.8/lib