>> Ulrich Wilkens <m...@uwilkens.de> wrote:

> diff --git a/cde/programs/nsgmls/parser_inst.m4 
> b/cde/programs/nsgmls/parser_inst.m4
> index 4c09cb2..a325156 100644
> --- a/cde/programs/nsgmls/parser_inst.m4
> +++ b/cde/programs/nsgmls/parser_inst.m4
> @@ -26,6 +26,7 @@
>  #undef SP_DEFINE_TEMPLATES
>  
>  #include <stddef.h>
> +#include <stdint.h>
>  #include "Attribute.h"
>  #include "Attributed.h"
>  #include "CharsetDecl.h"
> @@ -165,7 +166,9 @@ __instantiate(Vector<NamedResourceTable<Entity> >)
>  __instantiate(Vector<ContentModelAmbiguity>)
>  __instantiate(Vector<Transition>)
>  __instantiate(Vector<LeafContentToken*>)
> +#if UINTPTR_MAX == 0xffffffffffffffff
>  __instantiate(Vector<size_t>)
> +#endif
>  __instantiate(Vector<unsigned int>)
>  
>  __instantiate(NamedTable<Id>)

This causes the following error on my system:
Without it nsgmls compiles fine.

//Marcin

----8<----
rm -f parser_inst.C
/usr/bin/m4 instmac.m4 parser_inst.m4 >parser_inst.C
rm -f parser_inst.o
CC -c -O2 -DSP_VOLATILE=volatile -DSP_CONST=const -DSP_ANSI_CLASS_INST   
-DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_MANUAL_INST -fno-implicit-templates   
-I../.. -I../../exports/include -I../../imports/motif/include 
-I../../imports/x11/include  -DCSRG_BASED -DANSICPP -DMULTIBYTE -DNLS16      
-DOSMAJORVERSION=9 -DOSMINORVERSION=0    -fno-implicit-templates parser_inst.C
rm -f nsgmls
CC -o nsgmls -O2 -DSP_VOLATILE=volatile -DSP_CONST=const -DSP_ANSI_CLASS_INST   
-DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_MANUAL_INST -fno-implicit-templates    
-L../../exports/lib  -L../../imports/motif/lib -L../../imports/x11/lib 
Allocator.o                      ArcEngine.o                      Attribute.o   
                   CharsetDecl.o                    CharsetInfo.o               
     CharsetRegistry.o                CmdLineApp.o                     
CodingSystem.o                   ConsoleOutput.o                  
ContentState.o                   ContentToken.o                   
DescriptorManager.o              Dtd.o                            
EUCJPCodingSystem.o              ElementType.o                    Entity.o      
                   EntityApp.o                      EntityCatalog.o             
     EntityDecl.o                     EntityManager.o                  
ErrnoMessageArg.o                ErrorCountEventHandler.o         Event.o       
                   EventGenerator.o                 ExtendEntityManager.o       
     ExternalId.o                     Fixed2CodingSystem.o             
GenericEventHandler.o            Group.o                          Hash.o        
                   IListBase.o                      ISO8859InputCodingSystem.o  
     Id.o                             IdentityCodingSystem.o           
InputSource.o                    InternalInputSource.o            Link.o        
                   LinkProcess.o                    LiteralStorage.o            
     Location.o                       Lpd.o                            Markup.o 
                        Message.o                        MessageArg.o           
          MessageEventHandler.o            MessageReporter.o                
MessageTable.o                   ModeInfo.o                       Notation.o    
                   NumericCharRefOrigin.o           OffsetOrderedList.o         
     OpenElement.o                    OutputCharStream.o               
OutputState.o                    Param.o                          Parser.o      
                   ParserApp.o                      ParserEventGeneratorKit.o   
     ParserOptions.o                  ParserState.o                    
Partition.o                      PosixStorage.o                   
RastEventHandler.o               Recognizer.o                     
RewindStorageObject.o            SGMLApplication.o                
SJISCodingSystem.o               SOEntityCatalog.o                Sd.o          
                   SdText.o                         SearchResultMessageArg.o    
     SgmlParser.o                     SgmlsEventHandler.o              
ShortReferenceMap.o              StdioStorage.o                   
StorageManager.o                 StringSet.o                      
StringVectorMessageArg.o         Syntax.o                         Text.o        
                   TokenMessageArg.o                
TranslateInputCodingSystem.o     TrieBuilder.o                    TypeId.o      
                   URLStorage.o                     UTF8CodingSystem.o          
     Undo.o                           UnicodeCodingSystem.o            
UnivCharsetDesc.o                assert.o                         nsgmls.o      
                   parseAttribute.o                 parseCommon.o               
     parseDecl.o                      parseInstance.o                  
parseMode.o                      parseParam.o                     parseSd.o     
                   splib.o                          app_inst.o                  
     arc_inst.o                       entmgr_inst.o                    
nsgmls_inst.o                    parser_inst.o                    
xentmgr_inst.o  -L/usr/dt/lib   -L/usr/local/lib     
ArcEngine.o: In function `ArcProcessor::split(Text const&, unsigned short, 
Vector<String<unsigned short> >&, Vector<unsigned long>&)':
ArcEngine.C:(.text+0x1afb): undefined reference to `Vector<unsigned 
long>::reserve1(unsigned long)'
ArcEngine.o: In function `ArcProcessor::processArcOpts(AttributeList const&)':
ArcEngine.C:(.text+0x21cf): undefined reference to `Vector<unsigned 
long>::~Vector()'
ArcEngine.C:(.text+0x21e6): undefined reference to `Vector<unsigned 
long>::~Vector()'
ArcEngine.C:(.text+0x22c1): undefined reference to `Vector<unsigned 
long>::~Vector()'
ArcEngine.C:(.text+0x22f3): undefined reference to `Vector<unsigned 
long>::~Vector()'
ArcEngine.o: In function 
`ArcProcessor::buildAttributeMapRename(ArcProcessor::MetaMap&, Text const&, 
AttributeList const&, AttributeList const*, Vector<char>&)':
ArcEngine.C:(.text+0x58fb): undefined reference to `Vector<unsigned 
long>::~Vector()'
ArcEngine.o:ArcEngine.C:(.text+0x595d): more undefined references to 
`Vector<unsigned long>::~Vector()' follow
Attribute.o: In function 
`TokenizedAttributeValue::TokenizedAttributeValue(Text&, Vector<unsigned long> 
const&)':
Attribute.C:(.text+0x2c69): undefined reference to `Vector<unsigned 
long>::Vector(Vector<unsigned long> const&)'
Attribute.C:(.text+0x2caf): undefined reference to `Vector<unsigned 
long>::~Vector()'
Attribute.o: In function `GroupDeclaredValue::makeValueFromToken(Text&, 
AttributeContext&, String<unsigned short> const&, unsigned int&) const':
Attribute.C:(.text+0x2de8): undefined reference to `Vector<unsigned 
long>::~Vector()'
Attribute.C:(.text+0x2e24): undefined reference to `Vector<unsigned 
long>::~Vector()'
Attribute.o: In function 
`TokenizedAttributeValue::TokenizedAttributeValue(Text&, Vector<unsigned long> 
const&)':
Attribute.C:(.text+0x2eb9): undefined reference to `Vector<unsigned 
long>::Vector(Vector<unsigned long> const&)'
Attribute.C:(.text+0x2eff): undefined reference to `Vector<unsigned 
long>::~Vector()'
Attribute.o: In function `TokenizedDeclaredValue::makeTokenizedValue(Text&, 
AttributeContext&, String<unsigned short> const&, unsigned int&) const':
Attribute.C:(.text+0x343d): undefined reference to `Vector<unsigned 
long>::~Vector()'
Attribute.C:(.text+0x35c9): undefined reference to `Vector<unsigned 
long>::reserve1(unsigned long)'
Attribute.C:(.text+0x3932): undefined reference to `Vector<unsigned 
long>::~Vector()'
Attribute.o: In function `TokenizedAttributeValue::~TokenizedAttributeValue()':
Attribute.C:(.text._ZN23TokenizedAttributeValueD0Ev[_ZN23TokenizedAttributeValueD0Ev]+0x1d):
 undefined reference to `Vector<unsigned long>::~Vector()'
Attribute.o: In function `TokenizedAttributeValue::~TokenizedAttributeValue()':
Attribute.C:(.text._ZN23TokenizedAttributeValueD1Ev[_ZN23TokenizedAttributeValueD1Ev]+0x1d):
 undefined reference to `Vector<unsigned long>::~Vector()'
ContentToken.o: In function `LeafContentToken::andFinish(Vector<unsigned int>&, 
Vector<unsigned long>&, Vector<ContentModelAmbiguity>&, bool&)':
ContentToken.C:(.text+0xe6c): undefined reference to `Vector<unsigned 
long>::assign(unsigned long, unsigned long const&)'
ContentToken.o: In function `LeafContentToken::finish(Vector<unsigned int>&, 
Vector<unsigned long>&, Vector<ContentModelAmbiguity>&, bool&)':
ContentToken.C:(.text+0x13b9): undefined reference to `Vector<unsigned 
long>::assign(unsigned long, unsigned long const&)'
ContentToken.o: In function `CompiledModelGroup::compile(unsigned long, 
Vector<ContentModelAmbiguity>&, bool&)':
ContentToken.C:(.text+0x1f59): undefined reference to `Vector<unsigned 
long>::append(unsigned long)'
ContentToken.C:(.text+0x1f9b): undefined reference to `Vector<unsigned 
long>::~Vector()'
ContentToken.C:(.text+0x2014): undefined reference to `Vector<unsigned 
long>::~Vector()'
RastEventHandler.o: In function `RastEventHandler::attributeInfo(AttributeList 
const&, RastSubdocState::AttributeType)':
RastEventHandler.C:(.text+0x29ab): undefined reference to `Vector<unsigned 
long>::append(unsigned long)'
RastEventHandler.C:(.text+0x2aca): undefined reference to `Vector<unsigned 
long>::erase(unsigned long const*, unsigned long const*)'
RastEventHandler.o: In function `RastEventHandler::impliedSourceLinkRules()':
RastEventHandler.C:(.text+0x2d95): undefined reference to `Vector<unsigned 
long>::append(unsigned long)'
RastEventHandler.C:(.text+0x2f77): undefined reference to `Vector<unsigned 
long>::~Vector()'
RastEventHandler.C:(.text+0x2fee): undefined reference to `Vector<unsigned 
long>::~Vector()'
parseSd.o: In function `Parser::sdParseNaming(SdBuilder&, SdParam&)':
parseSd.C:(.text+0x89c9): undefined reference to `Vector<unsigned 
long>::~Vector()'
parseSd.C:(.text+0x8e5f): undefined reference to `Vector<unsigned 
long>::reserve1(unsigned long)'
parseSd.C:(.text+0x8edd): undefined reference to `Vector<unsigned 
long>::~Vector()'
parseSd.C:(.text+0x90c9): undefined reference to `Vector<unsigned 
long>::~Vector()'
nsgmls_inst.o: In function `Vector<Vector<unsigned long> 
>::erase(Vector<unsigned long> const*, Vector<unsigned long> const*)':
nsgmls_inst.C:(.text._ZN6VectorIS_ImEE5eraseEPKS0_S3_[_ZN6VectorIS_ImEE5eraseEPKS0_S3_]+0x28):
 undefined reference to `Vector<unsigned long>::~Vector()'
nsgmls_inst.o: In function `Vector<Vector<unsigned long> 
>::insert(Vector<unsigned long> const*, Vector<unsigned long> const*, 
Vector<unsigned long> const*)':
nsgmls_inst.C:(.text._ZN6VectorIS_ImEE6insertEPKS0_S3_S3_[_ZN6VectorIS_ImEE6insertEPKS0_S3_S3_]+0xa0):
 undefined reference to `Vector<unsigned long>::Vector(Vector<unsigned long> 
const&)'
nsgmls_inst.o: In function `Vector<Vector<unsigned long> 
>::operator=(Vector<Vector<unsigned long> > const&)':
nsgmls_inst.C:(.text._ZN6VectorIS_ImEEaSERKS1_[_ZN6VectorIS_ImEEaSERKS1_]+0x4a):
 undefined reference to `Vector<unsigned long>::operator=(Vector<unsigned long> 
const&)'
nsgmls_inst.o: In function `Vector<Vector<unsigned long> 
>::insert(Vector<unsigned long> const*, unsigned long, Vector<unsigned long> 
const&)':
nsgmls_inst.C:(.text._ZN6VectorIS_ImEE6insertEPKS0_mRS2_[_ZN6VectorIS_ImEE6insertEPKS0_mRS2_]+0x90):
 undefined reference to `Vector<unsigned long>::Vector(Vector<unsigned long> 
const&)'
nsgmls_inst.o: In function `Vector<Vector<unsigned long> >::assign(unsigned 
long, Vector<unsigned long> const&)':
nsgmls_inst.C:(.text._ZN6VectorIS_ImEE6assignEmRKS0_[_ZN6VectorIS_ImEE6assignEmRKS0_]+0x44):
 undefined reference to `Vector<unsigned long>::operator=(Vector<unsigned long> 
const&)'
nsgmls_inst.o: In function `Vector<Vector<unsigned long> 
>::push_back(Vector<unsigned long> const&)':
nsgmls_inst.C:(.text._ZN6VectorIS_ImEE9push_backERKS0_[_ZN6VectorIS_ImEE9push_backERKS0_]+0x44):
 undefined reference to `Vector<unsigned long>::Vector(Vector<unsigned long> 
const&)'
*** Error code 1

Stop in /.amd_mnt/radziecki/a/icybox/tmp/cdesktopenv/cde/programs/nsgmls.
----8<----


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to