Patch xmlrpc-epi
patch 1
Save this into the file remove_iconv.patch:
--- xmlrpc-epi-0.51/src/encodings.c 2002-03-12 10:08:18.000000000 -0800
+++ src/src/encodings.c 2006-05-02 08:16:07.000000000 -0700
@@ -35,12 +35,18 @@
#include <stdlib.h>
#include <errno.h>
-#include <iconv.h>
+//#include <iconv.h>
#include "encodings.h"
static char* convert(const char* src, int src_len, int *new_len, const char* from_enc, const char* to_enc) {
char* outbuf = 0;
+ /*
+ *
+ *NOTE: Removed becuase windows does not have iconv, and mac
+ * has link problems with it. For now, always use UTF8.
+ *
+
if(src && src_len && from_enc && to_enc) {
int outlenleft = src_len;
int outlen = src_len;
@@ -87,6 +93,7 @@
outbuf[outlen] = 0;
}
}
+ */
return outbuf;
}
Apply the patch:
cd xmlrpc-epi-0.51 patch -p1 < ../remove_iconv.patch
patch 2
Save this into the file rename_queue.patch:
--- xmlrpc-epi-0.51-old/src/queue.h 2001-05-18 10:29:09.000000000 -0700
+++ xmlrpc-epi-0.51-new/src/queue.h 2006-05-02 14:25:30.573246791 -0700
@@ -24,6 +24,9 @@
#define True_ 1
#endif
+/* 2006-05-02 Inserted to enable compilation of rpcserver on linux. Phoenix */
+#define queue xmlrpc_queue
+
typedef struct nodeptr datanode;
typedef struct nodeptr {
Apply the patch:
cd xmlrpc-epi-0.51 patch -p1 < ../rename_queue.patch