Re: [courier-users] Courier 0.76.3 released

2017-01-09 Thread Alexei Batyr'
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 

Don't remember whether I reported earlier two other errors - missing  
#include  in cdmsgq.C and std:: before resetiosflags() in  
cmlmfetch.C:
--- cmlmfetch.C.orig2015-02-27 22:18:22.0 +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


Re: [courier-users] Courier 0.76.3 released

2017-01-09 Thread Sam Varshavchik

Alexei Batyr' writes:


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:


Ok, made those fixes.

What compiler was that?




pgpvGJz4BR9B0.pgp
Description: PGP signature
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Courier 0.76.3 released

2017-01-09 Thread Alexei Batyr'
Sam Varshavchik writes:

> Ok, made those fixes.
>
> What compiler was that?
>
I think gcc 4.9.4:
mail# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc49/gcc/x86_64-portbld- 
freebsd10.3/4.9.4/lto-wrapper
Target: x86_64-portbld-freebsd10.3
Configured with: /wrkdirs/usr/ports/lang/gcc/work/gcc-4.9.4/configure -- 
disable-bootstrap --disable-nls --enable-gnu-indirect-function -- 
libdir=/usr/local/lib/gcc49 --libexecdir=/usr/local/libexec/gcc49 --program- 
suffix=49 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx- 
include-dir=/usr/local/lib/gcc49/include/c++/ --with-ld=/usr/local/bin/ld -- 
with-pkgversion='FreeBSD Ports Collection' --with-system-zlib --with-ecj- 
jar=/usr/local/share/java/ecj-4.5.jar --enable- 
languages=c,c++,objc,fortran,java --prefix=/usr/local --localstatedir=/var  
--mandir=/usr/local/man --infodir=/usr/local/info/gcc49 --build=x86_64- 
portbld-freebsd10.3
Thread model: posix
gcc version 4.9.4 (FreeBSD Ports Collection)

-- 
Alexei.

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users