[evolution-patches] Fix for bug #326794



Hi, Harish 

	Building Evolution code (head) with option "--with-krb5=no" generates
the
following error messages:
==========================================================================
"exchange-config-listener.c", line 646: undefined symbol: change_passwd_cb
"exchange-config-listener.c", line 696: warning: implicit function declaration:
get_new_exchange_password
"exchange-config-listener.c", line 696: warning: improper pointer/integer
combination: op "="
==========================================================================

I attach a patch for this bug, please review. 

Thanks 

--Irene
Index: plugins/exchange-operations/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/exchange-operations/ChangeLog,v
retrieving revision 1.80
diff -u -r1.80 ChangeLog
--- plugins/exchange-operations/ChangeLog	12 Jan 2006 09:31:05 -0000	1.80
+++ plugins/exchange-operations/ChangeLog	13 Jan 2006 06:52:12 -0000
@@ -1,3 +1,12 @@
+2006-01-13  Irene Huang <Irene Huang sun com>
+
+	Fixes #326794
+
+	* exchange-config-listener.c:
+	(exchange_config_listener_authenticate):
+	Wrap the definition and reference of 
+	display_passwd_expiry_message using #ifdef HAVE_KRB5.
+
 2006-01-12  Sushma Rai  <rsushma novell com>
 
 	* exchange-config-listener.c (exchange_config_listener_authenticate): 
Index: plugins/exchange-operations/exchange-config-listener.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/exchange-operations/exchange-config-listener.c,v
retrieving revision 1.18
diff -u -r1.18 exchange-config-listener.c
--- plugins/exchange-operations/exchange-config-listener.c	12 Jan 2006 09:31:05 -0000	1.18
+++ plugins/exchange-operations/exchange-config-listener.c	13 Jan 2006 06:52:13 -0000
@@ -622,6 +622,7 @@
 }
 #endif
 
+#ifdef HAVE_KRB5
 static void
 display_passwd_expiry_message (int max_passwd_age, ExchangeAccount *account)
 {
@@ -653,6 +654,7 @@
 	g_object_unref (xml);
 	g_free (passwd_expiry_msg);
 }
+#endif
 
 ExchangeAccountResult 
 exchange_config_listener_authenticate (ExchangeConfigListener *ex_conf_listener, ExchangeAccount *account) 
@@ -738,9 +740,11 @@
 
 		/* check for password expiry warning */
 		max_pwd_age_days = exchange_account_check_password_expiry (account);
+#ifdef HAVE_KRB5
 		if (max_pwd_age_days >= 0) {
 			display_passwd_expiry_message (max_pwd_age_days, account);
 		}
+#endif
 	}
 	g_free (key);
 	camel_url_free (camel_url);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]