----- Original Message -----
From: "Greg Ederer" <[EMAIL PROTECTED]>
.
.
I do see the typemap, with "double" defined:
[EMAIL PROTECTED]:~ % grep double /usr/local/lib/perl/ExtUtils/typemap
double T_DOUBLE
$var = (double)SvNV($arg)
sv_setnv($arg, (double)$var);
sv_setnv($arg, (double)$var);
Looks like it contains what it ought to.
It looks like Inline is NOT installed: does it need to be?
No - that was just the simplest way I could think (off the top of my head)
of verifying that the typemap was being found and contained what it needed
to contain.
(If you want to use Inline::Pdlpp you will need Inline installed but I don't
think it's needed for anything else.)
I invoked the build with
perl Makefile.PL --prefix=/home/gederer/usr
Shouldn't that be:
perl Makefile.PL PREFIX=/home/gederer/usr
but perhaps I need to edit Makefile.PL and mess with some environment
vars, since I do not have perl installed in my home directory?
Not that I know of (though I'm no expert). For a start I would try grabbing
a simpler, more straightforward, module (eg Math::FFT) and see if there are
any problems building it with
perl Makefile.PL PREFIX=/home/gederer/usr
If that does give some trouble, run:
make clean
perl Makefile.PL
make test
And see if that's any better. As you said, you won't be able to run 'make
install' but that shouldn't affect the preceding steps in the build process.
Come to think of it, Math::FFT will also fail to build if it can't find a
typemap entry for double. If I remove the "double" stuff from the typemap
and try to build it (on Win32) I get:
----------------------------------------------
C:\_32\comp\Math-FFT-1.28>perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Math::FFT
C:\_32\comp\Math-FFT-1.28>dmake test
cp FFT.pm blib\lib\Math\FFT.pm
C:\perl58_M\bin\perl.exe C:\perl58_M\lib\ExtUtils\xsubpp -typemap
C:\perl58_M\l
ib\ExtUtils\typemap -typemap typemap FFT.xs > FFT.xsc &&
C:\perl58_M\bin\perl.e
xe -MExtUtils::Command -e mv FFT.xsc FFT.c
Error: 'double' not in typemap in FFT.xs, line 211
dmake: Error code 129, while making 'FFT.c'
----------------------------------------------
Note that since /home/gederer/usr is not in @INC you *will* need to take
some additional steps so that modules installed in that location can be
loaded (used). See, for example, 'perldoc lib'. (Sorry ... you're probably
already aware of this. :- )
Cheers,
Rob
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl