For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2005 > Make error for Tk::JPEG









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 Make error for Tk::JPEG
Brian Barto

2005-03-21, 8:55 pm

Hi. I am having a heck of a time installing Tk::JPEG on hpux 11.0. I know
this isn't directly perl related but I'm hoping someone has seen this before
and could lead me in the right direction.

I have downloaded the Tk-JPEG-2.014 source from cpan. I have it unpacked. I
ran "perl Makefile.PL". When I exec "make" it runs for a little bit and then
errors out:

*snip*
gcc -c -I/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/Tk -Ijpeg
-D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -mpa-risc-1-1
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION=\"2.014\" -DXS_VERSION=\"800.024\" -fPIC
"-I/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE" -Wall
-Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__
imgJPEG.c
Running Mkbootstrap for Tk::JPEG ()
chmod 644 JPEG.bs
rm -f blib/arch/auto/Tk/JPEG/JPEG.sl
LD_RUN_PATH="" gcc -shared -static-libgcc -fPIC JPEG.o imgJPEG.o -o
blib/arch/auto/Tk/JPEG/JPEG.sl jpeg/libjpeg.a
/usr/ccs/bin/ld: DP relative code in file jpeg/libjpeg.a(jerror.o) - shared
library must be position
independent. Use +z or +Z to recompile.
collect2: ld returned 1 exit status
gmake: *** [blib/arch/auto/Tk/JPEG/JPEG.sl] Error 1



The apparent error is this: "shared library must be position independent.
Use +z or +Z to recompile."

Anyone have any info? I'm still googling...

Thanks,
Brian

Chris Devers

2005-03-21, 8:55 pm

On Mon, 21 Mar 2005 brian.barto@spectrum-health.org wrote:

> I have downloaded the Tk-JPEG-2.014 source from cpan. I have it unpacked. I
> ran "perl Makefile.PL". When I exec "make" it runs for a little bit and then
> errors out:
>
> *snip*
> gcc -c -I/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/Tk -Ijpeg
> -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -mpa-risc-1-1
> -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
> -DVERSION=\"2.014\" -DXS_VERSION=\"800.024\" -fPIC
> "-I/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE" -Wall
> -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__
> imgJPEG.c


I tried & failed to install this module recently on OSX. I think the
problem in my case, and possibly in yours, you should use a more recent
version of Perl than 5.8.0, if possible.

The README.darwin file warns that the statically built Perl that comes
with OSX won't work, so you have to build your own copy elsewhere. The
same thing seems to apply to HPUX as well -- see the README.HPUX file.




--
Chris Devers cdevers@pobox.com
http://devers.homeip.net:8080/blog/

np: 'I Get Along Without You Very Well'
by Frank Sinatra
from 'In The Wee Small Hours'
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com