pan-users
[Top][All Lists]
Advanced

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

Re: [Pan-users] Building Pan on windows


From: K. Haley
Subject: Re: [Pan-users] Building Pan on windows
Date: Fri, 14 Jul 2006 01:41:01 -0600
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

address@hidden wrote:
> After my windows system died I needed to reload my Pan build environment.  I 
> previously had it working but had not built anything since Pan 0.98 I think.
>
> I followed the instructions in Readme.mingw with two execptions:
> 1) I had to make more changes to gmime than what the document indicated but 
> gmime did build cleanly
>   
What other changes?  I don't recall having to make any other changes
when I compiled gmime.
> 2) Pan complained that it could not find libpcreposix.a when it was compiling 
> so I renamed libpcreposix.dll.a to libpcreposix.a
>   
That should not have been needed.  Hmm, perhaps pcre hasn't been
properly compiled.  For one it requires a patched version of libtool to
build properly.  I also made the following changes to pcre-6.3:

Makefile.in:
--- Makefile.in~        Mon Apr  3 20:47:53 2006
+++ Makefile.in Tue Apr  4 01:17:00 2006
@@ -444,8 +444,6 @@
               $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
               echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la
$(DESTDIR)$(LIBDIR)/libpcre.la"
               $(LIBTOOL) --mode=install $(INSTALL) libpcre.la
$(DESTDIR)$(LIBDIR)/libpcre.la
-              echo "$(LIBTOOL) --mode=install $(INSTALL)
libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la"
-              $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la
$(DESTDIR)$(LIBDIR)/libpcreposix.la
 @HAVE_CPP@             echo "$(LIBTOOL) --mode=install $(INSTALL)
libpcrecpp.la $(DESTDIR)$(LIBDIR)/libpcrecpp.la"
 @HAVE_CPP@             $(LIBTOOL) --mode=install $(INSTALL)
libpcrecpp.la $(DESTDIR)$(LIBDIR)/libpcrecpp.la
               $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)

pcrecpp.h.in:
--- pcrecpp.h.in~       Thu Aug 18 07:08:28 2005
+++ pcrecpp.h.in        Tue Apr  4 00:28:11 2006
@@ -328,6 +328,12 @@
 #include <pcre.h>
 #include <pcre_stringpiece.h>
 
+#ifdef PCRE_DEFINITION
+#define PCRE_CLASS_SCOPE __declspec(dllexport)
+#else
+#define PCRE_CLASS_SCOPE __declspec(dllimport)
+#endif
+
 namespace pcrecpp {
 
 #define PCRE_SET_OR_CLEAR(b, o) \
@@ -346,7 +352,7 @@
 // RE_Options allow you to set options to be passed along to pcre,
 // along with other options we put on top of pcre.
 // Only 9 modifiers, plus match_limit are supported now.
-class RE_Options {
+PCRE_CLASS_SCOPE class RE_Options {
  public:
   // constructor
   RE_Options() : match_limit_(0), all_options_(0) {}
@@ -470,7 +476,7 @@
 // Interface for regular expression matching.  Also corresponds to a
 // pre-compiled regular expression.  An "RE" object is safe for
 // concurrent use by multiple threads.
-class RE {
+PCRE_CLASS_SCOPE class RE {
  public:
   // We provide implicit conversions from strings so that users can
   // pass in a string or a "const char*" wherever an "RE" is expected.
@@ -666,7 +672,7 @@
   }
 };
 
-class Arg {
+PCRE_CLASS_SCOPE class Arg {
  public:
   // Empty constructor so we can declare arrays of Arg
   Arg();

> Pan builds fine with those changes above, opens up, downloads groups and 
> headers but when trying to download a message it crashes with this error from 
> Windows:
> pan.exe has encountered a problem and needs to close. 
>   
Since both pan & gmime depend on pcre this could be the problem.  Oh, i
also configure with --enable-utf8 --enable-unicode-properties.  Hope
this helps.


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]