balsa 2.2.3 on Solaris



Had to apply the attached patch to get balsa 2.2.3 to build cleanly on Solaris 8/SPARC.  
Perhaps the __EXTENSIONS__ macro should be defined by the configure script, as an argument 
to $CC?  Any Solaris users who know config scripts willing to take a shot at writing a test?

Unfortunately, I can't test that it runs correctly.  I get core dumps in libc (_doprnt) 
apparently related to an upgrade from gcc 2.95.2 to 3.3.  No backtrace available either 
(corrupted stack?).  The 2.0.9 that I built with the 2.95.2 compiler runs.

-- 
Steve Wall
diff -u -p balsa-cvs/libbalsa/imap/imap-handle.c balsa-2.2.3/libbalsa/imap/imap-handle.c
--- balsa-cvs/libbalsa/imap/imap-handle.c	2004-08-15 13:15:48.000000000 -0400
+++ balsa-2.2.3/libbalsa/imap/imap-handle.c	2004-08-18 16:29:59.037023000 -0400
@@ -20,6 +20,8 @@
 
 #define _POSIX_SOURCE 1
 #define _BSD_SOURCE   1
+/* EXTENSIONS needed to define struct timeval on Solaris */
+#define __EXTENSIONS__   1
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
diff -u -p balsa-cvs/libbalsa/imap/imap-search.c balsa-2.2.3/libbalsa/imap/imap-search.c
--- balsa-cvs/libbalsa/imap/imap-search.c	2004-07-19 23:41:21.000000000 -0400
+++ balsa-2.2.3/libbalsa/imap/imap-search.c	2004-08-18 16:30:40.983567000 -0400
@@ -18,6 +18,8 @@
  */
 
 #define _POSIX_SOURCE 1
+/* EXTENSIONS needed to define struct timeval on Solaris */
+#define __EXTENSIONS__   1
 #include <string.h>
 #include <time.h>
 
diff -u -p balsa-cvs/libbalsa/address-book-ldap.c balsa-2.2.3/libbalsa/address-book-ldap.c
--- balsa-cvs/libbalsa/address-book-ldap.c	2004-08-14 15:31:15.000000000 -0400
+++ balsa-2.2.3/libbalsa/address-book-ldap.c	2004-08-18 14:02:23.699800000 -0400
@@ -259,7 +259,7 @@ libbalsa_address_book_ldap_open_connecti
 #else /* HAVE_LDAP_TLS */
      libbalsa_address_book_set_status(lbab,
                                       _("TLS requested but not compiled in"));
-     return LDAP_INAPPRIOPRIATE_AUTH;
+     return LDAP_INAPPROPRIATE_AUTH;
 #endif /* HAVE_LDAP_TLS */
     }
 
diff -u -p balsa-cvs/libbalsa/libbalsa.c balsa-2.2.3/libbalsa/libbalsa.c
--- balsa-cvs/libbalsa/libbalsa.c	2004-08-07 13:09:43.000000000 -0400
+++ balsa-2.2.3/libbalsa/libbalsa.c	2004-08-18 16:26:35.657488000 -0400
@@ -32,6 +32,9 @@
 #include <sys/utsname.h>
 #include <stdarg.h>
 #include <unistd.h>
+#ifdef	HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
 
 #if ENABLE_LDAP
 #include <ldap.h>
diff -u -p balsa-cvs/libbalsa/mailbox_imap.c balsa-2.2.3/libbalsa/mailbox_imap.c
--- balsa-cvs/libbalsa/mailbox_imap.c	2004-08-16 16:40:17.000000000 -0400
+++ balsa-2.2.3/libbalsa/mailbox_imap.c	2004-08-18 16:27:00.864529000 -0400
@@ -34,6 +34,9 @@
 
 #include <dirent.h>
 #include <string.h>
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
 
 #ifdef BALSA_USE_THREADS
 #include <pthread.h>
diff -u -p balsa-cvs/libbalsa/misc.c balsa-2.2.3/libbalsa/misc.c
--- balsa-cvs/libbalsa/misc.c	2004-07-05 18:24:02.000000000 -0400
+++ balsa-2.2.3/libbalsa/misc.c	2004-08-18 16:31:47.918351000 -0400
@@ -24,6 +24,8 @@
 
 #define _SVID_SOURCE           1
 #define _XOPEN_SOURCE          500
+/* EXTENSIONS needed to define SYS_NMLN on Solaris */
+#define __EXTENSIONS__         1
 #include <stdio.h>
 #include <sys/utsname.h>
 #include <ctype.h>
@@ -31,6 +33,9 @@
 #include <errno.h>
 #include <dirent.h>
 #include <sys/file.h>
+#ifdef USE_FCNTL
+#include <sys/fcntl.h>
+#endif
 
 #include <libgnomevfs/gnome-vfs-file-info.h>
 #include <libgnomevfs/gnome-vfs-ops.h>
diff -u -p balsa-cvs/libbalsa/rfc3156.c balsa-2.2.3/libbalsa/rfc3156.c
--- balsa-cvs/libbalsa/rfc3156.c	2004-08-08 18:03:44.000000000 -0400
+++ balsa-2.2.3/libbalsa/rfc3156.c	2004-08-18 14:27:20.600539000 -0400
@@ -27,6 +27,9 @@
 #include <gpgme.h>
 #include <pwd.h>
 #include <sys/types.h>
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
 
 #include "libbalsa.h"
 #include "libbalsa_private.h"
diff -u -p balsa-cvs/libbalsa/send.c balsa-2.2.3/libbalsa/send.c
--- balsa-cvs/libbalsa/send.c	2004-07-31 15:17:12.000000000 -0400
+++ balsa-2.2.3/libbalsa/send.c	2004-08-18 16:32:50.733784000 -0400
@@ -24,6 +24,8 @@
 
 #define _BSD_SOURCE     1 
 #define _POSIX_C_SOURCE 199309L
+/* EXTENSIONS needed to define struct timeval on Solaris */
+#define __EXTENSIONS__  1
 
 #include <fcntl.h>
 #include <errno.h>
diff -u -p balsa-cvs/src/balsa-app.c balsa-2.2.3/src/balsa-app.c
--- balsa-cvs/src/balsa-app.c	2004-08-06 11:02:26.000000000 -0400
+++ balsa-2.2.3/src/balsa-app.c	2004-08-18 16:33:34.610735000 -0400
@@ -27,6 +27,9 @@
 #include <pthread.h>
 #endif
 
+/* EXTENSIONS needed to define struct timeval on Solaris */
+#define __EXTENSIONS__ 1
+
 /* for creat(2) */
 #include <sys/types.h>
 #include <sys/stat.h>
diff -u -p balsa-cvs/src/filter-edit-callbacks.c balsa-2.2.3/src/filter-edit-callbacks.c
--- balsa-cvs/src/filter-edit-callbacks.c	2004-06-04 17:46:25.000000000 -0400
+++ balsa-2.2.3/src/filter-edit-callbacks.c	2004-08-18 16:34:22.897493000 -0400
@@ -30,6 +30,8 @@
 #ifdef BALSA_USE_THREADS
 #  include <pthread.h>
 #endif
+/* EXTENSIONS needed to define struct timeval on Solaris */
+#define __EXTENSIONS__ 1
 #include <time.h>
 #include <gnome.h>
 


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