Bug 254205 - Compiling fails on SPARC platform because "qDNGBigEndian" macro is not defined.
Summary: Compiling fails on SPARC platform because "qDNGBigEndian" macro is not defined.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-14 23:11 UTC by Jean-Fred
Modified: 2017-08-19 20:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 1.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Fred 2010-10-14 23:11:41 UTC
Version:           1.5.0 (using KDE 4.4.5) 
OS:                Linux

This is for SPARC platform only!!!

Compiling fails generating "Unable to figure out byte order." error...
The reason is that "qDNGBigEndian" is not defined when compiling for SPARC architecture. This is because SPARC architecture is not managed at all in "dng_flags.h"

Adding:
#elif defined(__sparc__)
#define qDNGBigEndian 1

on line 76 of "dng_flags.h" fixes the issue:
- Compiling now works OK.
- Compiled application works OK.


Reproducible: Always

Steps to Reproduce:
On SPARC machine:
- Compile from source as per kipi-plugins README recommendations. From kipi-plugin root directory:
    cmake.
    make


Actual Results:  
At some point compilation stops with error: "Unable to figure out byte order."

Expected Results:  
Compilation finishes successfully!!!

On SPARC architecture (UltraSPARC-10 running debian "Squeeze").
Comment 1 caulier.gilles 2010-10-15 10:24:46 UTC
SVN commit 1186073 by cgilles:

fix broken compilation under SPARC architecture.
BUGS: 254205


 M  +3 -0      dng_flags.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1186073