pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/51336: graphics/openjpeg does not compile on Solaris 11.2/sparc



>Number:         51336
>Category:       pkg
>Synopsis:       graphics/openjpeg does not compile on Solaris 11.2/sparc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 13 07:15:00 +0000 2016
>Originator:     Joern Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
Compiling graphics/openjpeg on Solaris 11.2/sparc with GCC 4.7.5 fails on the type "u_int16_t" in src/bin/jp2/convert.c.

Quick fix is below, this has been reported upstream as

https://github.com/uclouvain/openjpeg/issues/796
>How-To-Repeat:

>Fix:
--- convert.c   2016/07/13 06:57:27     1.1
+++ convert.c   2016/07/13 06:58:11
@@ -191,8 +191,8 @@
 
 static INLINE int16_t swap16(int16_t x)
 {
-    return((((u_int16_t)x & 0x00ffU) <<  8) |
-           (((u_int16_t)x & 0xff00U) >>  8));
+    return((((uint16_t)x & 0x00ffU) <<  8) |
+           (((uint16_t)x & 0xff00U) >>  8));
 }
 
 #endif

seems to fix the problem



Home | Main Index | Thread Index | Old Index