Hi,

Note; I'm not sure if email address of dvgevers is still the good one, so I cc to RKhunter-users list.

I try to build  skdet-1.0.tar.bz2 patched it with skdet-fix-includes.diff.
I got these errors (in french) :
    src/scanner.c: Dans la fonction ‘port_scanner’:
    src/scanner.c:34:2: attention : implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
      close(sock);
      ^
    gcc -O2 -pipe -c src/skdet.c -o skdet.o
    src/skdet.c: Dans la fonction ‘main’:
    src/skdet.c:14:9: attention : implicit declaration of function ‘usage’ [-Wimplicit-function-declaration]
             usage(argv[0]);
             ^
    src/skdet.c:34:10: attention : implicit declaration of function ‘pid_info’ [-Wimplicit-function-declaration]
              pid_info(argv[2]);
              ^
    src/skdet.c:37:10: attention : implicit declaration of function ‘check_for_rootkit’ [-Wimplicit-function-declaration]
              check_for_rootkit();
              ^
    src/skdet.c:40:3: attention : implicit declaration of function ‘port_scanner’ [-Wimplicit-function-declaration]
       port_scanner();
       ^
    src/skdet.c:43:10: attention : implicit declaration of function ‘print_version’ [-Wimplicit-function-declaration]
              print_version();
              ^
Include of <unistd.h> is missing from scanner.c and "../include/sket.h" is missing from skdet.c

I join a diff file to fix the missing includes.
It contains skdet-fix-includes.diff, so no need to apply the two patch files.

Regards.
diff -r -u skdet-1.0/src/scanner.c skdet-1.0_PG/src/scanner.c
--- skdet-1.0/src/scanner.c	2005-01-05 04:12:01.000000000 +0100
+++ skdet-1.0_PG/src/scanner.c	2017-10-01 12:33:47.472772128 +0200
@@ -2,6 +2,7 @@
    the scanned host is localhost */
    
 #include <stdio.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
diff -r -u skdet-1.0/src/skdet.c skdet-1.0_PG/src/skdet.c
--- skdet-1.0/src/skdet.c	2005-01-05 04:12:23.000000000 +0100
+++ skdet-1.0_PG/src/skdet.c	2017-10-01 12:28:59.643427653 +0200
@@ -2,7 +2,9 @@
 
 #include <stdio.h>
 #include <unistd.h>
+#include <stdlib.h>
 #include <sys/types.h>
+#include "../include/skdet.h"
 
 int main(int argc, char *argv[])
 {
diff -r -u skdet-1.0/src/usage.c skdet-1.0_PG/src/usage.c
--- skdet-1.0/src/usage.c	2005-01-05 04:10:54.000000000 +0100
+++ skdet-1.0_PG/src/usage.c	2017-10-01 12:24:29.955726200 +0200
@@ -1,6 +1,7 @@
 /* usage.c - print usage information */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include "../include/skdet.h"
 
 void usage(char *prog)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Rkhunter-users mailing list
Rkhunter-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkhunter-users

Reply via email to