bugGnome Chemistry Utils - Bugs: bug #36175, fix build on big endians

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #36175: fix build on big endians

Submitted by:  Dan Horak <sharkcz>
Submitted on:  Sat 14 Apr 2012 03:37:18 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Jean Bréfort <jean_brefort>
Open/Closed: Closed

Sun 15 Apr 2012 09:01:43 AM UTC, comment #2:

Patch commited.

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Sat 14 Apr 2012 04:43:17 PM UTC, comment #1:

Thanks a lot.

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Sat 14 Apr 2012 03:37:18 PM UTC, original submission:

When gnome-chemistry-utils are being built on a big endian platform like s390 or ppc the build fails with the following error

nuts.cc: In member function 'virtual gcu::ContentType NUTSLoader::Read(gcu::Document, GsfInput, const char, GOIOContext)':
nuts.cc:81:7: error: lvalue required as left operand of assignment
nuts.cc:83:29: warning: right operand of comma operator has no effect [-Wunused-value]
nuts.cc:84:22: warning: right operand of comma operator has no effect [-Wunused-value]
nuts.cc:88:21: warning: right operand of comma operator has no effect [-Wunused-value]
nuts.cc:90:21: warning: right operand of comma operator has no effect [-Wunused-value]
nuts.cc:92:28: warning: right operand of comma operator has no effect [-Wunused-value]
nuts.cc:93:21: warning: right operand of comma operator has no effect [-Wunused-value]
nuts.cc:94:22: warning: right operand of comma operator has no effect [-Wunused-value]
nuts.cc:95:21: warning: right operand of comma operator has no effect [-Wunused-value]
nuts.cc:97:22: warning: right operand of comma operator has no effect [-Wunused-value]
nuts.cc:98:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
nuts.cc:98:20: warning: right operand of comma operator has no effect [-Wunused-value]
nuts.cc:99:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
nuts.cc:99:20: warning: right operand of comma operator has no effect [-Wunused-value]
nuts.cc:101:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
nuts.cc:101:26: warning: right operand of comma operator has no effect [-Wunused-value]
...

Dan Horak <sharkcz>

 

Attached Files
file #25642:  gnome-chemistry-utils-0.13.6-bigendian.patch added by sharkcz (1KiB - text/x-patch - fix for big endian platforms)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sharkcz (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 15 Apr 2012 09:01:43 AM UTCjean_brefortStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sat 14 Apr 2012 04:43:17 PM UTCjean_brefortStatusNone=>Confirmed
      Assigned toNone=>jean_brefort
    Sat 14 Apr 2012 03:37:18 PM UTCsharkczAttached File-=>Added gnome-chemistry-utils-0.13.6-bigendian.patch, #25642

    Back to the top


    Powered by Savane 3.1-cleanup1