Hi Andreas,

On 01/13/2017 07:27:20 AM Fri, Andreas Schmidt wrote:

I have a similar problem.

On 11/29/2016 08:47:22 AM, Helmut Jarausch wrote:

probably after the update to gtk+-3.22.4 the  GIT-version of Balsa (gtk3 
branch) fails to compile:
The last version of balsa I could compile (using this now) is 
2.5.2-71-gd032986. Meanwhile, GTK+ is at version 3.22.6-1 (Debian/sid), and I 
just tried compiling balsa from the current master branch.

libbalsa.c: In function 'ask_cert_real':
libbalsa.c:564:5: error: 'gtk_window_set_wmclass' is deprecated 

libbalsa.c: In function 'ask_timeout_real':
libbalsa.c:611:5: error: 'gtk_window_set_wmclass' is deprecated 

Those errors were fixed (I hope!) with commit 

Different output here:

imap-tls.c:113:1: error: ‘dyn_destroy_function’ defined but not used 
 dyn_destroy_function(struct CRYPTO_dynlock_value *l,
imap-tls.c:103:1: error: ‘dyn_lock_function’ defined but not used 
 dyn_lock_function(int mode, struct CRYPTO_dynlock_value *l,
imap-tls.c:91:1: error: ‘dyn_create_function’ defined but not used 
 dyn_create_function(const char *file, int line)
imap-tls.c:80:1: error: ‘id_function’ defined but not used 
imap-tls.c:71:1: error: ‘locking_function’ defined but not used 
 locking_function(int mode, int n, const char *file, int line)
cc1: all warnings being treated as errors

Pinning down exactly when OpenSSL introduced that problem is proving 
difficult--please try the attached patch.

The pattern is the same, though: Warnings are treated as errors (how can I stop 
that?), and therefore, the build fails. I have attached the logfile from make.

Building in a git tree turns warnings into errors, and Balsa detects that you 
are building in a git tree by the presence of a .git subdirectory. If you 
rename it, warnings will be left as warnings (but git will not recognize it as 
a git tree!).


diff --git a/libbalsa/imap/imap-tls.c b/libbalsa/imap/imap-tls.c
index 7579401..3283c70 100644
--- a/libbalsa/imap/imap-tls.c
+++ b/libbalsa/imap/imap-tls.c
@@ -63,7 +63,7 @@ static SSL_CTX *global_ssl_context = NULL;
 static GMutex global_tls_lock;
   /* Setting callbacks is not required any more with 1.1.0-pre4 and newer */
-#if OPENSSL_VERSION_NUMBER < 0x010100040L
+#if OPENSSL_VERSION_NUMBER < 0x010100004L
 /* OpenSSL static locks */
 static GMutex *mutexes = NULL;
balsa-list mailing list

Reply via email to