>>>>> "Lindsay" == R Lindsay Todd <[EMAIL PROTECTED]> writes:

Lindsay> I compiled Lyx 1.1.3 on AIX 4.3.2 using gcc 2.95.2. There
Lindsay> were two minor errors that prevented successful compilation:

Lindsay> 1) In src/support/filetools.C, about line 322:

Lindsay>      The call to putenv fails. The putenv requires a char*
Lindsay> argument, at least on AIX. I had to add a cast. Unless some
Lindsay> systems prototype putenv with a const char* parameter, I
Lindsay> think this is portable.

Until yesterday, I would have said that _all_ systems except solaris7
use const char* ;) I have added some code in configure which is
supposed to detect this situation, although I can't test it, obviously.

Lindsay> 2) In src/spellchecker.C, about line 359, the FD_ZERO macro
Lindsay> is used. When compiled, there is a complaint on this line
Lindsay> that bzero is missing a prototype. FD_ZERO uses bzero.

Lindsay>      As a kludge, I added a #include <strings.h>. But I think
Lindsay> a more portable solution would be to have configure check if
Lindsay> bzero is prototype'd and available, defining a macro in terms
Lindsay> of memset otherwise, and making sure code can use either or
Lindsay> both of bzero and memset.

And what about prototyping bzero ourselves? How unportable would that
be? Hmm...

BTRW, do you get an error or a warning?

Lindsay> I hope these comments are useful.

Of course they are. Keep them coming.

JMarc

Reply via email to