From nobody@FreeBSD.org  Sat Oct  1 11:35:48 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2F2AA1065672
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  1 Oct 2011 11:35:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 1DB118FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  1 Oct 2011 11:35:48 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p91BZlnD002606
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 1 Oct 2011 11:35:47 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p91BZl0u002605;
	Sat, 1 Oct 2011 11:35:47 GMT
	(envelope-from nobody)
Message-Id: <201110011135.p91BZl0u002605@red.freebsd.org>
Date: Sat, 1 Oct 2011 11:35:47 GMT
From: Andrei Lavreniyuk <andy.lavr@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [ERROR] cannot portupgrade ports/textproc/jade with CLANG
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         161197
>Category:       ports
>Synopsis:       cannot portupgrade ports/textproc/jade with CLANG
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kuriyama
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 01 11:40:09 UTC 2011
>Closed-Date:    Sun Oct 06 12:36:27 UTC 2013
>Last-Modified:  Sun Oct 06 12:36:27 UTC 2013
>Originator:     Andrei Lavreniyuk
>Release:        FreeBSD 9.0-BETA3
>Organization:
Technica-03, Inc.
>Environment:
FreeBSD opensolaris.technica-03.local 9.0-BETA3 FreeBSD 9.0-BETA3 #0: Thu Sep 29 13:05:43 EEST 2011     root@opensolaris.technica-03.local:/usr/obj/usr/src/sys/SMP64R  amd64
>Description:
clang++ -O2 -pipe -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -march=core2 -fno-strict-aliasing -fno-implicit-templates -I. -I./../include -I./../grove -I./../spgrove -I./../style  -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_ST_BLKSIZE=1 -DSP_HAVE_BOOL=1 -DSP_HAVE_LOCALE=1 -DSP_ANSI_CLASS_INST=1 -DSP_MULTI_BYTE=1 -DSGML_CATALOG_FILES_DEFAULT=\"/usr/local/share/sgml/catalog\" -DHAVE_DLFCN_H=1  -c HtmlFOTBuilder.cxx
clang++: warning: argument unused during compilation: '-fno-implicit-templates'
clang++ -O2 -pipe -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -march=core2 -fno-strict-aliasing -fno-implicit-templates -I. -I./../include -I./../grove -I./../spgrove -I./../style  -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_ST_BLKSIZE=1 -DSP_HAVE_BOOL=1 -DSP_HAVE_LOCALE=1 -DSP_ANSI_CLASS_INST=1 -DSP_MULTI_BYTE=1 -DSGML_CATALOG_FILES_DEFAULT=\"/usr/local/share/sgml/catalog\" -DHAVE_DLFCN_H=1  -c TeXFOTBuilder.cxx
clang++: warning: argument unused during compilation: '-fno-implicit-templates'
In file included from TeXFOTBuilder.cxx:11:
In file included from ./TeXFOTBuilder.h:9:
In file included from ./../style/FOTBuilder.h:12:
./../include/IList.h:29:14: warning: access declarations are deprecated; use using declarations instead [-Wdeprecated]
  IListBase::clear;
             ^
  using 
./../include/IList.h:30:14: warning: access declarations are deprecated; use using declarations instead [-Wdeprecated]
  IListBase::empty;
             ^
  using 
In file included from TeXFOTBuilder.cxx:11:
In file included from ./TeXFOTBuilder.h:9:
In file included from ./../style/FOTBuilder.h:15:
./../include/Ptr.h:73:11: warning: access declarations are deprecated; use using declarations instead [-Wdeprecated]
  Ptr<T>::isNull;
          ^
  using 
./../include/Ptr.h:74:11: warning: access declarations are deprecated; use using declarations instead [-Wdeprecated]
  Ptr<T>::clear;
          ^
  using 
TeXFOTBuilder.cxx:865:27: warning: use of '%n' in format string discouraged (potentially insecure) [-Wformat-security]
  sprintf( buf, "%li.%.3i%n", long(length.l)/1000, abs(long(length.l)%1000), &i );
                         ~^
TeXFOTBuilder.cxx:1594:48: error: default initialization of an object of const type 'const TeXFOTBuilder::PageFloatFlowObj' requires a user-provided default
      constructor
  static const TeXFOTBuilder::PageFloatFlowObj pageFloat;
                                               ^
TeXFOTBuilder.cxx:1595:51: error: default initialization of an object of const type 'const TeXFOTBuilder::PageFootnoteFlowObj' requires a user-provided default
      constructor
  static const TeXFOTBuilder::PageFootnoteFlowObj pageFootnote;
                                                  ^
In file included from TeXFOTBuilder.cxx:4407:
In file included from ./TeXFOTBuilder_inst.cxx:14:
In file included from ./../include/Vector.h:77:
./../include/Vector.cxx:82:13: warning: destination for this 'memmove' call is a pointer to dynamic class 'TeXFOTBuilder::Row'; vtable pointer will be overwritten
      [-Wdynamic-class-memaccess]
    memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
    ~~~~~~~ ^
./TeXFOTBuilder_inst.cxx:41:16: note: in instantiation of member function 'Vector<TeXFOTBuilder::Row>::insert' requested here
template class Vector<TeXFOTBuilder::Row>;
               ^
./../include/Vector.cxx:82:13: note: explicitly cast the pointer to silence this warning
    memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
            ^
            (void*)
./../include/Vector.cxx:96:13: warning: destination for this 'memmove' call is a pointer to dynamic class 'TeXFOTBuilder::Row'; vtable pointer will be overwritten
      [-Wdynamic-class-memaccess]
    memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
    ~~~~~~~ ^
./TeXFOTBuilder_inst.cxx:41:16: note: in instantiation of member function 'Vector<TeXFOTBuilder::Row>::insert' requested here
template class Vector<TeXFOTBuilder::Row>;
               ^
./../include/Vector.cxx:96:13: note: explicitly cast the pointer to silence this warning
    memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
            ^
            (void*)
./../include/Vector.cxx:140:13: warning: destination for this 'memmove' call is a pointer to dynamic class 'TeXFOTBuilder::Row'; vtable pointer will be overwritten
      [-Wdynamic-class-memaccess]
    memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
    ~~~~~~~ ^
./TeXFOTBuilder_inst.cxx:41:16: note: in instantiation of member function 'Vector<TeXFOTBuilder::Row>::erase' requested here
template class Vector<TeXFOTBuilder::Row>;
               ^
./../include/Vector.cxx:140:13: note: explicitly cast the pointer to silence this warning
    memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
            ^
            (void*)
./../include/Vector.cxx:156:15: warning: source of this 'memcpy' call is a pointer to dynamic class 'TeXFOTBuilder::Row'; vtable pointer will be overwritten
      [-Wdynamic-class-memaccess]
    memcpy(p, ptr_, size_*sizeof(T));
    ~~~~~~    ^
./TeXFOTBuilder_inst.cxx:41:16: note: in instantiation of member function 'Vector<TeXFOTBuilder::Row>::reserve1' requested here
template class Vector<TeXFOTBuilder::Row>;
               ^
./../include/Vector.cxx:156:15: note: explicitly cast the pointer to silence this warning
    memcpy(p, ptr_, size_*sizeof(T));
              ^
              (void*)
./../include/Vector.cxx:82:13: warning: destination for this 'memmove' call is a pointer to dynamic class 'TeXFOTBuilder::Cell'; vtable pointer will be overwritten
      [-Wdynamic-class-memaccess]
    memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
    ~~~~~~~ ^
./TeXFOTBuilder_inst.cxx:54:16: note: in instantiation of member function 'Vector<TeXFOTBuilder::Cell>::insert' requested here
template class Vector<TeXFOTBuilder::Cell>;
               ^
./../include/Vector.cxx:82:13: note: explicitly cast the pointer to silence this warning
    memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
            ^
            (void*)
./../include/Vector.cxx:96:13: warning: destination for this 'memmove' call is a pointer to dynamic class 'TeXFOTBuilder::Cell'; vtable pointer will be overwritten
      [-Wdynamic-class-memaccess]
    memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
    ~~~~~~~ ^
./TeXFOTBuilder_inst.cxx:54:16: note: in instantiation of member function 'Vector<TeXFOTBuilder::Cell>::insert' requested here
template class Vector<TeXFOTBuilder::Cell>;
               ^
./../include/Vector.cxx:96:13: note: explicitly cast the pointer to silence this warning
    memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
            ^
            (void*)
./../include/Vector.cxx:140:13: warning: destination for this 'memmove' call is a pointer to dynamic class 'TeXFOTBuilder::Cell'; vtable pointer will be overwritten
      [-Wdynamic-class-memaccess]
    memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
    ~~~~~~~ ^
./TeXFOTBuilder_inst.cxx:54:16: note: in instantiation of member function 'Vector<TeXFOTBuilder::Cell>::erase' requested here
template class Vector<TeXFOTBuilder::Cell>;
               ^
./../include/Vector.cxx:140:13: note: explicitly cast the pointer to silence this warning
    memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
            ^
            (void*)
./../include/Vector.cxx:156:15: warning: source of this 'memcpy' call is a pointer to dynamic class 'TeXFOTBuilder::Cell'; vtable pointer will be overwritten
      [-Wdynamic-class-memaccess]
    memcpy(p, ptr_, size_*sizeof(T));
    ~~~~~~    ^
./TeXFOTBuilder_inst.cxx:54:16: note: in instantiation of member function 'Vector<TeXFOTBuilder::Cell>::reserve1' requested here
template class Vector<TeXFOTBuilder::Cell>;
               ^
./../include/Vector.cxx:156:15: note: explicitly cast the pointer to silence this warning
    memcpy(p, ptr_, size_*sizeof(T));
              ^
              (void*)
./../include/Vector.cxx:82:13: warning: destination for this 'memmove' call is a pointer to dynamic class 'TeXFOTBuilder::TablePart'; vtable pointer will be
      overwritten [-Wdynamic-class-memaccess]
    memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
    ~~~~~~~ ^
./TeXFOTBuilder_inst.cxx:80:16: note: in instantiation of member function 'Vector<TeXFOTBuilder::TablePart>::insert' requested here
template class Vector<TeXFOTBuilder::TablePart>;
               ^
./../include/Vector.cxx:82:13: note: explicitly cast the pointer to silence this warning
    memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
            ^
            (void*)
./../include/Vector.cxx:96:13: warning: destination for this 'memmove' call is a pointer to dynamic class 'TeXFOTBuilder::TablePart'; vtable pointer will be
      overwritten [-Wdynamic-class-memaccess]
    memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
    ~~~~~~~ ^
./TeXFOTBuilder_inst.cxx:80:16: note: in instantiation of member function 'Vector<TeXFOTBuilder::TablePart>::insert' requested here
template class Vector<TeXFOTBuilder::TablePart>;
               ^
./../include/Vector.cxx:96:13: note: explicitly cast the pointer to silence this warning
    memmove(ptr_ + i + n, ptr_ + i, (size_ - i)*sizeof(T));
            ^
            (void*)
./../include/Vector.cxx:140:13: warning: destination for this 'memmove' call is a pointer to dynamic class 'TeXFOTBuilder::TablePart'; vtable pointer will be
      overwritten [-Wdynamic-class-memaccess]
    memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
    ~~~~~~~ ^
./TeXFOTBuilder_inst.cxx:80:16: note: in instantiation of member function 'Vector<TeXFOTBuilder::TablePart>::erase' requested here
template class Vector<TeXFOTBuilder::TablePart>;
               ^
./../include/Vector.cxx:140:13: note: explicitly cast the pointer to silence this warning
    memmove((T *)p1, p2, ((const T *)(ptr_ + size_) - p2)*sizeof(T));
            ^
            (void*)
./../include/Vector.cxx:156:15: warning: source of this 'memcpy' call is a pointer to dynamic class 'TeXFOTBuilder::TablePart'; vtable pointer will be overwritten
      [-Wdynamic-class-memaccess]
    memcpy(p, ptr_, size_*sizeof(T));
    ~~~~~~    ^
./TeXFOTBuilder_inst.cxx:80:16: note: in instantiation of member function 'Vector<TeXFOTBuilder::TablePart>::reserve1' requested here
template class Vector<TeXFOTBuilder::TablePart>;
               ^
./../include/Vector.cxx:156:15: note: explicitly cast the pointer to silence this warning
    memcpy(p, ptr_, size_*sizeof(T));
              ^
              (void*)
17 warnings and 2 errors generated.
gmake[2]: *** [TeXFOTBuilder.o] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 1
gmake[2]: &#1042;&#1099;&#1093;&#1086;&#1076; &#1080;&#1079; &#1082;&#1072;&#1090;&#1072;&#1083;&#1086;&#1075;&#1072; `/usr/ports/textproc/jade/work/jade-1.2.1/jade'
gmake[1]: *** [jade] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 2
gmake[1]: &#1042;&#1099;&#1093;&#1086;&#1076; &#1080;&#1079; &#1082;&#1072;&#1090;&#1072;&#1083;&#1086;&#1075;&#1072; `/usr/ports/textproc/jade/work/jade-1.2.1'
gmake: *** [all] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 2
*** Error code 1

Stop in /usr/ports/textproc/jade.
** Command failed [exit code 1]: /usr/bin/script -qa /var/tmp/portupgrade20111001-53652-5x37wh env UPGRADE_TOOL=portupgrade UPGRADE_PORT=jade-1.2.1_9 UPGRADE_PORT_VER=1.2.1_9 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! textproc/jade (jade-1.2.1_9)  (unknown build error)
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kuriyama 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Oct 1 11:40:19 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161197 
State-Changed-From-To: open->closed 
State-Changed-By: crees 
State-Changed-When: Sat Oct 1 13:26:25 UTC 2011 
State-Changed-Why:  
I have explained several times now that there is no point in reporting 
ports that fail to build with clang. It is not expected that every port 
support clang yet, so breakage will occur.  The list of 
broken-with-clang ports is at 
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/ 
(some have been fixed). Please stop reporting breakage with clang unless 
you have a fix. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161197 

From: Mel Flynn <rflynn@acsalaska.net>
To: bug-followup@FreeBSD.org, andy.lavr@gmail.com
Cc:  
Subject: Re: ports/161197: [ERROR] cannot portupgrade ports/textproc/jade
 with CLANG
Date: Tue, 15 May 2012 15:57:59 +0200

 This is a multi-part message in MIME format.
 --------------050703060100050605070801
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 Hi,
 
 here's the fix, Obtained from:
 <http://www.linuxfromscratch.org/patches/blfs/svn/openjade-1.3.2-gcc_4.6-1.patch>
 
 Path modified for drop in into files/. Confirmed to be working and able
 to build postgresql90-docs with it, so no obvious runtime issues.
 
 Please re-open/commit/close :).
 
 -- 
 Mel
 
 --------------050703060100050605070801
 Content-Type: text/plain; charset=windows-1252;
  name="openjade-1.3.2-gcc_4.6-1.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="openjade-1.3.2-gcc_4.6-1.patch"
 
 Submitted By:            Matt Burgess <matthew_at_linuxfromscratch_dot_org>
 Date:                    2011-03-30
 Initial Package Version: 1.3.2
 Upstream Status:         Not submitted
 Origin:                  Matt Burgess
 Description:             Fixes compilation issues with GCC-4.6.0.
 
 diff -Naur openjade-1.3.2.orig/jade/TeXFOTBuilder.cxx openjade-1.3.2/jade/TeXFOTBuilder.cxx
 --- jade/TeXFOTBuilder.cxx	2002-01-15 10:35:37.000000000 +0000
 +++ jade/TeXFOTBuilder.cxx	2011-03-30 09:39:46.000000000 +0000
 @@ -75,6 +75,7 @@
      virtual void end(TeXFOTBuilder &) const = 0;
    };
    class PageFloatFlowObj : public TeXCompoundExtensionFlowObj {
 +  public:
      void start(TeXFOTBuilder &fotb, const NodePtr &) const {
        fotb.startPageFloat(nic_);
      }
 @@ -88,12 +89,14 @@
        value.convertString(nic_.placement);
        }
      ExtensionFlowObj *copy() const { return new PageFloatFlowObj(*this); }
 +    PageFloatFlowObj() {}
    private:
      PageFloatNIC nic_;
      StringC name_;
      StringC placement;
    };
    class PageFootnoteFlowObj : public TeXCompoundExtensionFlowObj {
 +  public:
      void start(TeXFOTBuilder &fotb, const NodePtr &) const {
        fotb.startPageFootnote();
      }
 @@ -101,6 +104,7 @@
        fotb.endPageFootnote();
      }
      ExtensionFlowObj *copy() const { return new PageFootnoteFlowObj(*this); }
 +    PageFootnoteFlowObj() {}
    private:
    };
    //////////////////////////////////////////////////////////////////////
 diff -Naur openjade-1.3.2.orig/jade/TransformFOTBuilder.cxx openjade-1.3.2/jade/TransformFOTBuilder.cxx
 --- jade/TransformFOTBuilder.cxx	2002-12-01 14:55:51.000000000 +0000
 +++ jade/TransformFOTBuilder.cxx	2011-03-30 09:38:48.000000000 +0000
 @@ -51,6 +51,7 @@
        value.convertString(name_);
      }
      ExtensionFlowObj *copy() const { return new EntityRefFlowObj(*this); }
 +    EntityRefFlowObj() {}
    private:
      StringC name_;
    };
 @@ -66,10 +67,12 @@
        value.convertString(data_);
      }
      ExtensionFlowObj *copy() const { return new ProcessingInstructionFlowObj(*this); }
 +    ProcessingInstructionFlowObj() {}
    private:
      StringC data_;
    };
    class EmptyElementFlowObj : public TransformExtensionFlowObj {
 +  public:
      void atomic(TransformFOTBuilder &fotb, const NodePtr &nd) const {
        if (nic_.gi.size() > 0)
  	fotb.emptyElement(nic_);
 @@ -98,10 +101,12 @@
        }
      }
      ExtensionFlowObj *copy() const { return new EmptyElementFlowObj(*this); }
 +    EmptyElementFlowObj() {}
    private:
      ElementNIC nic_;
    };
    class ElementFlowObj : public TransformCompoundExtensionFlowObj {
 +  public:
      void start(TransformFOTBuilder &fotb, const NodePtr &nd) const {
        if (nic_.gi.size() > 0)
  	fotb.startElement(nic_);
 @@ -133,10 +138,12 @@
        }
      }
      ExtensionFlowObj *copy() const { return new ElementFlowObj(*this); }
 +    ElementFlowObj() {}
    private:
      ElementNIC nic_;
    };
    class EntityFlowObj : public TransformCompoundExtensionFlowObj {
 +  public:
      void start(TransformFOTBuilder &fotb, const NodePtr &) const {
        fotb.startEntity(systemId_);
      }
 @@ -150,10 +157,12 @@
        value.convertString(systemId_);
      }
      ExtensionFlowObj *copy() const { return new EntityFlowObj(*this); }
 +    EntityFlowObj() {}
    private:
      StringC systemId_;
    };
    class DocumentTypeFlowObj : public TransformExtensionFlowObj {
 +  public:
      void atomic(TransformFOTBuilder &fotb, const NodePtr &nd) const {
        fotb.documentType(nic_);
      }
 @@ -174,6 +183,7 @@
        }
      }
      ExtensionFlowObj *copy() const { return new DocumentTypeFlowObj(*this); }
 +    DocumentTypeFlowObj() {}
    private:
      DocumentTypeNIC nic_;
    };
 
 
 --------------050703060100050605070801--
State-Changed-From-To: closed->open 
State-Changed-By: crees 
State-Changed-When: Mon Jun 11 16:58:28 UTC 2012 
State-Changed-Why:  
Hi Kuriyama-san, there is now a fix for this problem for your perusal :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161197 

From: Andrei Lavreniyuk <andy.lavr@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/161197: cannot portupgrade ports/textproc/jade with CLANG
Date: Wed, 20 Mar 2013 13:00:14 +0200

 Please close PR. Build fine.
State-Changed-From-To: open->closed 
State-Changed-By: crees 
State-Changed-When: Sun Oct 6 12:36:26 UTC 2013 
State-Changed-Why:  
Submitter reports fixed.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161197 
>Unformatted:
