[Pdns-users] Compiling powermail error and .rpm error

Jeroen Wunnink jeroen at easyhosting.nl
Wed May 21 15:06:13 UTC 2008


Never mind, got it working by changing 'max(unsigned int' to 
'max(unsigned long' in smtpsession.cc and pptool.cc


At 16:42 21-5-2008, you wrote:
>Another issue I'm running into (we're replacing an old powerdns 
>server) is when compiling powermail-1.7:
>
>c++ -DHAVE_CONFIG_H -I. -I. -I. -I.   -I/usr/include/mysql 
>-DSYSCONFDIR=\"/usr/local/etc\" -DBINDIR=\"/usr/local/bin\" 
>-DLOCALSTATEDIR=\"/usr/local/var\" -D_GNU_SOURCE -Wall -pthread -O2 
>-c -o smtpsession.o `test -f smtpsession.cc || echo './'`smtpsession.cc
>smtpsession.cc: In member function `bool 
>SmtpSession::eatDataLine(const std::string&, std::string&)':
>smtpsession.cc:202: warning: comparison is always true due to 
>limited range of data type
>smtpsession.cc:206: warning: comparison is always true due to 
>limited range of data type
>smtpsession.cc: In member function `int 
>SmtpSession::determineKbUsage(const std::string&, size_t*, std::string&)':
>smtpsession.cc:397: error: no matching function for call to 
>`max(unsigned int, long unsigned int)'
>smtpsession.cc: In member function `bool SmtpSession::eatTo(const 
>std::string&, std::string&)':
>smtpsession.cc:426: warning: comparison is always true due to 
>limited range of data type
>smtpsession.cc: In member function `void SmtpSession::strip(std::string&)':
>smtpsession.cc:483: warning: comparison is always true due to 
>limited range of data type
>make[2]: *** [smtpsession.o] Error 1
>make[2]: Leaving directory `/root/powermail-1.7'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/root/powermail-1.7'
>make: *** [all] Error 2



Met vriendelijke groet,

Jeroen Wunnink,
EasyHosting B.V. Systeembeheerder
systeembeheer at easyhosting.nl

telefoon:+31 (035) 6285455              Postbus 48
fax: +31 (035) 6838242                  3755 ZG Eemnes

http://www.easyhosting.nl
http://www.easycolocate.nl




More information about the Pdns-users mailing list