Home > Archive > PerlTk > October 2005 > Troubles compiling Tk-804.027 on sparc solaris9 win SUN CC
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Troubles compiling Tk-804.027 on sparc solaris9 win SUN CC
|
|
| Christophe Martin 2004-07-08, 3:56 am |
| Hello,
I tried to install Tk-804.027, using perl -MCPAN -e shell and it could not
compile ~/.cpan/build/Tk-804.027/PNG/imgPNG.c
I use solaris 9 on a sparc workstation, with perl 5.8.4 64-bits-ints, and
solaris SUNWspro CC 5.0.
The error message was :
/opt/SUNWspro/bin/cc -c -I.. -Ilibpng -Izlib -I/usr/openwin/include -I/opt/local32/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"4.003\" -DXS_VERSION=\"804.027\" -KPIC "-I/opt/local32/lib/perl5/5.8.4/sun4-solaris-64int/CORE"
imgPNG.c
"imgPNG.c", line 516: controlling expressions must have scalar type
"imgPNG.c", line 703: controlling expressions must have scalar type
cc: acomp failed for imgPNG.c
I had to finish by hands. I changed the faulty lines, and could compile.
make test was then successful:
diff imgPNG.c.orig imgPNG.c
516c516
< } else if (png_get_gAMA) {
---
> } else if (1 && png_get_gAMA) {
703c703
< if (png_set_gAMA) {
---
> if (1 && png_set_gAMA) {
Just before running make install, I'd like to be sure this test really tests
whatever it is supposed to test (sorry for the confusion ;-), so if someone
can confirm that everything is fine from the output below...
Christophe
--
char*p=" c+)1+)I1+++(Y1)I1)1)I1)19Y(QII1)1)I1)19Q
(K)K+)I1+9I(a)I1)II1))AA(91)I\
1)II1)199(3+)1)K+)19;(";main(_){while(*p){for(_=*p-32>>3;_;--_)putchar(' ');if
(!(_=*p++-32&7))putchar('\n');else while(_--)printf("_/");}}
Script started on Wed Jul 07 11:27:02 2004
sh-2.05$ perl -v
This is perl, v5.8.4 built for sun4-solaris-64int
Copyright 1987-2004, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
sh-2.05$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=solaris, osvers=2.9, archname=sun4-solaris-64int
uname='sunos pointu 5.9 generic_112233-07 sun4u sparc sunw,ultra-4 '
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='/opt/SUNWspro/bin/cc', ccflags ='-I/opt/local32/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O',
cppflags='-I/opt/local32/include'
ccversion='WorkShop Compilers 5.0 98/12/15 C 5.0', 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', ls size=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='/opt/SUNWspro/bin/cc', ldflags ='-L/opt/local32/lib '
libpth=/usr/lib /opt/local32/lib
libs=-lsocket -lnsl -ldb -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 /opt/local32/lib/perl5/5.8.4/sun4-solaris-64int/CORE'
cccdlflags='-KPIC', lddlflags='-G -L/opt/local32/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
Built under solaris
Compiled at Jun 1 2004 10:33:40
@INC:
/opt/local32/lib/perl5/5.8.4/sun4-solaris-64int
/opt/local32/lib/perl5/5.8.4
/opt/local32/lib/perl5/site_perl/5.8.4/sun4-solaris-64int
/opt/local32/lib/perl5/site_perl/5.8.4
/opt/local32/lib/perl5/site_perl
| |
| Barone, Philip 2005-10-25, 6:59 pm |
| Did this question ever get resolved?
I am trying to compile the same with Perl 5.8.7 on a "SunOS hostname 5.8
Generic_117350-21 sun4u sparc SUNW,Ultra-60" and am getting the same
error using forte_6.0_u1_p8.
-----Original Message-----
From: owner-ptk@lists.Stanford.EDU [mailto:owner-ptk@lists.Stanford.EDU]
On Behalf Of Christophe Martin
Sent: Wednesday, July 07, 2004 8:39 AM
To: ptk@lists.Stanford.EDU
Subject: Troubles compiling Tk-804.027 on sparc solaris9 win SUN CC
Hello,
I tried to install Tk-804.027, using perl -MCPAN -e shell and it could
not compile ~/.cpan/build/Tk-804.027/PNG/imgPNG.c
I use solaris 9 on a sparc workstation, with perl 5.8.4 64-bits-ints,
and solaris SUNWspro CC 5.0. The error message was :
/opt/SUNWspro/bin/cc -c -I.. -Ilibpng -Izlib -I/usr/openwin/include
-I/opt/local32/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION=\"4.003\" -DXS_VERSION=\"804.027\" -KPIC
"-I/opt/local32/lib/perl5/5.8.4/sun4-solaris-64int/CORE"
imgPNG.c
"imgPNG.c", line 516: controlling expressions must have scalar type
"imgPNG.c", line 703: controlling expressions must have scalar type
cc: acomp failed for imgPNG.c
I had to finish by hands. I changed the faulty lines, and could compile.
make test was then successful:
diff imgPNG.c.orig imgPNG.c
516c516
< } else if (png_get_gAMA) {
---
> } else if (1 && png_get_gAMA) {
703c703
< if (png_set_gAMA) {
---
> if (1 && png_set_gAMA) {
Just before running make install, I'd like to be sure this test really
tests whatever it is supposed to test (sorry for the confusion ;-), so
if someone can confirm that everything is fine from the output below...
Christophe
--
char*p=" c+)1+)I1+++(Y1)I1)1)I1)19Y(QII1)1)I1)19Q
(K)K+)I1+9I(a)I1)II1))AA
(91)I\
1)II1)199(3+)1)K+)19;(";main(_){while(*p){for(_=*p-32>>3;_;--_)putchar('
');if (!(_=*p++-32&7))putchar('\n');else while(_--)printf("_/");}}
Script started on Wed Jul 07 11:27:02 2004
sh-2.05$ perl -v
This is perl, v5.8.4 built for sun4-solaris-64int
Copyright 1987-2004, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the GNU General Public License, which may be found in the Perl 5
source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to
the Internet, point your browser at http://www.perl.com/, the Perl Home
Page.
sh-2.05$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=solaris, osvers=2.9, archname=sun4-solaris-64int
uname='sunos pointu 5.9 generic_112233-07 sun4u sparc sunw,ultra-4
'
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='/opt/SUNWspro/bin/cc', ccflags ='-I/opt/local32/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O',
cppflags='-I/opt/local32/include'
ccversion='WorkShop Compilers 5.0 98/12/15 C 5.0', 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', ls size=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='/opt/SUNWspro/bin/cc', ldflags ='-L/opt/local32/lib '
libpth=/usr/lib /opt/local32/lib
libs=-lsocket -lnsl -ldb -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
/opt/local32/lib/perl5/5.8.4/sun4-solaris-64int/CORE'
cccdlflags='-KPIC', lddlflags='-G -L/opt/local32/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
Built under solaris
Compiled at Jun 1 2004 10:33:40
@INC:
/opt/local32/lib/perl5/5.8.4/sun4-solaris-64int
/opt/local32/lib/perl5/5.8.4
/opt/local32/lib/perl5/site_perl/5.8.4/sun4-solaris-64int
/opt/local32/lib/perl5/site_perl/5.8.4
/opt/local32/lib/perl5/site_perl
|
|
|
|
|