Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > make on TK fails on Solaris 10

Reply
Thread Tools

make on TK fails on Solaris 10

 
 
mariakvelasco@gmail.com
Guest
Posts: n/a
 
      11-08-2007
Hello,

We are in need of some help or suggestions. We are trying to build the
TK modules on Solaris 10. We downloaded Tk-804.027.tar.gz from CPAN
and extracted the compressed tarfile using gunzip and tar, then we
created the makefile by running the command perl Makefile.PL, which
succeeded. However, when we ran make, we get the following errors:

cd pTk && make DEFINE=""
cd zlib && make libz.a "CC=cc" RANLIB=":"
`libz.a' is up to date.
cc -c -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/Tk -Ilibpng -
Izlib -I/usr/openwin/include -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -DVERSION=\"4.003\" -DXS_VERSION=
\"800.025\" "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" PNG.c
PNG.xs:26: warning: data definition has no type or storage class
PNG.xs: In function `boot_Tk__PNG':
PNG.xs:35: `IMPORT_PHOTO' undeclared (first use in this function)
PNG.xs:35: (Each undeclared identifier is reported only once
PNG.xs:35: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `PNG.o'
Current working directory /tmp/Tk-804.027/PNG
*** Error code 1
The following command caused the error:
cd PNG && make -f Makefile all LIBPERL_A="libperl.a"
LINKTYPE="dynamic" PREFIX="" OPTIMIZE="" PASTHRU_DEFINE=""
PASTHRU_INC=""
make: Fatal error: Command failed for target `subdirs'

We are using Perl version 5.8.4 on Solaris 10 and we have posted the
same question on www.cpanforum.com but have gotten no replies. We are
hoping someone on this might be able to help us out.

Does anyone have any suggestions on how to get rid of these errors?
Any help would be greatly appreciated, please.

Thanks!

 
Reply With Quote
 
 
 
 
Ben Morrow
Guest
Posts: n/a
 
      11-09-2007

Quoth http://www.velocityreviews.com/forums/(E-Mail Removed):
>
> We are in need of some help or suggestions. We are trying to build the
> TK modules on Solaris 10. We downloaded Tk-804.027.tar.gz from CPAN
> and extracted the compressed tarfile using gunzip and tar, then we
> created the makefile by running the command perl Makefile.PL, which
> succeeded. However, when we ran make, we get the following errors:
>
> cd pTk && make DEFINE=""
> cd zlib && make libz.a "CC=cc" RANLIB=":"
> `libz.a' is up to date.
> cc -c -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/Tk -Ilibpng -
> Izlib -I/usr/openwin/include -D_LARGEFILE_SOURCE -
> D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -DVERSION=\"4.003\" -DXS_VERSION=
> \"800.025\" "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" PNG.c
> PNG.xs:26: warning: data definition has no type or storage class
> PNG.xs: In function `boot_Tk__PNG':
> PNG.xs:35: `IMPORT_PHOTO' undeclared (first use in this function)


IMPORT_PHOTO is #defined in vtab.def, which is included from tkGlue.h,
which is included from PNG.xs. Since your cc didn't report being unable
to include those files, I presume it was finding incorrect versions. Do
you already have an install of Tk in
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/Tk ? I don't really
understand why you are getting a -I switch for that directory rather
than for /tmp/Tk-804.027 . If you do have an older version of Tk
installed, it might be worth removing it first.

Otherwise, is there some switch you can give to your cc that will tell
you where it's finding each include file (often running a file through
cc -E, with all the other switches in the commandline above, will give
you a preprocessed file with #line directives in) so we can see what's
going on?

Ben

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Build of extension module depending on external lib fails on Solaris 10 Eric Brunel Python 1 11-21-2008 10:33 PM
pod2usage fails running setuid on Solaris Dan Perl Misc 0 12-22-2006 02:19 PM
perl 5.8.7 build fails on Solaris 6 nijabop@gmail.com Perl Misc 2 11-21-2005 02:03 PM
perl 5.8.7 build fails on Solaris 6 nijabop@gmail.com Perl Misc 0 11-18-2005 03:48 PM
Make problem on Solaris : how to use Modules/Setup.config.in Christophe Python 0 08-24-2004 10:13 PM



Advertisments