in reply to Re^2: PXPerl CPAN windows problem
in thread PXPerl CPAN windows problem

I figured I just forgot to install some basic stuff for compiling

No -it's nothing you've overlooked. I've come across this problem before - I think it has been fixed in perl 5.8.8. If not, it has been fixed in bleadperl and should therefore be fixed in perl 5.8.9.

If you go into C:/PXPerl/lib/CORE/win32.h you should be able to find the following block of code:
#ifndef _INTPTR_T_DEFINED typedef int intptr_t; # define _INTPTR_T_DEFINED #endif #ifndef _UINTPTR_T_DEFINED typedef unsigned int uintptr_t; # define _UINTPTR_T_DEFINED #endif

Just before that above code, insert:
#ifdef _STDINT_H #ifndef _INTPTR_T_DEFINED #define _INTPTR_T_DEFINED #endif #ifndef _UINTPTR_T_DEFINED #define _UINTPTR_T_DEFINED #endif #endif

And that should fix that problem for you. Probably best to first make a backup copy of win32.h in case you mess something up with the copy'n'paste :-)

I think the blame lies with win32.h - though it's interesting to note that this problem would not arise if ExtUtils::ParseXS did not insist on inserting the "-IC:\mingw\include" switch.

Cheers,
Rob

Replies are listed 'Best First'.
Re^4: PXPerl CPAN windows problem
by rustyjuggler (Initiate) on Oct 05, 2006 at 09:11 UTC
    Thanks for the help, it seems that it got a little further, but not finished. Now I ran install Bundle::CPAN because some of the modules are missing. This is the end of the messages, the rest I didn'y get:

    Thanks for all the help so far

    Anders, Norway

    Edited by planetscape - added readmore tags

      Have a look at Jacques's Cheat Sheet for a way to capture all that nasty output:

      make test > test.txt 2>&1

      Usually when I'm at the point you're at, I try downloading and manually installing the problem modules. If nothing else, that allows you to break the problem down into smaller pieces, isolate the real issues, and capture a manageable amount of information to work with, so you don't get feeling so overwhelmed.

      I.e., download http://search.cpan.org/CPAN/authors/id/M/MS/MSHELOR/Digest-SHA-5.43.tar.gz, then:

      perl makefile.pl make make test > test.txt 2>&1 make install

      Good luck,

      planetscape