Sam Varshavchik writes:

> Download: http://www.courier-mta.org/download.html
>
Sam,

I've tried to upgrade Courier to the latest version on FreeBSD 10.3-RELEASE- 
p11 and gmake failed with following errors:

cdfilters.C: In function 'int dofilter(std::string, const char*, unsigned  
int, std::string (*)(unsigned int, void*), void*)':
cdfilters.C:148:41: error: 'strcpy' was not declared in this scope
   strcpy(ssun->sun_path, sockname.c_str());
                                          ^
cdfilters.C:151:43: error: 'strlen' was not declared in this scope
        ssun->sun_path+strlen(ssun->sun_path)-&ssun_buf[0]))

Solved by adding to cdfilters.C
#include <string.h>

Don't remember whether I reported earlier two other errors - missing  
#include <functional> in cdmsgq.C and std:: before resetiosflags() in  
cmlmfetch.C:
--- cmlmfetch.C.orig    2015-02-27 22:18:22.000000000 +0300
+++ cmlmfetch.C 2015-05-16 16:41:14.442091109 +0300
@@ -333,7 +333,7 @@
                         ack << std::setiosflags(std::ios::right)
                             << std::setw(10)
                             << msgs[i]
-                           << resetiosflags(std::ios::right) << " "
+                           << std::resetiosflags(std::ios::right) << " "
                             << std::setw(0) << msginfo[i].msgsubj <<  
std::endl;
                         ack << std::setiosflags(std::ios::right)
                             << std::setw(10)

-- 
Alexei.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to