On Saturday 07 April 2007, Sam Varshavchik wrote:
> Download: http://www.courier-mta.org/download.php
>
[...]
>
> Courier 0.55 is a major update to couriermlm.  See below.
>
> Minor changes in Courier 0.55:
>
[...]
>
> ==========================================================================
>
> Major changes in Courier 0.55
>
[...]
>
> + webmlmd - a new HTML interface to couriermlm.  The initial release is
> simplistic, and provides a web-based way to subscribing and unsubscribing
> from the list.
>
> IMPORTANT:
>
[...]

Hi, Sam,
I am preparing new FreeBSD port, but it failed to link webmlmd with undefined 
symbol error.

Compiling webmlmd.C
Linking webmlmd
../cgi/.libs/libcgi.a(cgi.o)(.text+0x1b): In function `enomem':
: undefined reference to `error'
../cgi/.libs/libcgi.a(cgihttpscriptptr.o)(.text+0x12a): In function 
`cgihttpscriptptr':
: undefined reference to `error'
../cgi/.libs/libcgi.a(cgihttpsscriptptr.o)(.text+0x12a): In function 
`cgihttpsscriptptr':
: undefined reference to `error'
gmake[3]: *** [webmlmd] Error 1
gmake[3]: Leaving directory 
`/usr/ports/mail/courier.new/work/courier-0.55/courier'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
`/usr/ports/mail/courier.new/work/courier-0.55/courier'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory 
`/usr/ports/mail/courier.new/work/courier-0.55/courier'
gmake: *** [all-recursive] Error 1

I added it into webmaild.C, similar to sqwebmail.c, patch follows. I am not 
sure this is the right thing to do and would like to make it clear before 
submitting new port into port repository.

--- courier/webmlmd.C.orig      Sun Apr  8 13:37:55 2007
+++ courier/webmlmd.C   Sun Apr  8 13:37:24 2007
@@ -59,6 +59,15 @@
                          << std::endl << std::flush;
                exit(1);
        }
+
+       void error(const char *errmsg)
+       {
+               cginocache();
+               printf("Content-Type: text/html; charset=us-ascii\n\n"
+                       
"<html><head><title>%s</title></head><body><h1>%s</h1></body></html>\n",
+                       errmsg, errmsg);
+               fake_exit(1);
+       }
 }

 std::vector<std::string> mlm_dirs;

Regards,
Milan

-- 
This address is used only for mailing list response.
Do not send any personal messages to it, use milan in
address instead.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to