Hi zentara:

This module is still a bit rough:  I notice this in Makefile.PL:

  my $mycflags = '';
  chomp (my $processor = eval { `uname -p` });
  if (defined ($processor) and ($processor eq 'x86_64')) {
      $mycflags .= " -fPIC";
  }

Does this logic not show your processor as being 'x86_64'?

I think fiddling this logic to allow $mycflags to contain " -fPIC"
would do the trick.

Patches welcome...

Regards,

  Doug

[email protected]
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611

On Tue, 17 Jan 2012, zentara wrote:

On Tue, 17 Jan 2012 10:57:36 -0700 (MST)
Doug Hunt <[email protected]> wrote:

Hi Fabio:  I've done some similar things using PDL.

I've put a graphics module on CPAN called PDL::Planet:

http://search.cpan.org/~dhunt/PDL-Planet-0.12/

which is useful for projecting and plotting planetary images, and
decorating them with symbols (PDL::Graphics::PLplot with the 'mem' device
is also useful in this regard).

I've also attached another module that I've not yet put on CPAN that
computes orbits from Two Line Element files (PDL::Orbit).

Hi Doug, I thought these examples would be good in the PLPlot
cookbook, but I get the following error when trying to build them
on a 64 bit Slackware system

Thanks,
zentara

rm -f blib/arch/auto/PDL/Orbit/Orbit.so
cc  -shared -O2 -L/usr/local/lib -fstack-protector Orbit.o orbit_main.o 
libsgp4sdp4/libsgp4sdp4.a  -o blib/arch/auto/PDL/Orbit/Orbit.so         \

/usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../x86_64-slackware-linux/bin/ld:
 orbit_main.o: relocation R_X86_64_32 against `.rodata' can not be used when 
making a shared object; recompile with -fPIC
orbit_main.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/PDL/Orbit/Orbit.so] Error 1


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to