Make error for Tk::JPEG

Make error for Tk::JPEG

am 21.03.2005 21:09:03 von brian.barto

------_=_NextPart_001_01C52E51.D406E43D
Content-Type: text/plain;
charset="iso-8859-1"

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

------_=_NextPart_001_01C52E51.D406E43D--

Re: Make error for Tk::JPEG

am 21.03.2005 21:38:46 von Chris Devers

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'

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org