RE: Troubles compiling Tk-804.027 on sparc solaris9 win SUN CC
"Barone, Philip" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <[email protected]> |
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: [email protected] [mailto:[email protected]] On Behalf Of Christophe Martin Sent: Wednesday, July 07, 2004 8:39 AM To: [email protected] 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', lseeksize=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 . sh-2.05$ make test cd pTk && make DEFINE="" cd zlib && make libz.a "CC=/opt/SUNWspro/bin/cc -KPIC" RANLIB=":" `libz.a' is up to date. cd jpeg && make libjpeg.a `libjpeg.a' is up to date. PERL_DL_NONLAZY=1 /opt/local32/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/JP.t t/KR.t t/Require.t t/Trace.t t/X.t t/after.t t/autoload.t t/balloon.t t/browseentry-grabtest.t t/browseentry-subclassing.t t/browseentry.t t/browseentry2.t t/button.t t/create.t t/cursor.t t/dash.t t/dialogbox.t t/entry.t t/fbox.t t/fileevent.t t/fileselect.t t/font.t t/fork.t t/geomgr.t t/iso8859-1.t t/leak.t t/list.t t/listbox.t t/listvar.t t/magic.t t/mega.t t/mwm.t t/optmenu.t t/photo.t t/pixmap.t t/progbar.t t/regexp.t t/slaves.t t/trace1.t t/widget.t t/wm-time.t t/wm.t t/zzHList.t t/zzPhoto.t t/zzScrolled.t t/zzText.t t/zzTixGrid.t t/after......................ok t/autoload...................ok t/balloon....................ok t/browseentry-grabtest.......ok t/browseentry-subclassing....ok t/browseentry................ok t/browseentry2...............ok t/button.....................ok t/create.....................ok t/cursor.....................ok t/dash.......................ok t/dialogbox..................ok t/entry......................ok 15/336 skipped: various reasons t/fbox.......................ok t/fileevent..................ok t/fileselect.................ok t/font.......................ok t/fork.......................ok t/geomgr.....................ok t/iso8859-1..................ok t/JP.........................skipped all skipped: locale's 'iso-8859-1' cannot represent Japanese. t/KR.........................skipped all skipped: locale's 'iso-8859-1' cannot represent Korean. t/leak.......................ok t/list.......................ok t/listbox....................ok 4/437 skipped: various reasons, 3/437 unexpectedly succeeded t/listvar....................ok t/magic......................ok t/mega.......................ok t/mwm........................ok t/optmenu....................ok t/photo......................ok 4/100 skipped: various reasons t/pixmap.....................ok t/progbar....................ok t/regexp.....................ok t/Require....................ok t/slaves.....................ok t/Trace......................ok t/trace1.....................ok t/widget.....................ok t/wm-time....................ok t/wm.........................ok t/X..........................ok t/zzHList....................ok t/zzPhoto....................ok t/zzScrolled.................ok t/zzText.....................ok t/zzTixGrid..................ok All tests successful (3 subtests UNEXPECTEDLY SUCCEEDED), 2 tests and 23 subtests skipped. Files=47, Tests=2054, 114 wallclock secs (78.20 cusr + 7.40 csys = 85.60 CPU) cd zlib && make libz.a "CC=/opt/SUNWspro/bin/cc -KPIC" RANLIB=":" `libz.a' is up to date. PERL_DL_NONLAZY=1 /opt/local32/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t t/basic....ok All tests successful. Files=1, Tests=4, 2 wallclock secs ( 1.15 cusr + 0.17 csys = 1.32 CPU) ./pngtest Testing libpng version 1.2.5 with zlib version 1.1.3 libpng version 1.2.5 - October 3, 2002 Copyright (c) 1998-2002 Glenn Randers-Pehrson Copyright (c) 1996-1997 Andreas Dilger Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc. library (10205): libpng version 1.2.5 - October 3, 2002 (header) pngtest (10205): libpng version 1.2.5 - October 3, 2002 (header) sizeof(png_struct)=592, sizeof(png_info)=288 Testing pngtest.png: Pass 0: rwrwrwrwrwrwrwrwrw Pass 1: rwrwrwrwrwrwrwrwrw Pass 2: rwrwrwrwrwrwrwrw Pass 3: rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw Pass 4: rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw Pass 5: rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw rwrwrwrw Pass 6: rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw rwrwrwrwrw PASS (9782 zero samples) Filter 0 was used 21 times Filter 1 was used 15 times Filter 2 was used 52 times Filter 3 was used 10 times Filter 4 was used 33 times tIME = 7 Jun 1996 17:58:08 +0000 Current memory allocation: 0 bytes Maximum memory allocation: 337346 bytes Total memory allocation: 1023516 bytes Number of allocations: 198 libpng passes test hello world uncompress(): hello, hello! gzread(): hello, hello! gzgets() after gzseek: hello! inflate(): hello, hello! large_inflate(): OK after inflateSync(): hello, hello! inflate with dictionary: hello, hello! *** zlib test OK *** cd jpeg && make libjpeg.a `libjpeg.a' is up to date. PERL_DL_NONLAZY=1 /opt/local32/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t t/more....ok t/Read....ok All tests successful. Files=2, Tests=42, 6 wallclock secs ( 2.86 cusr + 0.46 csys = 3.32 CPU) rm -f testout* ./djpeg -dct int -ppm -outfile testout.ppm ./testorig.jpg ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp ./testorig.jpg ./cjpeg -dct int -outfile testout.jpg ./testimg.ppm ./djpeg -dct int -ppm -outfile testoutp.ppm ./testprog.jpg ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg ./testimg.ppm ./jpegtran -outfile testoutt.jpg ./testprog.jpg cmp ./testimg.ppm testout.ppm cmp ./testimg.bmp testout.bmp cmp ./testimg.jpg testout.jpg cmp ./testimg.ppm testoutp.ppm cmp ./testimgp.jpg testoutp.jpg cmp ./testorig.jpg testoutt.jpg PERL_DL_NONLAZY=1 /opt/local32/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t t/basic....ok All tests successful. Files=1, Tests=1, 0 wallclock secs ( 0.30 cusr + 0.04 csys = 0.34 CPU) sh-2.05$ exit script done on Wed Jul 07 11:42:30 2004 -++**==--++**==--++**==--++**==--++**==--++**==--++**== This message was posted through the Stanford campus mailing list server. If you wish to unsubscribe from this mailing list, send the message body of "unsubscribe ptk" to [email protected] -++**==--++**==--++**==--++**==--++**==--++**==--++**== This message was posted through the Stanford campus mailing list server. If you wish to unsubscribe from this mailing list, send the message body of "unsubscribe ptk" to [email protected]