I guess this is the price you pay for keeping your machine up to date
and use bleeding edge versions of everything.

Anyways, it seems that latest gcc decided that __FUNCTION__ wasn't
nice and should be scheduled for deprecation, so....

patch follows:

Index: src/modules/perl/modperl_log.h
===================================================================
RCS file: 
/home/gozer/mirror/cvs.apache.org/modperl-2.0-cvs/src/modules/perl/modperl_log.h,v
retrieving revision 1.6
diff -u -b -B -r1.6 modperl_log.h
--- src/modules/perl/modperl_log.h      11 Oct 2001 19:14:06 -0000      1.6
+++ src/modules/perl/modperl_log.h      13 Mar 2002 15:24:29 -0000
@@ -2,10 +2,17 @@
 #define MODPERL_LOG_H
 
 #ifdef MP_TRACE
-/* XXX: not every cc supports this
- * sort out later
- */
+#   if defined(__GNUC__) && (__GNUC__ > 2)
+#      define MP_FUNC __func__
+#   else
+#       if defined(__FUNCTION__)
 #   define MP_FUNC __FUNCTION__
+#       else
+#           define MP_FUNC "MP_FUNC"
+#           warning Impossible to magically figure out current function name
+#       endif
+#   endif
+
 #else
 #   define MP_FUNC "MP_FUNC"
 #endif


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to