Package: havp Version: 0.85-1 Usertags: ftbfs-gcc-4.3 Tags: patch Your package fails to build with GCC 4.3. Version 4.3 has not been released yet but I'm building with a snapshot in order to find errors and give people an advance warning. In GCC 4.3, the C++ header dependencies have been cleaned up. The advantage of this is that programs will compile faster. The downside is that you actually need to directly #include everything you use (but you really should do this anyway, otherwise your program won't work with any compiler other than GCC). Some background of this can be found at http://gcc.gnu.org/PR28080
You can reproduce this problem with gcc-snapshot (20070326-1 or higher) from unstable. (Currently not available for i386, but for amd64, powerpc and ia64. I hope to have i386 binaries in the archive in ~3 weeks.) > Automatic build of havp_0.85-1 on em64t by sbuild/amd64 0.53 ... > x86_64-linux-gnu-g++ -Wall -g -O2 -I/usr/include -Wall -O2 -Wall > -DHAVE_CONFIG_H -c -o helper.o helper.cpp > helper.cpp: In function 'void ExitProcess(int)': > helper.cpp:84: error: 'exit' was not declared in this scope > helper.cpp: In function 'bool MakeDaemon()': > helper.cpp:151: error: 'exit' was not declared in this scope > helper.cpp: In function 'bool HardLockTest()': > helper.cpp:173: error: 'mkstemp' was not declared in this scope > helper.cpp:267: error: 'exit' was not declared in this scope > helper.cpp:277: error: 'exit' was not declared in this scope > helper.cpp:290: error: 'exit' was not declared in this scope > helper.cpp:294: error: 'exit' was not declared in this scope > make[2]: *** [helper.o] Error 1 --- havp/helper.cpp~ 2007-04-05 06:47:50.000000000 +0000 +++ havp/helper.cpp 2007-04-05 06:47:59.000000000 +0000 @@ -28,6 +28,7 @@ #include <grp.h> #include <signal.h> #include <errno.h> +#include <cstdlib> #include <iostream> #include <fstream> --- havp/scannerhandler.cpp~ 2007-04-05 06:48:07.000000000 +0000 +++ havp/scannerhandler.cpp 2007-04-05 06:48:17.000000000 +0000 @@ -42,6 +42,7 @@ #include <unistd.h> #include <fcntl.h> #include <errno.h> +#include <cstdlib> extern char TempFileName[MAXSCANTEMPFILELENGTH+1]; extern int fd_tempfile; --- havp/params.cpp~ 2007-04-05 06:48:44.000000000 +0000 +++ havp/params.cpp 2007-04-05 06:48:51.000000000 +0000 @@ -22,6 +22,7 @@ #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> +#include <cstdlib> #include <iostream> #include <fstream> --- havp/havp.cpp~ 2007-04-05 06:49:12.000000000 +0000 +++ havp/havp.cpp 2007-04-05 06:49:21.000000000 +0000 @@ -31,6 +31,7 @@ #include <signal.h> #include <time.h> #include <errno.h> +#include <cstdlib> #include <iostream> URLList Whitelist; --- havp/proxyhandler.cpp~ 2007-04-05 06:49:32.000000000 +0000 +++ havp/proxyhandler.cpp 2007-04-05 06:49:40.000000000 +0000 @@ -21,6 +21,7 @@ #include "utils.h" #include <errno.h> +#include <cstdlib> #include <deque> #include <iostream> #include <fstream> -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]