Hi,
I'm trying to install the Template-Toolkit 2.08 in Solaris 10 (SPARC),
but I have a problem in the compiling phase.
In unzipped Template-Toolkit folder, i runned "perl Makefile.PL", after
that "make".
Here is the problem, where i see the following error message:
_________________________________________________________________________________________________________________
cc -c -D_REENTRANT -xO3 -xarch=v8 -xspace -xildoff
-I/opt/csw/bdb43/include -I/opt/csw/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DVERSION=\"2.08\" -DXS_VERSION=\"2.08\"
-KPIC "-I/opt/csw/lib/perl/5.8.8/CORE" Stash.c
cc: unrecognized option `-KPIC'
cc: language ildoff not recognized
cc: Stash.c: linker input file unused because linking not done
rm -f ../blib/arch/auto/Template/Stash/XS/XS.so
cc -G -L/opt/csw/bdb43/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib
-L/lib Stash.o -o ../blib/arch/auto/Template/Stash/XS/XS.so \
\
cc: Stash.o: No such file or directory
cc: no input files
*** Error code 1
make: Fatal error: Command failed for target
`../blib/arch/auto/Template/Stash/XS/XS.so'
Current working directory /usr/local/Template-Toolkit-2.08/xs
*** Error code 1
The following command caused the error:
cd xs && make -f Makefile all LIBPERL_A="libperl.a" LINKTYPE="dynamic"
OPTIMIZE="" PREFIX="/usr"
make: Fatal error: Command failed for target `subdirs'
_________________________________________________________________________________________________________________
Running "perl -V", i have:
_________________________________________________________________________________________________________________
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=solaris, osvers=2.8, archname=sun4-solaris-thread-multi
uname='sunos ra 5.8 generic_117350-28 sun4u sparc'
config_args=''
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='cc', ccflags ='-D_REENTRANT -xO3 -xarch=v8 -xspace -xildoff
-I/opt/csw/bdb43/include -I/opt/csw/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-xO3 -xarch=v8 -xspace -xildoff',
cppflags='-D_REENTRANT -xO3 -xarch=v8 -xspace -xildoff
-I/opt/csw/bdb43/include -I/opt/csw/include'
ccversion='Sun C 5.7 2005/01/07', gccversion='', 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='cc', ldflags ='-xarch=v8 -L/opt/csw/bdb43/lib -L/opt/csw/lib
-L/usr/lib -L/usr/ccs/lib -L/lib'
libpth=/usr/lib /usr/ccs/lib /lib /opt/csw/lib
libs=-lsocket -lnsl -lgdbm -ldb-4.3 -ldl -lm -lpthread -lc
perllibs=-lsocket -lnsl -ldb-4.3 -ldl -lm -lpthread -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so.5.8.8
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R
/opt/csw/lib/perl/5.8.8/CORE'
cccdlflags='-KPIC', lddlflags='-G -L/opt/csw/bdb43/lib
-L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API USE_SITECUSTOMIZE
Built under solaris
Compiled at Feb 5 2006 02:20:06
%ENV:
PERL5LIB="/opt/csw/lib/perl/5.8.8"
@INC:
/opt/csw/lib/perl/5.8.8
/opt/csw/lib/perl/5.8.8
/opt/csw/share/perl/5.8.8
/opt/csw/lib/perl/site_perl
/opt/csw/share/perl/site_perl
/opt/csw/share/perl/site_perl
/opt/csw/lib/perl/csw
/opt/csw/share/perl/csw
/opt/csw/share/perl/csw
.
_________________________________________________________________________________________________________________
Finally, I edited the Makefile in the installation folder, removing
-KPIC and OPTIMIZE flags, but the problem remains the same. It looks
that is using the standard perl flags from "Compiler" section above
(perl -V section).
Any suggestion please!
Thank you!
begin:vcard
fn:Spyros Dimas
n:Dimas;Spyros
org:Agilis SA Statistics & Informatics
adr:;;Acadimias 77;Athens;GR;10678;GREECE
email;internet:[EMAIL PROTECTED]
title:System Administrator
tel;work:+30 210 3304315
tel;fax:+30 210 3304345
note:[EMAIL PROTECTED]
x-mozilla-html:TRUE
url:http://www.agilis-sa.gr
version:2.1
end:vcard