tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Building spamprobe on on Debian squeezy/sid w/ gcc 4.4.5 [patches]




I get build errors when trying to build pkgsrc/mail/spamprobe on Debian squeezy/sid w/ gcc 4.4.5 - C functions like atoi(), strncmp() and others
are not recognized by the C++ compiler. The two patches below fix this.

Does anyone see a problem with committing those?
(Also: IIRC there's a freeze on right now... commit or wait until later?)

Thanks!


 - Hubert


$NetBSD$

--- ./src/includes/util.h.orig  2010-12-28 17:32:19.000000000 +0000
+++ ./src/includes/util.h
@@ -38,6 +38,8 @@
 #include <cmath>
 #include <memory>
 #include <string>
+#include <string.h> /*HF: make strncmp() etc. know on Debian squeezy/sid w/ 
gcc 4.4.5 */
+#include <stdlib.h> /*HF: make atoi() know */
 #include <cctype>
 #include <cassert>
 #include <iostream>
$NetBSD$

--- ./src/includes/MultiLineSubString.h.orig    2006-11-17 07:24:48.000000000 
+0000
+++ ./src/includes/MultiLineSubString.h
@@ -31,6 +31,7 @@
 #ifndef _MultiLineSubString_h
 #define _MultiLineSubString_h

+#include <limits.h> /*HF: make INT_MAX known on Debian squeezy/sid w/ gcc 
4.4.5 */
 #include "AbstractMultiLineString.h"

 class MultiLineSubString : public AbstractMultiLineString


Home | Main Index | Thread Index | Old Index