A while ago I posted a workaround for a problem with egcs on Alpha
(with Linux and apparently also with Digital Unix) in math_iter.C
from lyx-1.0.3. It was caused, most likely, by an incorrect
inlining in some circumstances of memcpy function.

Because gcc-2.95 is available I tried to see if this problem is gone.
Indeed, a non-modified source of lyx-1.0.3 recompiled with gcc-2.95
seem to work correctly; at least with this small amount of testing
I tried.

Still using gcc-2.95 brought to light another "gotcha".  This compiler
is stricter in following ANSI C++ standard and during 'configure'
run this elicites 24 messages like that:

configure:5780: ANSI C++ forbids declaration `select' with no type

which, in turn, makes an incorrect "config.h" because trial calls to
a compiler fail.  As a result the whole compilation stops with errors.
An ultimate problem is likely with used 'autoconf'.

The following patch to 'configure' solves the problem:

--- lyx-1.0.3/configure~        Tue Jun  1 04:07:35 1999
+++ lyx-1.0.3/configure Mon Aug  2 14:08:38 1999
@@ -5777,7 +5777,7 @@
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
-extern select 
($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
+extern int select 
+($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
 int main() {
 
 ; return 0; }

  Michal
  [EMAIL PROTECTED]

Reply via email to