Two problems happen. The first:

make[3]: Entering directory `/usr/src/RPM/BUILD/sgml-tools-1.0.9/sp/lib'
c++ -V`egcs-version` -ansi -fno-implicit-templates -O2  -Wall
-Wno-reorder -Wwrite-strings -Wpointer-arith -Wnested-externs
-Woverloaded-virtual -Wbad-function-cast -I. -I./../include
-I./../generic -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_ST_BLKSIZE=1
-Dsig_atomic_t=int -DSP_HAVE_BOOL=1 -DSP_HAVE_LOCALE=1
-DSP_ANSI_CLASS_INST=1   -c Allocator.cxx
/bin/sh: egcs-version: command not found
c++: invalid version number format
make[3]: *** [Allocator.o] Error 1
make[3]: Leaving directory `/usr/src/RPM/BUILD/sgml-tools-1.0.9/sp/lib'

This "egcs-version" comes from sgml-tools-1.0.9-compile-patch. If I
remove the offending piece of code, then it starts compiling several
files until it falls in:

c++ -ansi -fno-implicit-templates -O2  -Wall -Wno-reorder
-Wwrite-strings -Wpointer-arith -Wnested-externs -Woverloaded-virtual
-Wbad-function-cast -I. -I./../include -I./../generic -DSTDC_HEADERS=1
-DHAVE_LIMITS_H=1 -DHAVE_ST_BLKSIZE=1 -Dsig_atomic_t=int
-DSP_HAVE_BOOL=1 -DSP_HAVE_LOCALE=1 -DSP_ANSI_CLASS_INST=1   -c
entmgr_inst.cxx
In file included from entmgr_inst.cxx:34:
../include/Message.h:170: warning: `Messenger::dispatchMessage(Message
&)' was hidden
../include/Message.h:196: warning:   by
`NullMessenger::dispatchMessage(const Message &)'
entmgr_inst.cxx:154: duplicate explicit instantiation of `class
Ptr<SharedXcharMap<unsigned char> >'
entmgr_inst.cxx:167: duplicate explicit instantiation of `class
ConstPtr<SharedXcharMap<unsigned char> >'
entmgr_inst.cxx:440: duplicate explicit instantiation of `class
Vector<String<unsigned char> >'
entmgr_inst.cxx:570: duplicate explicit instantiation of `class
SharedXcharMap<unsigned char>'
entmgr_inst.cxx:583: duplicate explicit instantiation of `class
SharedXcharMap<unsigned char>'
entmgr_inst.cxx:596: duplicate explicit instantiation of `class
String<unsigned char>'
entmgr_inst.cxx:635: duplicate explicit instantiation of `class
XcharMap<unsigned char>'
entmgr_inst.cxx:648: duplicate explicit instantiation of `class
XcharMap<unsigned char>'
entmgr_inst.cxx:674: duplicate explicit instantiation of `class
Vector<char>'
entmgr_inst.cxx:687: duplicate explicit instantiation of `class
SubstTable<unsigned char>'
make[3]: *** [entmgr_inst.o] Error 1
make[3]: Leaving directory `/usr/src/RPM/BUILD/sgml-tools-1.0.9/sp/lib'

A similar situation happens if I compile the tools without the patches.
But the duplicates happen in an earlier file.
Besides, several warnings happen on compiling Location.cxx. 

Ektanoor

Reply via email to