Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 45922
Status: resolved
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: fayland [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.90
Fixed in: (no value)



Subject: Wx install fails on Win32
Here is the fixed file that made it work on my vista machine. without it, malloc,realloc and free gets replaced with Perl's. Please See the bzip2 archive for an example of what happens. and my_perl variable is becomes needed and hence the error. Regards, Ahmad M. zawawi

Message body is not shown because it is too large.

///////////////////////////////////////////////////////////////////////////// // Name: cpp/wxapi.h // Purpose: Magic to be included to get access to wxPerl API // Author: Mattia Barbon // Modified by: // Created: 21/09/2002 // RCS-ID: $Id: wxapi.h 2532 2009-02-21 08:51:16Z mbarbon $ // Copyright: (c) 2002-2003, 2005-2009 Mattia Barbon // Licence: This program is free software; you can redistribute it and/or // modify it under the same terms as Perl itself ///////////////////////////////////////////////////////////////////////////// #ifdef __CPP_WXAPI_H #error cpp/wxapi.h must be included only once! #endif #define __CPP_WXAPI_H #undef bool #include <wx/defs.h> #include "cpp/compat.h" #if WXPERL_W_VERSION_LT( 2, 5, 3 ) || WXPERL_W_VERSION_EQ( 2, 7, 0 ) || \ WXPERL_W_VERSION_EQ( 2, 7, 1 ) #error wxWidgets 2.4.x, 2.5.0, 2.5.1, 2.5.2, 2.7.0, 2.7.1 are no longer supported by wxPerl #endif #if WXPERL_W_VERSION_LE( 2, 5, 1 ) #define compatibility_iterator Node* #endif #include "cpp/chkconfig.h" #if defined(__WXWINCE__) #undef __WINDOWS__ #endif #if defined(__VISUALC__) || defined(__DIGITALMARS__) #define mode_t mode_avoid_redefinition_t #endif WXPL_EXTERN_C_START #include <EXTERN.h> #include <perl.h> #include <XSUB.h> WXPL_EXTERN_C_END #if WXPERL_P_VERSION_LT( 5, 10, 0 ) // fix newXS type for perl 5.8 inline CV* wxPli_newXS(pTHX_ const char* name, XSUBADDR_t addr, const char* file) { return newXS( (char*)name, addr, (char*)file ); } #undef newXS #define newXS( a, b, c ) wxPli_newXS( aTHX_ a, b, c ) #endif #if defined(__VISUALC__) || defined(__DIGITALMARS__) #undef mode_t #endif #if WXPERL_P_VERSION_GE( 5, 9, 0 ) || WXPERL_P_VERSION_GE( 5, 8, 1 ) // XXX this is an hack #undef assert_not_ROK #define assert_not_ROK(sv) #endif #undef bool #undef Move #undef Copy #undef New #undef Pause #undef Mkdir #undef Seek #undef Stat #undef Error #if defined( __WXMSW__ ) #undef read #undef write #undef eof #undef form #undef vform #undef setbuf #undef malloc #undef realloc #undef free #endif #undef do_open #undef do_close #undef utf8_length #if __VISUALC__ #pragma warning ( disable: 4800 ) #pragma warning ( disable: 4100 ) // unreferenced formal parameter #pragma warning ( disable: 4101 ) // unreferenced local variable #pragma warning ( disable: 4706 ) // assignment within conditional expression #endif #ifdef __WXMSW__ #include <wx/msw/winundef.h> #endif // __WXMSW__ // some helper functions/classes/macros #include "cpp/helpers.h" // 0.01 -> 0010; 1.01 -> 1010, etc #define WXPL_API_VERSION 0150
Confirm broken for me on XP.
fixed in 0.91. Thanks.