bugGPSD - Bugs: bug #46940, driver_rtcm2.c build fails on OSX...

 
 

bug #46940: driver_rtcm2.c build fails on OSX PPC

Submitter:  Fred Wright <fhgwright>
Submitted:  Wed 20 Jan 2016 11:57:19 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  esr
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 20 Jan 2016 11:57:19 PM UTC, original submission:  

OSX 10.5, when building for PPC, defines _BIG_ENDIAN as 1, which satisfies the BSD ifdef, but doesn't have the expected value.  The result is an "endianness macros are not defined" error.  This bug goes back at least as far as 3.14, but I don't think it was ever reported here.

The fix is quite simple - moving the Darwin __BYTE_ORDER setup ahead of the BSD __BYTE_ORDER setup so that the Darwin definitions take precedence.  This should have no effect on a platform that doesn't define the __DARWIN_xxx macros.

The actual fix is from ryandesign@macports.org, though I added a comment line clarifying the reason that the order matters.

Attached is the relevant patch, based on the 3.16 release source.

Fred Wright <fhgwright>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #36104:  patch-driver_rtcm2.c.diff added by fhgwright (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by esr (Updated the item)
  • -email is unavailable- added by fhgwright (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-09-07 esr Open/ClosedOpen Closed
    2016-01-21 esr StatusNone Fixed
        Assigned toNone esr
    2016-01-20 fhgwright Attached File- Added patch-driver_rtcm2.c.diff, #36104

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code