Thanks Andy,
I did a make distclean and a ./Configure -d
-Dprefix=/localdisk/vahik/05septBuild and this time the compile passed
without any problem. Thanks for the help.
However when I installed (make install) the perl, I did not get perl5
executable. When I checked lib directory, I have a perl5 directory
created there but in the bin directory I only have perl and perl5.8.7.
How do I get the perl5?
Is perl5 a different application than perl?
In my system per5 -> perl5.00503.
I read the README.sloris and it looks (to me) perl5 is the earlier
version of perl version 5. I tried man perl5 but there are no entries.
When I do a perl5 -help and perl -help, they both give very similar options.
I am asking these since I am trying to build mozilla and it wants a full
perl installation:
checking whether ln -s works... yes
checking for perl5... /opt/tools/bin/perl5
checking for minimum required perl version >= 5.004... 5.00503
checking for full perl installation... no
configure: error: Cannot find Config.pm or $Config{archlib}. A full
perl installation is required.
Any help is most appreciated.
Thanks.
Vahik Manookian ESN: 39+51656
Andy Dougherty via RT wrote:
On Mon, 22 Aug 2005, Vahik Manookian wrote:
I am trying to install perl5.8.7 in my solaris sparc but I get the following
errors:
`sh cflags "optimize='-O'" perlio.o` perlio.c
CCCMD = /localdisk/vahik/05septBuild/bin/gcc -DPERL_CORE -c -m64 -O
-Wall
perlio.c: In function 'PerlIOStdio_unread':
perlio.c:3064: error: 'struct __FILE' has no member named '_ptr'
perlio.c:3072: error: 'struct __FILE' has no member named '_ptr'
- The compoiler is gcc 4.0.1 buit using /usr/ccs/as and /usr/ccs/ld.
- the make is a gnu make 3.80
- I have to install the perl in my localdisk
- I faced with another compile error earlier. I found a solution for it by
goolging. That compile error was something to do with 64 bit detection. The
solution was to use -m64.
While that may have solved your previous unspecified problem, I suspect it
caused this problem, and will cause additional ones down the road.
Specifically, it looks like much of Configure ran assuming a 32-bit
environment (note the longsize=4 in your ./myconfig output) but at some
point, you told gcc to use a 64-bit environment (adding in the -m64).
This change is quite likely to invalidate many of Configure's guesses.
I haven't tried with gcc-4, but perl-5.8.7 should build fine on Solaris 8
either in a 32-bit or 64-bit mode, but it's best to tell Configure up
front which you want. See the section
=head3 64 bit support
in the INSTALL file.
If, instead, you don't necessarily want 64-bit support, but ended up going
down that road to try to solve that unspecified earlier problem, then
please let us know what that problem was and perhaps we can help solve it.
In any case, you should do a
make distclean
before starting over.
Info from myconfig:
-------------------
perl-5.8.7 9:56 238 > myconfig
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
Platform:
osname=solaris, osvers=2.8, archname=sun4-solaris
uname='sunos wcars2at 5.8 generic_117350-25 sun4u sparc sunw,sun-blade-1500
solaris '
config_args='-e -Dprefix=/localdisk/vahik/05septBuil -D'
hint=previous, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='/localdisk/vahik/05septBuild/bin/gcc', ccflags ='-m64',
optimize='-O',
cppflags='-m64 -m64'
ccversion='', gccversion='4.0.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='ld', ldflags =' '
libpth=/localdisk/vahik/05septBuild/lib
libs=
perllibs=
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags=''
cccdlflags='', lddlflags=''
Hope this helps,