Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: derhoermi [...] gmx.net
Cc:
AdminCc:

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



Subject: -D_USE_32BIT_TIME_T mismatch between Wx and Alien::wxWidgets
Date: Fri, 25 Nov 2011 16:21:19 +0100
To: bug-wx [...] rt.cpan.org
From: Bjoern Hoehrmann <derhoermi [...] gmx.net>
Hi, Current versions of Alien::wxWidgets and Wx and WxWidgets do not work together on Windows with ActiveState Perl and Visual Studio >= 2005. In particular, the Wx module does not link because it cannot find some of the logging functions like DoLogString exported, which is due to a type error, for some reason Wx is compiled with -D_USE_32BIT_TIME_T while the Alien::wxWidget module isn't, so the time_t parameter there is exported as 64bit but imported as 32bit. When -D_USE_32BIT_TIME_T is removed from the Makefile it links fine and passes the test suite. I don't understand the build system well enough to tell where -D_USE_32BIT_TIME_T is from and why Alien::wxWidgets doesn't end up using it when compiling. regards, -- Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Subject: Re: [rt.cpan.org #72726] -D_USE_32BIT_TIME_T mismatch between Wx and Alien::wxWidgets
Date: Fri, 25 Nov 2011 15:48:13 +0000
To: bug-Wx [...] rt.cpan.org
From: Mark Dootson <mark.dootson [...] znix.com>
Hi, -D_USE_32BIT_TIME_T is part of ActivePerl configuration ( see perl -V:ccflags ) so this gets used building all Perl modules. Currently Alien::wxWidgets does not pass all Perl flags to the wxWidgets build (most are irrelevant there). I assume by 'current version' you mean wxWidgets development versions 2.9.x and not the stable version 2.8.12? The next development version (2.9.3) is due for a release in early December by which time a new Alien::wxWidgets should have been released. I'm assuming the fix will be to add -D_USE_32BIT_TIME_T to the wxWidgets build. Regards Mark On 25/11/2011 15:21, Bjoern Hoehrmann via RT wrote: Show quoted text
> Fri Nov 25 10:21:26 2011: Request 72726 was acted upon. > Transaction: Ticket created by derhoermi@gmx.net > Queue: Wx > Subject: -D_USE_32BIT_TIME_T mismatch between Wx and Alien::wxWidgets > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: derhoermi@gmx.net > Status: new > Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=72726> > > > Hi, > > Current versions of Alien::wxWidgets and Wx and WxWidgets do not work > together on Windows with ActiveState Perl and Visual Studio>= 2005. In > particular, the Wx module does not link because it cannot find some of > the logging functions like DoLogString exported, which is due to a type > error, for some reason Wx is compiled with -D_USE_32BIT_TIME_T while the > Alien::wxWidget module isn't, so the time_t parameter there is exported > as 64bit but imported as 32bit. When -D_USE_32BIT_TIME_T is removed from > the Makefile it links fine and passes the test suite. I don't understand > the build system well enough to tell where -D_USE_32BIT_TIME_T is from > and why Alien::wxWidgets doesn't end up using it when compiling. > > regards,
Subject: Re: [rt.cpan.org #72726] -D_USE_32BIT_TIME_T mismatch between Wx and Alien::wxWidgets
Date: Fri, 25 Nov 2011 16:59:34 +0100
To: bug-Wx [...] rt.cpan.org
From: Bjoern Hoehrmann <derhoermi [...] gmx.net>
* Mark Dootson via RT wrote: Show quoted text
>I assume by 'current version' you mean wxWidgets development versions >2.9.x and not the stable version 2.8.12?
I meant 2.9.2. I also tried 2.8.12 but that would not link either, and I think the list of errors there was longer, so I debugged the one with fewer errors. Would have been easier if Visual Studio would point out which very very similar methods are exported when it can't find one... -- Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Subject: Re: [rt.cpan.org #72726] -D_USE_32BIT_TIME_T mismatch between Wx and Alien::wxWidgets
Date: Fri, 25 Nov 2011 18:18:35 +0000
To: bug-Wx [...] rt.cpan.org
From: Mark Dootson <mark.dootson [...] znix.com>
Hi, Thanks to your note that -D_USE_32BIT_TIME_T was the issue I have fixed in svn and tested against ActivePerl 1401 using wxWidgets 2.8.12 and the current svn using Visual Studio 10. I wonder if you could find the time to test with your setup? svn code available from: svn export https://wxperl.svn.sourceforge.net/svnroot/wxperl/Alien-wxWidgets/trunk Alien-wxWidgets svn export https://wxperl.svn.sourceforge.net/svnroot/wxperl/wxPerl/trunk wxPerl Alien::wxWidgets will suggest that you can build 2.9.3 which you cannot yet ( it has not been released ). Regards Mark On 25/11/2011 15:59, Bjoern Hoehrmann via RT wrote: Show quoted text
> Queue: Wx > Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=72726> > > * Mark Dootson via RT wrote:
>> I assume by 'current version' you mean wxWidgets development versions >> 2.9.x and not the stable version 2.8.12?
> > I meant 2.9.2. I also tried 2.8.12 but that would not link either, and > I think the list of errors there was longer, so I debugged the one with > fewer errors. Would have been easier if Visual Studio would point out > which very very similar methods are exported when it can't find one...
Subject: Re: [rt.cpan.org #72726] -D_USE_32BIT_TIME_T mismatch between Wx and Alien::wxWidgets
Date: Sat, 26 Nov 2011 03:09:21 +0100
To: bug-Wx [...] rt.cpan.org
From: Bjoern Hoehrmann <derhoermi [...] gmx.net>
* Mark Dootson via RT wrote: Show quoted text
>Thanks to your note that -D_USE_32BIT_TIME_T was the issue I have fixed >in svn and tested against ActivePerl 1401 using wxWidgets 2.8.12 and the >current svn using Visual Studio 10. > >I wonder if you could find the time to test with your setup?
The svn versions, building WxWidgets 2.9.2 from source with ActivePerl and Visual Studio 2010, compile, link, test, and install fine for me. -- Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Fixed in Wx release 0.9904 and Alien::wxWidgets 0.55