Steve Shockley writes:
When building on OpenBSD 4.1, I get the following:gmake[4]: Leaving directory `/usr/ports/mystuff/mail/courier/w-courier-0.56.0/build-i386/courier/module.dsn'[ … ]
I'm not sure what's the problem with some of these. It's complaining about perfectly valid code.
I'm going to have to guess here. Try applying this patch.
Index: courier/webmlmd.C
===================================================================
RCS file: /cvsroot/courier/courier/courier/courier/webmlmd.C,v
retrieving revision 1.15
diff -U3 -r1.15 webmlmd.C
--- courier/webmlmd.C 30 Jun 2007 03:49:11 -0000 1.15
+++ courier/webmlmd.C 3 Jul 2007 11:04:34 -0000
@@ -606,7 +606,11 @@
cmdset(args_array, false);
{
- std::istringstream i(std::string(cgi("optheaderadd")) + "\n");
+ std::string key=cgi("optheaderadd");
+
+ key += "\n";
+
+ std::istringstream i(key);
std::ofstream ofs(HEADERADD ".new");
@@ -623,7 +627,10 @@
}
{
- std::istringstream i(std::string(cgi("optheaderdel")) + "\n");
+ std::string key=cgi("optheaderdel");
+ key += "\n";
+
+ std::istringstream i(key);
std::ofstream ofs(HEADERDEL ".new");
@@ -953,10 +960,10 @@
if (ctlmsg.start(ext, address, "ctlmsg"))
{
- FILE *stdin=ctlmsg.stdinptr();
+ FILE *stdinptr=ctlmsg.stdinptr();
ctlmsg.mk_received_header();
- fprintf(stdin, "\nSubscription request received.\n");
+ fprintf(stdinptr, "\nSubscription request received.\n");
if (ctlmsg.wait())
{
@@ -1100,10 +1107,10 @@
if (confirm.start(method + "-" + token, "",
"ctlmsg"))
{
- FILE *stdin=confirm.stdinptr();
+ FILE *stdinptr=confirm.stdinptr();
confirm.mk_received_header();
- fprintf(stdin,
+ fprintf(stdinptr,
"Subject: yes -- confirmed by WebMLM\n"
"\n"
"Confirmed\n");
@@ -1117,9 +1124,9 @@
char buf[1024];
bool isfirst=true;
- FILE *stdout=confirm.stdoutptr();
+ FILE *stdoutptr=confirm.stdoutptr();
- while (fgets(buf, sizeof(buf), stdout))
+ while (fgets(buf, sizeof(buf), stdoutptr))
{
if (isfirst)
{
Index: courier/webmlmdmod.C
===================================================================
RCS file: /cvsroot/courier/courier/courier/courier/webmlmdmod.C,v
retrieving revision 1.3
diff -U3 -r1.3 webmlmdmod.C
--- courier/webmlmdmod.C 30 Jun 2007 03:49:11 -0000 1.3
+++ courier/webmlmdmod.C 3 Jul 2007 11:04:34 -0000
@@ -286,10 +286,10 @@
if (ctlmsg.start("moderate", "", "ctlmsg"))
{
- FILE *stdin=ctlmsg.stdinptr();
+ FILE *stdinptr=ctlmsg.stdinptr();
ctlmsg.mk_received_header();
- fprintf(stdin, "Subject: yes\n\n"
+ fprintf(stdinptr, "Subject: yes\n\n"
"==CUT HERE==\n\n==CUT HERE==\n\n"
"[%s]\n"
"[%s]\n",
@@ -329,10 +329,10 @@
if (ctlmsg.start("moderate", "", "ctlmsg"))
{
- FILE *stdin=ctlmsg.stdinptr();
+ FILE *stdinptr=ctlmsg.stdinptr();
ctlmsg.mk_received_header();
- fprintf(stdin, "Subject: %s\n\n"
+ fprintf(stdinptr, "Subject: %s\n\n"
"==CUT HERE==\n\n%s==CUT HERE==\n\n"
"[%s]\n"
"[%s]\n",
pgp41sO0RPu6w.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
