NetBSD-Bugs archive

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

port-macppc/48641: macppc qt5-qtbase build error



>Number:         48641
>Category:       port-macppc
>Synopsis:       macppc qt5-qtbase build error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 05 10:25:00 +0000 2014
>Originator:     James Chang
>Release:        pkgsrc current 2014-02-15
>Organization:
>Environment:
NetBSD MacBSD 6.1.3 NetBSD 6.1.3 (GENERIC) macppc
>Description:
fail to build qt5 5.2.0nb2 package with error message:
tools/qregularexpression.cpp:1241:73: error: passing 'const 
QAtomicPointer<pcre16_extra>' as 'this' argument of 'T* 
QBasicAtomicPointer<T>::loadAcquire() [with T = pcre16_extra]' discards 
qualifiers

It seems to affect all powerpc platforms.
>How-To-Repeat:
cd /usr/pkgsrc/x11/qt5; make

>Fix:
found solution on 
https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=1005482

I re-made the patch for qt 5.2.0:

--- qtbase/src/corelib/thread/qoldbasicatomic.h.orig    2013-12-09 
01:09:52.000000000 +0800
+++ qtbase/src/corelib/thread/qoldbasicatomic.h 2014-03-05 10:17:56.000000000 
+0800
@@ -63,7 +63,7 @@
     // Atomic API, implemented in qatomic_XXX.h
 
     int load() const { return _q_value; }
-    int loadAcquire() { return _q_value; }
+    int loadAcquire() const { return _q_value; }
     void store(int newValue) { _q_value = newValue; }
     void storeRelease(int newValue) { _q_value = newValue; }
 
@@ -107,7 +107,7 @@
     // Atomic API, implemented in qatomic_XXX.h
 
     T *load() const { return _q_value; }
-    T *loadAcquire() { return _q_value; }
+    T *loadAcquire() const { return _q_value; }
     void store(T *newValue) { _q_value = newValue; }
     void storeRelease(T *newValue) { _q_value = newValue; }
 



Home | Main Index | Thread Index | Old Index