From: Wilfried Göesgens Date: Tue, 4 Sep 2007 20:25:20 +0000 (+0000) Subject: * sending the startup-problem-message now does work. X-Git-Tag: v7.86~3095 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=1328e472144b11a9ea6880c0231a76f276eeca1a * sending the startup-problem-message now does work. --- diff --git a/citadel/debian/rules b/citadel/debian/rules index 0b4a8020b..a3dfde6e9 100755 --- a/citadel/debian/rules +++ b/citadel/debian/rules @@ -10,11 +10,12 @@ DEB_DESTDIR = $(CURDIR)/debian/tmp CFLAGS = -Wall -g -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 -ggdb -rdynamic -D_GNU_SOURCE -MD -MP LDFLAGS += -pg SERVER_LDFLAGS += -lm # SERVER_LDFLAGS += -pg + EXTRA_ARGS = --with-profiling --with-backtrace else CFLAGS += -O2 endif @@ -39,7 +40,7 @@ configure-stamp: --with-ldap \ --with-libical \ --with-libsieve \ - --enable-debug + --enable-debug $(EXTRA_ARGS) touch configure-stamp diff --git a/citadel/mk_module_init.sh b/citadel/mk_module_init.sh index fa2782c06..49112c57e 100755 --- a/citadel/mk_module_init.sh +++ b/citadel/mk_module_init.sh @@ -43,7 +43,7 @@ $ECHO $MINUS_e "#include \"modules_init.h\"\n" >> $C_FILE $ECHO $MINUS_e "#include \"sysdep_decls.h\"\n" >> $C_FILE $ECHO $MINUS_e "\n\n\n" >> $C_FILE $ECHO $MINUS_e "void LogPrintMessages(long err);\n" >> $C_FILE -$ECHO $MINUS_e "static long DetailErrorFlags;\n" >> $C_FILE +$ECHO $MINUS_e "extern long DetailErrorFlags;\n" >> $C_FILE $ECHO $MINUS_e "\n\n\n" >> $C_FILE $ECHO $MINUS_e "void initialise_modules (void)\n" >> $C_FILE diff --git a/citadel/serv_extensions.c b/citadel/serv_extensions.c index 69054c7e5..ced004cc4 100644 --- a/citadel/serv_extensions.c +++ b/citadel/serv_extensions.c @@ -61,7 +61,7 @@ static char *errormessages = NULL; size_t nSizErrmsg = 0; -static long DetailErrorFlags; +long DetailErrorFlags; char *ErrSubject = "Startup Problems"; char *ErrGeneral = "Citadel had trouble on starting up. %s This means, citadel won't be the service provider for a specific service you configured it to.\n\n" @@ -107,6 +107,8 @@ void LogPrintMessages(long err) snprintf(Message, n * SIZ, ErrGeneral, Short, Where, List, Hint, DetailList); + lprintf(0,Message); + lprintf(0,ErrSubject); quickie_message("Citadel", NULL, NULL, AIDEROOM, Message, FMT_FIXED, ErrSubject); if (errormessages!=NULL) free (errormessages); errormessages = NULL;