Package: guessnet
Version: 0.51-1
Severity: important
Tags: patch
Justification: fails to build from source

Apparently guessnet no longer builds from source:

g++ -DHAVE_CONFIG_H -I. -I.. -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD 
-DHAVE_NET_ETHERNET_H   -DSCRIPTDIR=\"/usr/share/guessnet/test\"    -g -O2 -g 
-Wall -O2 -c -o runner/fake.o runner/fake.cc
runner/fake.cc: In member function 'void runner::Fake::startScans()':
runner/fake.cc:32: error: 'printf' was not declared in this scope
runner/fake.cc: In member function 'void runner::Fake::interact()':
runner/fake.cc:82: error: 'fopen' was not declared in this scope
runner/fake.cc:95: error: 'fscanf' was not declared in this scope
runner/fake.cc:107: error: 'fclose' was not declared in this scope
make[3]: *** [runner/fake.o] Error 1

This was built from an up-to-date sid amd64 sbuild chroot. The fix is to add
the missing "#include <cstdio>" to fake.cc:

diff --git a/src/runner/fake.cc b/src/runner/fake.cc
index c6055d5..f6ee175 100644
--- a/src/runner/fake.cc
+++ b/src/runner/fake.cc
@@ -20,6 +20,7 @@
 
 #include "runner/fake.h"
 #include <iostream>
+#include <cstdio>
 
 using namespace std;
 using namespace scanner;

With the above patch, guessnet builds cleanly again.



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

Reply via email to