[Sunhelp] help building tools, python error

Gregory Leblanc GLeblanc at cu-portland.edu
Thu Nov 25 00:37:42 CST 1999


Well, I'm back again, this time without rant.  :)  I've done everything that
I know how to figure out why I can't compile SGMLTools on my Solaris7 box,
and I now have the GNU tools installed (because I don't get anywhere without
them).  I've looked at the python script/program that's called and it looks
ok (though I don't know python) and I've even taken an editor and look at
the files that are causing all this grief, but I can't see anything that
looks wrong.  I suppose if it looked wrong they probably would have fixed
it, but you never know.  If anybody has some free time to take a peek and
tell me that I'm doing something really silly, I'd appreciate it.  Thanks,
	Greg

This is kinda long, but it has to be to include all of the necessary detail
to get this fixed, I think.  Please give it a shot.  I have python 1.5.2
installed as binaries (I didn't compile it myself).  I've managed to track
my problem down to the step within the makefile for .deps/build-jade.  For
some reason, I can only run the python scripts by hand after I've just done
a 'make clean-jade'.  That doesn't bother me too much, but it still breaks.
:(  I believe that the problem arrises because of this statement:

c++ -O2 -fno-implicit-templates -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_HAVE_GETTEXT=1 -DSP_ANSI_CLASS_INST=1 -DSP_HAVE_SOCKET=1
-DSP_MULTI_BYTE=1 -DSGML_CATALOG_FILES_DEFAULT=\"/etc/sgml/catalog\" -c
-fPIC -DPIC CharsetInfo.cxx

All one command, of course.  I get LOTS of messages about thus-and-such
function already being defined as something else.  I also get a number of
warning about conflicting with built-in definistions for functions,
especially in some of the header files.  I don't know how to make it give me
more detail on the error.  When it stops, it says only 

make[2]: *** [CharsetInfo.lo] Error 1
make[2]: Leaving directory '.../sgmltools/packages/cvs/jade/lib'
make[1]: *** [lib] Error 2
make[1]: Leaving directory '.../sgmltools/packages/cvs/jade'
make: *** [all] Error 2
error 512 running RPM command

Now, I'm assuning that the number in brackets at make is the number of
"sub-makes" that it's decended to get to where it is.  What do the {Error 1}
etc mean?  Error is obvious, but what's the number stand for?  Why is it
running "RPM command"?  Is that just another name for the rpmaction.py
script? I'll paste the whole series of output from the end below here, in
case somebody else wants to take a look at it and tell me how I've pulled it
apart wrong.  I think I've found where the problem is, I just can't figure
out why exactly it doesn't/can't compile that silly thing.  Thanks
everybody,
	Greg


--quote--
# /usr/local/bin/python tools/rpmaction.py build jade
build jade:
+ make 
if test all = 'install'; then mkdir /usr/local; fi
make[1]: Entering directory
`/export/home/root/tmp/sgmltools/packages/cvs/jade'
make[2]: Entering directory
`/export/home/root/tmp/sgmltools/packages/cvs/jade/lib'
c++ -O2 -fno-implicit-templates -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_HAVE_GETTEXT=1 -DSP_ANSI_CLASS_INST=1 -DSP_HAVE_SOCKET=1
-DSP_MULTI_BYTE=1 -DSGML_CATALOG_FILES_DEFAULT=\"/etc/sgml/catalog\" -c
-fPIC -DPIC CharsetInfo.cxx
In file included from ../include/CharsetInfo.h:11,
                 from CharsetInfo.cxx:8:
../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> >'
In file included from ../include/StringOf.h:15,
                 from ../include/StringC.h:8,
                 from ../include/CharsetInfo.h:14,
                 from CharsetInfo.cxx:8:
/usr/include/string.h:43: warning: declaration of `void * memcpy(void *,
void *, unsigned int)'
/usr/include/string.h:43: warning: conflicts with built-in declaration
`void * memcpy(void *, const void *, unsigned int)'
/usr/include/string.h:45: warning: declaration of `char * strcpy(char *,
char *)'
/usr/include/string.h:45: warning: conflicts with built-in declaration
`char * strcpy(char *, const char *)'
/usr/include/string.h:51: warning: declaration of `int memcmp(void *,
void *, unsigned int)'
/usr/include/string.h:51: warning: conflicts with built-in declaration
`int memcmp(const void *, const void *, unsigned int)'
/usr/include/string.h:52: warning: declaration of `int strcmp(char *,
char *)'
/usr/include/string.h:52: warning: conflicts with built-in declaration
`int strcmp(const char *, const char *)'
/usr/include/string.h:71: warning: declaration of `size_t strlen(char
*)'
/usr/include/string.h:71: warning: conflicts with built-in declaration
`unsigned int strlen(const char *)'
../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<short
unsigned int> >':
../include/ISet.h:25:   instantiated from `ISet<short unsigned int>'
CharsetInfo.cxx:105:   instantiated from here
../include/Vector.h:50: `Vector<ISetRange<short unsigned int>
>::operator [](unsigned int)' has already been declared in
`Vector<ISetRange<short unsigned int> >'
../include/Vector.h:52: `Vector<ISetRange<short unsigned int>
>::begin()' has already been declared in `Vector<ISetRange<short unsigned
int> >'
../include/Vector.h:54: `Vector<ISetRange<short unsigned int> >::back()'
has already been declared in `Vector<ISetRange<short unsigned int> >'
../include/StringOf.h: In instantiation of `String<short unsigned int>':
CharsetInfo.cxx:129:   instantiated from here
../include/StringOf.h:38: `String<short unsigned int>::operator
[](unsigned int)' has already been declared in `String<short unsigned
int>'
../include/StringOf.h:40: `String<short unsigned int>::begin()' has
already been declared in `String<short unsigned int>'
make[2]: *** [CharsetInfo.lo] Error 1
make[2]: Leaving directory
`/export/home/root/tmp/sgmltools/packages/cvs/jade/lib'
make[1]: *** [lib] Error 2
make[1]: Leaving directory
`/export/home/root/tmp/sgmltools/packages/cvs/jade'
make: *** [all] Error 2
error 512 running RPM command
#
--/quote--






More information about the SunHELP mailing list