Re: Difficulties encountered compiling Amaya 9.1 on Solaris 9

Rich Kulawiec <[email protected]>
Newsgroups gmane.comp.web.amaya.devel
Organization INRIA
Message-ID <[email protected]>

On Wed, Mar 23, 2005 at 09:05:46AM +0100, Rich Kulawiec wrote:
> Having gotten past the issue above, I'm now hitting a compilation
> error in "annotlib" which appears to be a consequence of (maybe)
> a missing inclusion.

This was eventually traced back to a crash in writeapp -- which is
built and executed during compilation.  I've made the following
change around line 604 of writeapp.c (in WriteIncludeFile()):

was:
	for (i = 0; i < pSSchema->SsNRules; i++) {

is:
	for (i = 0; i < pSSchema->SsNRules && i < 6; i++) {

which I'll freely admit is merely a kludge, but at least it does seem
to prevent the crash and permit Amaya to be built.  When I get a chance,
I hope to dig into this more thoroughly and find the real reason behind
the problem -- I suspect an array index incremented past the end of the
 array.

---Rsk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.