pan-devel
[Top][All Lists]
Advanced

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

Re: [Pan-devel] Re: Building PAN on Windows


From: K. Haley
Subject: Re: [Pan-devel] Re: Building PAN on Windows
Date: Mon, 13 Feb 2006 02:35:19 -0700
User-agent: Thunderbird 1.5 (Windows/20051201)

DPA wrote:
> Christophe, thank you for the reply!  It looks like you are still
> further along than I am, I finally got libxml2 to build by not
> building it with zlib support.  I hope that won't break pan but we
> will see...
>
> I am now getting this error when trying to build PAN now that I got
> passed the problem with building version 2.6.2 of libxml:
> sockets.o(.text+0x54):sockets.c: undefined reference to address@hidden'
My first suggestion is to use a newer version of libxml2.  I know
version 2.6.16 compiles OOB under msys since I just did it, including
zlib support.  As for the errors, they are link problems that should be
fixed by adding -lws2_32 to the link command.  Actually you'll need a
patched version of libtool to create the dll.  I'm attaching both the
patched libtool and a diff that contains all the changes I had to make
to pan.

Hope this helps.

Index: gmime/gmime-stream.h
===================================================================
--- gmime/gmime-stream.h        (revision 159)
+++ gmime/gmime-stream.h        (working copy)
@@ -34,7 +34,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <stdarg.h>
-
+#include <stdio.h>
 #include "gmime-type-utils.h"
 
 #define GMIME_TYPE_STREAM            (g_mime_stream_get_type ())
Index: pan/util.c
===================================================================
--- pan/util.c  (revision 258)
+++ pan/util.c  (working copy)
@@ -24,12 +24,13 @@
 #include <string.h>
 #include <time.h>
 
+#include <glib.h>
+#include <gtk/gtk.h>
+
 #ifdef G_OS_WIN32
 #include <windows.h> /* for ShellExecute */
 #endif
 
-#include <glib.h>
-#include <gtk/gtk.h>
 
 #include <pan/base/argset.h>
 #include <pan/base/debug.h>
@@ -241,7 +242,7 @@
 pan_url_show (const char * url)
 {
 #ifdef G_OS_WIN32
-       ShellExecute (NULL, "open", url, NULL, NULL, SW_SHOWNORMAL);
+       ShellExecute (NULL, "open", url, NULL, NULL, /*SW_SHOWNORMAL*/ 1);
 #else
        const char * browser_string;
        const char * march;
Index: pan/prefs.c
===================================================================
--- pan/prefs.c (revision 159)
+++ pan/prefs.c (working copy)
@@ -107,6 +107,7 @@
 #ifdef G_OS_WIN32
 #define DEFAULT_EXTERNAL_EDITOR "notepad %t"
 #define DEFAULT_SCORE_EDITOR_COMMAND "notepad %t"
+#define DEFAULT_WEB_BROWSER "%s"
 #else
 #define DEFAULT_WEB_BROWSER "mozilla %s"
 #define DEFAULT_EXTERNAL_EDITOR "xterm -e vi %t"
Index: configure.in
===================================================================
--- configure.in        (revision 313)
+++ configure.in        (working copy)
@@ -9,7 +9,7 @@
 AC_PREREQ(2.50)
 AC_CONFIG_SRCDIR(pan/pan.c)
 AC_CONFIG_AUX_DIR(.)
-AC_PROG_INTLTOOL([0.21])
+AC_PROG_INTLTOOL([0.21], [no-xml])
 
 dnl init prerequisite versions
 GLIB_REQUIRED=2.2.0
@@ -194,7 +194,7 @@
 AC_CANONICAL_HOST
 case $build_os in
        *cygwin|*mingw32*)
-       CFLAGS="$CFLAGS -mms-bitfields -mwin32 -mwindows"
+       LIBS="$LIBS -lshell32 -lws2_32"
        ;;
 esac
 

Attachment: libtool.bz2
Description: Binary data

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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