Package: swscanner
Version: 0.1.6-1
Severity: normal
Tags: patch

When building 'swscanner' on amd64/unstable with gcc-4.0,
I get the following error:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/share/qt3/include 
-I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor 
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi 
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts 
-O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new 
-fno-common  -c -o ifaces.o `test -f 'ifaces.cpp' || echo './'`ifaces.cpp
ifaces.cpp: In function 'int set_default_gw(int, char*)':
ifaces.cpp:128: error: 'errno' was not declared in this scope
make[3]: *** [ifaces.o] Error 1
make[3]: Leaving directory `/srv/dbuild/tmp/swscanner-0.1.6/src'

With the attached patch 'swscanner' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/swscanner-0.1.6/src/gpslog.cpp ./src/gpslog.cpp
--- ../tmp-orig/swscanner-0.1.6/src/gpslog.cpp  2005-01-26 00:53:01.000000000 
+0100
+++ ./src/gpslog.cpp    2005-04-09 10:38:46.000000000 +0200
@@ -17,6 +17,7 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
+#include <errno.h>
 #include "gpslog.h"
 
 gpslog::gpslog()
diff -urN ../tmp-orig/swscanner-0.1.6/src/ifaces.cpp ./src/ifaces.cpp
--- ../tmp-orig/swscanner-0.1.6/src/ifaces.cpp  2005-01-26 00:53:01.000000000 
+0100
+++ ./src/ifaces.cpp    2005-04-09 10:38:11.000000000 +0200
@@ -23,6 +23,7 @@
 #include <linux/if.h>
 #include <net/route.h>
 #include <arpa/inet.h>
+#include <errno.h>
 
 #include <string.h>
 #include <stdio.h>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to