I am having an issue trying to get the Inline::Python module to build.  I am 
getting the following
fatal error and don't know how to resolve it.  I have tried using both make and 
nmake, and
I get the same result.

This seems to be a known issue but I can't quite seem to find the solution to 
my problem
documented anywhere.

Does anyone out there have a solution to offer?  It seems like a change in the 
perlmodule.c
file is required, but I don't know exactly what it would be.  There are two 
other minor
warnings, but the files compile at least(Python.c and py2pl.c).

I need this module installed in order to use the Wiki::Gateway module that I 
really need
on my Cygwin installation on a Windows XP system.

Thanks,

Tim Corboline
[EMAIL PROTECTED]
==================================================================
Writing Makefile for Inline::Python
make[1]: Entering directory `/home/corbo/.cpan/build/Inline-Python-0.22'
cp Python.pm blib/lib/Inline/Python.pm
cp Python.pod blib/lib/Inline/Python.pod
/usr/bin/perl.exe /usr/lib/perl5/5.8/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.
8/ExtUtils/typemap  Python.xs > Python.xsc && mv Python.xsc Python.c
gcc -c  -I/usr/include/python2.5 -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pi
pe -Wdeclaration-after-statement -DUSEIMPORTLIB -O3   -DVERSION=\"0.22\" -DXS_VE
RSION=\"0.22\"  "-I/usr/lib/perl5/5.8/cygwin/CORE"  -DEXPOSE_PERL -DCREATE_PYTHO
N -UCREATE_PERL Python.c
Python.xs: In function `XS_Inline__Python_py_call_method':
Python.xs:284: warning: cast to pointer from integer of different size
Python.xs: In function `XS_Inline__Python__Object_DESTROY':
Python.xs:373: warning: cast to pointer from integer of different size
gcc -c  -I/usr/include/python2.5 -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pi
pe -Wdeclaration-after-statement -DUSEIMPORTLIB -O3   -DVERSION=\"0.22\" -DXS_VE
RSION=\"0.22\"  "-I/usr/lib/perl5/5.8/cygwin/CORE"  -DEXPOSE_PERL -DCREATE_PYTHO
N -UCREATE_PERL py2pl.c
py2pl.c: In function `Py2Pl':
py2pl.c:100: warning: cast from pointer to integer of different size
py2pl.c: In function `Pl2Py':
py2pl.c:223: warning: cast to pointer from integer of different size
gcc -c  -I/usr/include/python2.5 -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pi
pe -Wdeclaration-after-statement -DUSEIMPORTLIB -O3   -DVERSION=\"0.22\" -DXS_VE
RSION=\"0.22\"  "-I/usr/lib/perl5/5.8/cygwin/CORE"  -DEXPOSE_PERL -DCREATE_PYTHO
N -UCREATE_PERL perlmodule.c
perlmodule.c:159: warning: inconsistent dll linkage for 'PerlPkg_type', dllexpor
t assumed.
perlmodule.c:160: error: initializer element is not constant
perlmodule.c:160: error: (near initialization for `PerlPkg_type.ob_type')
perlmodule.c:254: warning: inconsistent dll linkage for 'PerlObj_type', dllexpor
t assumed.
perlmodule.c:255: error: initializer element is not constant
perlmodule.c:255: error: (near initialization for `PerlObj_type.ob_type')
perlmodule.c:517: warning: inconsistent dll linkage for 'PerlSub_type', dllexpor
t assumed.
perlmodule.c:518: error: initializer element is not constant
perlmodule.c:518: error: (near initialization for `PerlSub_type.ob_type')
make[1]: *** [perlmodule.o] Error 1
make[1]: Leaving directory `/home/corbo/.cpan/build/Inline-Python-0.22'
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
*** Inline::Python installation failed.
*** ExtUtils::AutoInstall installation finished.
/usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/l
ib', 'blib/arch')" t/main.t
t/main....Can't locate Inline/Python.pm in @INC (@INC contains: /home/corbo/.cpa
n/build/Wiki-Gateway-0.001991/inc /home/corbo/.cpan/build/Wiki-Gateway-0.001991/
blib/lib /home/corbo/.cpan/build/Wiki-Gateway-0.001991/blib/arch /usr/lib/perl5/
5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5
/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwi
n /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 . ./t) at /home/
corbo/.cpan/build/Wiki-Gateway-0.001991/blib/lib/Wiki/Gateway.pm line 87.
BEGIN failed--compilation aborted at /home/corbo/.cpan/build/Wiki-Gateway-0.0019
91/blib/lib/Wiki/Gateway.pm line 87.
Compilation failed in require at t/testWikiGatewayDuringInstall.pm line 11.
BEGIN failed--compilation aborted at t/testWikiGatewayDuringInstall.pm line 11.
Compilation failed in require at (eval 14) line 1.
t/main....dubious
        Test returned status 2 (wstat 512, 0x200)
FAILED--1 test script could be run, alas--no output ever seen
make: *** [test_dynamic] Error 2
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

cpan>




      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

Reply via email to