This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

unable rebuilding sgml-tools with gcc-2.95.1


Hi!

Does anyone have success to rebuild sgml-tools-1.0.9 with gcc-2.95.1?
I used sgml-tools-1.0.9.src.rpm which was rebuild with egcs-1.1.2.
 
The system is glibc-2.1.2,binutils-2.9.5.0.11,MkLinux-R1.

I tried to fix Vector.h and others ,but there was any other more problems.
Loaction.h and Lcation.cxx have many problem in them.

Here is fist result.
Thanks
Kaoru

<snip>
creating Makefile
Configuring sgmls-1.1
Generating config.h from unix.cfg.
If this fails, copy unix.cfg to config.h and then edit config.h.
This may take a minute or two...
chmod +x configure
CC="gcc" CFLAGS="    -O" LIBS="" PREFIX=".." \
  ./configure
+ make
Creating bin/sgmltools ...
Compiling the SGML parsing tools (in sgmls-1.1/)...
( cd sgmls-1.1 ; \
  make OPTIMIZE="-O" sgmlsasp )
make[1]: Entering directory `/usr/src/redhat/BUILD/sgml-tools-1.0.9/sgmls-1.1
'
gcc     -O   -c sgmlsasp.c -o sgmlsasp.o
gcc     -O   -c replace.c -o replace.o
gcc     -O   -c sgmls.c -o sgmls.o
gcc     -O   -c strerror.c -o strerror.o
gcc     -O   -c getopt.c -o getopt.o
gcc -o sgmlsasp   sgmlsasp.o replace.o sgmls.o strerror.o getopt.o 
make[1]: Leaving directory `/usr/src/redhat/BUILD/sgml-tools-1.0.9/sgmls-1.1
'
Compiling the SGML parsing tools (in sp/)...
( cd sp ; \
  make )
make[1]: Entering directory `/usr/src/redhat/BUILD/sgml-tools-1.0.9/sp'
make[2]: Entering directory `/usr/src/redhat/BUILD/sgml-tools-1.0.9/sp'
make[3]: Entering directory `/usr/src/redhat/BUILD/sgml-tools-1.0.9/sp/lib'
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 -Dconst= -
Dinline= -DHAVE_ST_BLKSIZE=1 -DSP_HAVE_BOOL=1 -DSP_HAVE_LOCALE=1 -DSP_ANSI_
CLASS_INST=1   -c Allocator.cxx
Allocator.cxx: In method `void Allocator::tooBig(unsigned int)':
Allocator.cxx:99: warning: deprecated conversion from string constant to `char 
*'
Allocator.cxx:99: warning: deprecated conversion from string constant to `char 
*'
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 -Dconst= -
Dinline= -DHAVE_ST_BLKSIZE=1 -DSP_HAVE_BOOL=1 -DSP_HAVE_LOCALE=1 -DSP_ANSI_
CLASS_INST=1   -c Link.cxx
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 -Dconst= -
Dinline= -DHAVE_ST_BLKSIZE=1 -DSP_HAVE_BOOL=1 -DSP_HAVE_LOCALE=1 -DSP_ANSI_
CLASS_INST=1   -c IListBase.cxx
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 -Dconst= -
Dinline= -DHAVE_ST_BLKSIZE=1 -DSP_HAVE_BOOL=1 -DSP_HAVE_LOCALE=1 -DSP_ANSI_
CLASS_INST=1   -c TypeId.cxx
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 -Dconst= -
Dinline= -DHAVE_ST_BLKSIZE=1 -DSP_HAVE_BOOL=1 -DSP_HAVE_LOCALE=1 -DSP_ANSI_
CLASS_INST=1   -c assert.cxx
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 -Dconst= -
Dinline= -DHAVE_ST_BLKSIZE=1 -DSP_HAVE_BOOL=1 -DSP_HAVE_LOCALE=1 -DSP_ANSI_
CLASS_INST=1   -c CharsetInfo.cxx
In file included from /usr/lib/gcc-lib/ppc-redhat-linux/2.95.2/include/new.h:
6,
                 from ../include/xnew.h:22,
                 from ../include/Vector.h:8,
                 from ../include/RangeMap.h:7,
                 from ../include/UnivCharsetDesc.h:13,
                 from ../include/CharsetInfo.h:11,
                 from CharsetInfo.cxx:8:
/usr/lib/gcc-lib/ppc-redhat-linux/2.95.2/include/new: In method `char * bad
_alloc::what()':
/usr/lib/gcc-lib/ppc-redhat-linux/2.95.2/include/new:17: warning: deprecated 
conversion from string constant to `char *'
In file included from ../include/CharsetInfo.h:11,
                 from CharsetInfo.cxx:8:
../include/Vector.h: At top level:
../include/Vector.h: In instantiation of `Vector<RangeMapRange<unsigned int,
unsigned int> >':
../include/RangeMap.h:27:   instantiated from `RangeMap<unsigned int,unsigned 
int>'
../include/UnivCharsetDesc.h:73:   instantiated from here
../include/Vector.h:50: `Vector<RangeMapRange<unsigned int,unsigned int> >::
operator [](unsigned int)' has already been declared in `Vector<RangeMapRange
<unsigned int,unsigned int> >'
../include/Vector.h:52: `Vector<RangeMapRange<unsigned int,unsigned int> >::
begin()' has already been declared in `Vector<RangeMapRange<unsigned int,unsigned 
int> >'
../include/Vector.h:54: `Vector<RangeMapRange<unsigned int,unsigned int> >::
back()' has already been declared in `Vector<RangeMapRange<unsigned int,unsigned 
int> >'
../include/Vector.h: In instantiation of `Vector<ISetRange<unsigned int> >':
../include/ISet.h:25:   instantiated from `ISet<unsigned int>'
CharsetInfo.cxx:89:   instantiated from here
../include/Vector.h:50: `Vector<ISetRange<unsigned int> >::operator [](unsigned 
int)' has already been declared in `Vector<ISetRange<unsigned int> >'
../include/Vector.h:52: `Vector<ISetRange<unsigned int> >::begin()' has already 
been declared in `Vector<ISetRange<unsigned int> >'
../include/Vector.h:54: `Vector<ISetRange<unsigned int> >::back()' has already 
been declared in `Vector<ISetRange<unsigned int> >'
../include/Vector.h: In instantiation of `Vector<ISetRange<unsigned char> >
':
../include/ISet.h:25:   instantiated from `ISet<unsigned char>'
CharsetInfo.cxx:105:   instantiated from here
../include/Vector.h:50: `Vector<ISetRange<unsigned char> >::operator [](unsigned 
int)' has already been declared in `Vector<ISetRange<unsigned char> >'
../include/Vector.h:52: `Vector<ISetRange<unsigned char> >::begin()' has already 
been declared in `Vector<ISetRange<unsigned char> >'
../include/Vector.h:54: `Vector<ISetRange<unsigned char> >::back()' has already 
been declared in `Vector<ISetRange<unsigned char> >'
../include/StringOf.h: In instantiation of `String<unsigned char>':
CharsetInfo.cxx:118:   instantiated from here
../include/StringOf.h:38: `String<unsigned char>::operator [](unsigned int)
' has already been declared in `String<unsigned char>'
../include/StringOf.h:40: `String<unsigned char>::begin()' has already been 
declared in `String<unsigned char>'
make[3]: *** [CharsetInfo.o] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/sgml-tools-1.0.9/sp/lib'
make[2]: *** [lib] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/sgml-tools-1.0.9/sp'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/sgml-tools-1.0.9/sp'
make: *** [all] Error 2
Bad exit status from /var/tmp/rpm-tmp.37412 (%build)
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]