ports/171298: [patch] fix build of devel/tinyq with clang

Pawel Worach pawel.worach at gmail.com
Mon Sep 3 22:30:08 UTC 2012


>Number:         171298
>Category:       ports
>Synopsis:       [patch] fix build of devel/tinyq with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 03 22:30:07 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Pawel Worach
>Release:        FreeBSD 10.0-CURRENT
>Organization:
>Environment:
>Description:
This build with clang.

In file included from project.cpp:46:
..work/tinyq-3.0.6/include/qvaluestack.h:53:32: error: use of undeclared identifier 'append'
    void  push( const T& d ) { append(d); }
                               ^
                               this->

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -urN tinyq.orig/files/patch-include-qvaluestack.h tinyq/files/patch-include-qvaluestack.h
--- tinyq.orig/files/patch-include-qvaluestack.h	2006-12-21 19:53:59.000000000 +0000
+++ tinyq/files/patch-include-qvaluestack.h	2012-09-03 22:18:27.000000000 +0000
@@ -1,6 +1,12 @@
---- include/qvaluestack.h.orig	Thu Dec 21 20:51:31 2006
-+++ include/qvaluestack.h	Thu Dec 21 20:52:42 2006
-@@ -55,7 +55,7 @@
+--- include/qvaluestack.h.orig	2002-10-17 15:08:58.000000000 +0000
++++ include/qvaluestack.h	2012-09-03 22:17:15.000000000 +0000
+@@ -50,12 +50,12 @@
+ public:
+     QValueStack() {}
+    ~QValueStack() {}
+-    void  push( const T& d ) { append(d); }
++    void  push( const T& d ) { this->append(d); }
+     T pop()
      {
  	T elem( this->last() );
  	if ( !this->isEmpty() )


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list