Re: LyX 1.3.0 compile problems with -finstrument-functions

2003-02-13 Thread John Levon
On Fri, Feb 14, 2003 at 10:11:14AM +1100, Amir Michail wrote:

> We tried to write a LyX 1.3.0 template for DRT, but found
> that the source no longer compiles with CXXFLAGS=-finstrument-functions.
> This used to work with LyX 1.2.1.  Here is the error (with Qt frontend):
> 
> /usr/include/string.h:229: declaration of `char *strerror (int) throw
> ()' throws different exceptions
> ../../src/config.h:428: than previous declaration `char *strerror
> (int)'

Remember  to autogen.sh and configure again after applying this

Index: configure.ac
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/configure.ac,v
retrieving revision 1.23
diff -u -r1.23 configure.ac
--- configure.ac30 Jan 2003 10:05:18 -  1.23
+++ configure.ac7 Feb 2003 10:39:25 -
@@ -238,7 +238,7 @@
 AC_TYPE_SIZE_T
 AC_TYPE_UID_T
 
-AC_CHECK_FUNCS(snprintf vsnprintf)
+AC_CHECK_FUNCS(snprintf vsnprintf strerror)
 LYX_CHECK_DECL(snprintf, stdio.h)
 LYX_CHECK_DECL(vsnprintf, stdio.h)
 LYX_CHECK_DECL(istreambuf_iterator, iterator)
Index: configure.in
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/configure.in,v
retrieving revision 1.16
diff -u -r1.16 configure.in
--- configure.in30 Jan 2003 10:05:18 -  1.16
+++ configure.in7 Feb 2003 10:39:26 -
@@ -243,7 +243,7 @@
 AC_TYPE_SIZE_T
 AC_TYPE_UID_T
 
-AC_CHECK_FUNCS(snprintf vsnprintf)
+AC_CHECK_FUNCS(snprintf vsnprintf strerror)
 LYX_CHECK_DECL(snprintf, stdio.h)
 LYX_CHECK_DECL(vsnprintf, stdio.h)
 LYX_CHECK_DECL(istreambuf_iterator, iterator)



LyX 1.3.0 compile problems with -finstrument-functions

2003-02-13 Thread Amir Michail
Hi,

We tried to write a LyX 1.3.0 template for DRT, but found
that the source no longer compiles with CXXFLAGS=-finstrument-functions.
This used to work with LyX 1.2.1.  Here is the error (with Qt frontend):

g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem 
/usr/X11R6/include -
finstrument-functions -c dimension.C -MT dimension.lo -MD -MP -MF 
.deps/dimension.TPlo
In file included from /usr/include/g++-3/cstring:7,
 from /usr/include/g++-3/std/straits.h:106,
 from /usr/include/g++-3/std/bastring.h:36,
 from /usr/include/g++-3/string:6,
 from ../../src/LString.h:23,
 from math_support.h:10,
 from dimension.C:17:
/usr/include/string.h:229: declaration of `char *strerror (int) throw
()' throws different exceptions
../../src/config.h:428: than previous declaration `char *strerror
(int)'
make[3]: *** [dimension.lo] Error 1
make[3]: Leaving directory `/root/lyx-1.3.0/src/mathed'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/lyx-1.3.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/lyx-1.3.0/src'
make: *** [all-recursive] Error 1


Amir