[Gtk2-perl-bugs] [Bug 585215] New: Perl Glib 64bit test failing in MinGW

View: New views
2 Messages — Rating Filter:   Alert me  

[Gtk2-perl-bugs] [Bug 585215] New: Perl Glib 64bit test failing in MinGW

by Bugzilla from bugzilla-daemon@bugzilla.gnome.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=585215

  gnome-perl | Glib | Ver: unspecified
           Summary: Perl Glib 64bit test failing in MinGW
           Product: gnome-perl
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: Glib
        AssignedTo: gtk2-perl-bugs@...
        ReportedBy: ari.jolma@...
         QAContact: gtk2-perl-bugs@...
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Please describe the problem:
MinGW may(*) use msvcrt.dll in which case the MS sscanf and printf are used,
which means PORTABLE_LL_FORMAT can't contain the standard "l" and must contain
"I64".

That makes 64bit tests fail. If

# ifdef __MSVCRT__

is used instead of

#  ifdef _MSC_VER

when PORTABLE_LL_FORMAT and PORTABLE_ULL_FORMAT are defined in GType.xs, then
the tests are passed.

See similar problem I reported here: http://trac.osgeo.org/gdal/ticket/2649 


Steps to reproduce:
1. Compile Glib in MinGW Perl which uses msvcrt.dll
2. Run tests
3.


Actual results:
64bit tests fail

Expected results:


Does this happen every time?


Other information:


--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=585215.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Gtk2-perl-bugs mailing list
Gtk2-perl-bugs@...
https://lists.sourceforge.net/lists/listinfo/gtk2-perl-bugs

[Gtk2-perl-bugs] [Bug 585215] Perl Glib 64bit test failing in MinGW

by Bugzilla from bugzilla-daemon@bugzilla.gnome.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=585215

  gnome-perl | Glib | Ver: unspecified




------- Comment #1 from Torsten Schoenfeld  2009-06-14 18:56 UTC -------
Created an attachment (id=136576)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=136576&action=view)
Check for _MSC_VER || __MSVCRT__

Judging from <http://msdn.microsoft.com/en-us/library/b0084kay.aspx>, the MS
compiler doesn't seem to define __MSVCRT__.  But how about checking for
_MSC_VER || __MSVCRT__, as in this patch?  Does this work for you too?


--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=585215.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Gtk2-perl-bugs mailing list
Gtk2-perl-bugs@...
https://lists.sourceforge.net/lists/listinfo/gtk2-perl-bugs