NetBSD Problem Report #22901

Received: (qmail 24563 invoked by uid 605); 23 Sep 2003 06:31:15 -0000
Message-Id: <200309230631.h8N6VCAV014609@vash.cel.plethora.net>
Date: Tue, 23 Sep 2003 01:31:12 -0500 (CDT)
From: seebs <seebs@vash.cel.plethora.net>
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: seebs@vash.cel.plethora.net
To: gnats-bugs@gnats.netbsd.org
Subject: openjade won't build in -current
X-Send-Pr-Version: 3.95

>Number:         22901
>Category:       pkg
>Synopsis:       openjade won't build in -current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 23 06:32:00 +0000 2003
>Closed-Date:    Tue Sep 23 08:36:41 +0000 2003
>Last-Modified:  Tue Sep 23 08:40:01 +0000 2003
>Originator:     seebs
>Release:        NetBSD 1.6ZC
>Organization:
>Environment:
System: NetBSD vash.cel.plethora.net 1.6ZC NetBSD 1.6ZC (VASH) #0: Sun Sep 21 04:19:29 CDT 2003 seebs@vash.cel.plethora.net:/usr/src/sys/arch/i386/compile/VASH i386
Architecture: i386
Machine: i386
>Description:
	It looks as though the change from gcc 2.95 to 3.3 has broken
	openjade.  Here's where it fails.

===> *** No /usr/src/pkgsrc/distfiles/pkg-vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
===> Building for openjade-1.3
gmake[1]: Entering directory `/usr/src/pkgsrc/textproc/openjade/work/openjade-1.3'
gmake[2]: Entering directory `/usr/src/pkgsrc/textproc/openjade/work/openjade-1.3/lib'
c++ -O0 -fno-implicit-templates -I. -I./../include -I./../generic -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_ST_BLKSIZE=1 -DSIZEOF_SIZE_T=4 -DSIZEOF_UNSIGNED_INT=4 -DSP_HAVE_BOOL=1 -DSP_ANSI_CLASS_INST=1 -DJADE_MIF=1 -DJADE_HTML=1 -DSP_MULTI_BYTE=1 -DSGML_CATALOG_FILES_DEFAULT=\"/usr/pkg/share/sgml/openjade/catalog\" -DDEFAULT_SCHEME_BUILTINS=\"/usr/pkg/share/sgml/openjade/builtins.dsl\" -c parser_inst.cxx -o parser_inst.o
In file included from parser_inst.cxx:36:
../include/Ptr.cxx: In destructor `Ptr<T>::~Ptr() [with T = AttributeValue]':
../include/Ptr.h:55:   instantiated from `ConstPtr<T>::ConstPtr() [with T = AttributeValue]'
../include/Attribute.h:36:   instantiated from here
../include/Ptr.cxx:22: error: `unref' undeclared (first use this function)
../include/Ptr.cxx:22: error: (Each undeclared identifier is reported only once 
   for each function it appears in.)
../include/Ptr.cxx:23: warning: invalid use of undefined type `struct 
   AttributeValue'
../include/Attribute.h:28: warning: forward declaration of `struct 
   AttributeValue'
In file included from ../include/UnivCharsetDesc.h:13,
                 from ../include/CharsetInfo.h:11,
                 from ../include/Sd.h:13,
                 from ../include/Markup.h:13,
                 from ../include/Entity.h:22,
                 from ../include/Dtd.h:14,
                 from parser_inst.cxx:40:
../include/RangeMap.h: At global scope:
../include/RangeMap.h:57: warning: `Vector<RangeMapRange<From, To> 
   >::const_iterator' is implicitly a typename
../include/RangeMap.h:57: warning: implicit typename is deprecated, please see 
   the documentation for details
In file included from Recognizer.h:15,
                 from parser_inst.cxx:61:
../include/Owner.cxx: In destructor `Owner<T>::~Owner() [with T = BlankTrie]':
../include/CopyOwner.h:16:   instantiated from `CopyOwner<T>::CopyOwner() [with T = BlankTrie]'
Trie.h:22:   instantiated from here
../include/Owner.cxx:15: warning: invalid use of undefined type `struct 
   BlankTrie'
Trie.h:18: warning: forward declaration of `struct BlankTrie'
gmake[2]: *** [parser_inst.lo] Error 1
gmake[2]: Leaving directory `/usr/src/pkgsrc/textproc/openjade/work/openjade-1.3/lib'
gmake[1]: *** [lib] Error 2
gmake[1]: Leaving directory `/usr/src/pkgsrc/textproc/openjade/work/openjade-1.3'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/src/pkgsrc/textproc/openjade
*** Error code 1

Stop.
make: stopped in /usr/src/pkgsrc/textproc/openjade
>How-To-Repeat:
	Build openjade.

>Fix:
	Unknown.
>Release-Note:
>Audit-Trail:

From: Thomas Klausner <wiz@NetBSD.org>
To: seebs <seebs@vash.cel.plethora.net>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/22901: openjade won't build in -current
Date: Tue, 23 Sep 2003 08:54:47 +0200

 On Tue, Sep 23, 2003 at 01:31:12AM -0500, seebs wrote:
 > >Synopsis:       openjade won't build in -current

 Nor does opensp, same problem.
  Thomas

From: seebs@plethora.net (Peter Seebach)
To: Thomas Klausner <wiz@NetBSD.org>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/22901: openjade won't build in -current 
Date: Tue, 23 Sep 2003 02:01:32 -0500

 In message <20030923065447.GQ12546@dmath5.geometrie.tuwien.ac.at>, Thomas Klaus
 ner writes:
 >On Tue, Sep 23, 2003 at 01:31:12AM -0500, seebs wrote:
 >> >Synopsis:       openjade won't build in -current
 >
 >Nor does opensp, same problem.

 Yup.  Got this off the net.  Works for OpenSP.

 Submitter: Jim Gifford (patches at jg555 dot com)
 Origin: Debian OpenSP Maintainer
 Date: 08-10-2003
 Description: Fixes GCC 3.3 Compile Error

 diff -Naur OpenSP-1.5.orig/include/Attribute.h OpenSP-1.5/include/Attribute.h
 --- OpenSP-1.5.orig/include/Attribute.h	2000-03-09 10:30:56.000000000 -0000
 +++ OpenSP-1.5/include/Attribute.h	2003-08-10 22:54:41.000000000 -0000
 @@ -31,6 +31,27 @@
  class AttributeContext;
  class Syntax;

 +class SP_API AttributeValue : public Resource {
 +public:
 +  enum Type {
 +    implied,
 +    cdata,
 +    tokenized
 +    };
 +  AttributeValue();
 +  virtual ~AttributeValue();
 +  virtual AttributeSemantics *makeSemantics(const DeclaredValue *,
 +					    AttributeContext &,
 +					    const StringC &,
 +					    unsigned &,
 +					    unsigned &) const;
 +  virtual Type info(const Text *&, const StringC *&) const = 0;
 +  virtual const Text *text() const;
 +  virtual Boolean recoverUnquoted(const StringC &, const Location &,
 +				  AttributeContext &, const StringC &);
 +  static Boolean handleAsUnterminated(const Text &, AttributeContext &);
 +};
 +
  class SP_API AttributeDefinitionDesc {
  public:
    AttributeDefinitionDesc() { }
 @@ -380,27 +401,6 @@
    ConstPtr<Notation> notation_;
  };

 -class SP_API AttributeValue : public Resource {
 -public:
 -  enum Type {
 -    implied,
 -    cdata,
 -    tokenized
 -    };
 -  AttributeValue();
 -  virtual ~AttributeValue();
 -  virtual AttributeSemantics *makeSemantics(const DeclaredValue *,
 -					    AttributeContext &,
 -					    const StringC &,
 -					    unsigned &,
 -					    unsigned &) const;
 -  virtual Type info(const Text *&, const StringC *&) const = 0;
 -  virtual const Text *text() const;
 -  virtual Boolean recoverUnquoted(const StringC &, const Location &,
 -				  AttributeContext &, const StringC &);
 -  static Boolean handleAsUnterminated(const Text &, AttributeContext &);
 -};
 -
  class SP_API ImpliedAttributeValue : public AttributeValue {
  public:
    ImpliedAttributeValue();

From: seebs@plethora.net (Peter Seebach)
To: Thomas Klausner <wiz@NetBSD.org>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/22901: openjade won't build in -current 
Date: Tue, 23 Sep 2003 02:17:49 -0500

 In message <20030923065447.GQ12546@dmath5.geometrie.tuwien.ac.at>, Thomas Klaus
 ner writes:
 >On Tue, Sep 23, 2003 at 01:31:12AM -0500, seebs wrote:
 >> >Synopsis:       openjade won't build in -current
 >
 >Nor does opensp, same problem.

 Just a followup:

 * openjade 1.3 won't build even with the patch that fixes opensp.
 	GroveBuilder.cxx: In member function `AccessResult
 	   PrologPiChunk::getFirstSibling(const GroveImpl*, const Chunk*&) const':
 	GroveBuilder.cxx:74: error: `struct Chunk' is inaccessible
 	GroveBuilder.cxx:649: error: within this context
 	GroveBuilder.cxx: In member function `AccessResult
 	   EpilogPiChunk::getFirstSibling(const GroveImpl*, const Chunk*&) const':
 	GroveBuilder.cxx:74: error: `struct Chunk' is inaccessible
 	GroveBuilder.cxx:653: error: within this context

 * openjade 1.3.2 will not build *without* opensp, but needs none of the
   existing openjade 1.3 patches.

 So, if we want to migrate to openjade 1.3.2 (which, with the patch previously
 suggested, compiles okay), we have to replace "conflicts" with "requires",
 since it *needs* opensp.

 That said, opensp1.5/openjade1.3.2, with patches, seems to DTRT!

 -s

From: Michael van Elst <mlelstv@serpens.de>
To: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Cc:  
Subject: Re: pkg/22901: openjade won't build in -current
Date: Tue, 23 Sep 2003 09:41:01 +0200

 That's a bug in opensp (not openjade) that triggers a stricter
 C++ interpretation in GCC3.3. I have once fixed this with the
 following patch:

 --- include/Attribute.h.dist    2003-06-27 14:13:01.000000000 +0200
 +++ include/Attribute.h 2003-06-27 14:15:54.000000000 +0200
 @@ -31,6 +31,27 @@
  class AttributeContext;
  class Syntax;

 +class SP_API AttributeValue : public Resource {
 +public:
 +  enum Type {
 +    implied,
 +    cdata,
 +    tokenized
 +    };
 +  AttributeValue();
 +  virtual ~AttributeValue();
 +  virtual AttributeSemantics *makeSemantics(const DeclaredValue *,
 +                       AttributeContext &,
 +                       const StringC &,
 +                       unsigned &,
 +                       unsigned &) const;
 +  virtual Type info(const Text *&, const StringC *&) const = 0;
 +  virtual const Text *text() const;
 +  virtual Boolean recoverUnquoted(const StringC &, const Location &,
 +                 AttributeContext &, const StringC &);
 +  static Boolean handleAsUnterminated(const Text &, AttributeContext
 &);
 +};
 +
  class SP_API AttributeDefinitionDesc {
  public:
    AttributeDefinitionDesc() { }
 @@ -380,27 +401,6 @@
    ConstPtr<Notation> notation_;
  };

 -class SP_API AttributeValue : public Resource {
 -public:
 -  enum Type {
 -    implied,
 -    cdata,
 -    tokenized
 -    };
 -  AttributeValue();
 -  virtual ~AttributeValue();
 -  virtual AttributeSemantics *makeSemantics(const DeclaredValue *,
 -                       AttributeContext &,
 -                       const StringC &,
 -                       unsigned &,
 -                       unsigned &) const;
 -  virtual Type info(const Text *&, const StringC *&) const = 0;
 -  virtual const Text *text() const;
 -  virtual Boolean recoverUnquoted(const StringC &, const Location &,
 -                 AttributeContext &, const StringC &);
 -  static Boolean handleAsUnterminated(const Text &, AttributeContext
 &);
 -};
 -
  class SP_API ImpliedAttributeValue : public AttributeValue {
  public:
    ImpliedAttributeValue();



 -- 
                                 Michael van Elst
 Internet: mlelstv@serpens.de
                                 "A potential Snark may lurk in every tree."

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/22901 CVS commit: pkgsrc/textproc/opensp
Date: Tue, 23 Sep 2003 08:10:15 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Tue Sep 23 08:10:15 UTC 2003

 Modified Files:
 	pkgsrc/textproc/opensp: distinfo
 Added Files:
 	pkgsrc/textproc/opensp/patches: patch-ab

 Log Message:
 Add patch to make this build with gcc3. Patch from
  Submitter: Jim Gifford
  Origin: Debian OpenSP Maintainer
 forwarded by Peter Seebs via PR 22901.


 To generate a diff of this commit:
 cvs rdiff -r1.3 -r1.4 pkgsrc/textproc/opensp/distinfo
 cvs rdiff -r0 -r1.3 pkgsrc/textproc/opensp/patches/patch-ab

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Tue Sep 23 08:36:12 UTC 2003 
State-Changed-Why:  
Updated openjade to 1.3.2, which fixed the problem. 
Thanks for the PR! 

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/22901 CVS commit: pkgsrc/textproc/openjade
Date: Tue, 23 Sep 2003 08:35:55 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Tue Sep 23 08:35:55 UTC 2003

 Modified Files:
 	pkgsrc/textproc/openjade: Makefile PLIST distinfo
 Removed Files:
 	pkgsrc/textproc/openjade/patches: patch-aa patch-ab patch-ac patch-ad

 Log Message:
 Update to 1.3.2:
 Changes in OpenJade 1.3.2 (December 2002)

 * Build against OpenSP 1.5

 * Minor fixes to MIF backend

 * Correct typo in definition of "attribute" in builtin.dsl (Toby Speight)

 * Fix quoted of ampersand in XML/SGML transformations (Toby Speight)

 Changes in OpenJade 1.3.1 (January 2002)

 * Support for newer GNU source configuration tools (autoconf, libtool, automake)

 * Support for newer GNU and Microsoft compilers

 * Support for more/up to date platforms (Mac OS X, Darwin, BSD, Cygwin etc.)

 * Numerous bug fixes to TeX backend for improved table support and two
   sided output. Two new external procedures two control double sided
   output (required by jadetex 3.4 or greater).

   "UNREGISTERED::OpenJade//Characteristic::page-two-side?"
   "UNREGISTERED::OpenJade//Characteristic::two-side-start-on-right?"

 * Support for XML Byte Order Marks

 Closes PR 22901.


 To generate a diff of this commit:
 cvs rdiff -r1.3 -r1.4 pkgsrc/textproc/openjade/Makefile
 cvs rdiff -r1.1 -r1.2 pkgsrc/textproc/openjade/PLIST
 cvs rdiff -r1.4 -r1.5 pkgsrc/textproc/openjade/distinfo
 cvs rdiff -r1.1.1.1 -r0 pkgsrc/textproc/openjade/patches/patch-aa \
     pkgsrc/textproc/openjade/patches/patch-ab \
     pkgsrc/textproc/openjade/patches/patch-ac
 cvs rdiff -r1.3 -r0 pkgsrc/textproc/openjade/patches/patch-ad

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: Thomas Klausner <wiz@NetBSD.org>
To: Peter Seebach <seebs@plethora.net>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/22901: openjade won't build in -current
Date: Tue, 23 Sep 2003 10:35:58 +0200

 On Tue, Sep 23, 2003 at 02:17:49AM -0500, Peter Seebach wrote:
 > So, if we want to migrate to openjade 1.3.2 (which, with the patch previously
 > suggested, compiles okay), we have to replace "conflicts" with "requires",
 > since it *needs* opensp.

 That was exactly what I was trying too, and it worked :)

 > That said, opensp1.5/openjade1.3.2, with patches, seems to DTRT!

 Great! Thanks for the notes!
  Thomas
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.