1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137 | MAKEFILE im Hauptordner:
$(shell chmod 755 evalrev)
default: all
all:
$(MAKE) -C sensor $(@)
$(MAKE) -C server $(@)
install:
$(MAKE) -C sensor $(@)
$(MAKE) -C server $(@)
uninstall:
$(MAKE) -C sensor $(@)
$(MAKE) -C server $(@)
strip:
$(MAKE) -C sensor $(@)
$(MAKE) -C server $(@)
clean:
$(MAKE) -C sensor $(@)
$(MAKE) -C server $(@)
distclean: clean
########################################
MAKEFILE im sensor:
include ../common.mak
LIBS = -lpcap -lm -lpthread
SBIN_FILE = openwips-ng
ifeq ($(DEBUG), yes)
CFLAGS += -DDEBUG
endif
ifeq ($(DEBUG), normal)
CFLAGS += -DDEBUG
endif
ifeq ($(DEBUG), true)
CFLAGS += -DDEBUG
endif
ifeq ($(DEBUG), extra)
CFLAGS += -DDEBUG -DEXTRA_DEBUG
endif
default: all
all: openwips-ng
openwips-ng:
$(CC) $(CFLAGS) $(LIBS) $(REV_DEFINE) -o $(SBIN_FILE) main.c client.c structures.c packet_capture.c command_parse.c rpcap.c common/pcap.c common/client.c common/server-client.c common/sockets.c global_var.c common/rpcap.c common/utils.c common/version.c
strip:
strip $(SBIN_FILE)
install: openwips-ng
install -m 755 $(SBIN_FILE) $(sbindir)
uninstall:
rm $(sbindir)/$(SBIN_FILE)
clean:
-rm -f *.o common/*.o $(SBIN_FILE)
############################################################################
nach dem Befehl "make" im Hauptordner erhalte ich:
make -C sensor all
make[1]: Verzeichnis »/home/olaf/openwips-ng-0.1beta1/sensor« wird betreten
cc -O0 -g3 -pthread -Wall -Werror -lpcap -lm -lpthread -D_REVISION=0 -o openwips-ng main.c client.c structures.c packet_capture.c command_parse.c rpcap.c common/pcap.c common/client.c common/server-client.c common/sockets.c global_var.c common/rpcap.c common/utils.c common/version.c
In file included from common/utils.h:25:0,
from main.c:28:
common/pcap.h:27:18: fatal error: pcap.h: Datei oder Verzeichnis nicht gefunden
#include <pcap.h>
^
compilation terminated.
client.c: In function ‘connect_thread’:
client.c:56:32: error: variable ‘err_send’ set but not used [-Werror=unused-but-set-variable]
int readsockets, data_length, err_send, disconnected, connect_err_shown;
^
cc1: all warnings being treated as errors
packet_capture.c:22:18: fatal error: pcap.h: Datei oder Verzeichnis nicht gefunden
#include <pcap.h>
^
compilation terminated.
In file included from common/server-client.h:25:0,
from common/server.h:28,
from rpcap.h:24,
from rpcap.c:25:
common/pcap.h:27:18: fatal error: pcap.h: Datei oder Verzeichnis nicht gefunden
#include <pcap.h>
^
compilation terminated.
In file included from common/pcap.c:24:0:
common/pcap.h:27:18: fatal error: pcap.h: Datei oder Verzeichnis nicht gefunden
#include <pcap.h>
^
compilation terminated.
In file included from common/server-client.h:25:0,
from common/client.h:25,
from common/client.c:28:
common/pcap.h:27:18: fatal error: pcap.h: Datei oder Verzeichnis nicht gefunden
#include <pcap.h>
^
compilation terminated.
In file included from common/server-client.h:25:0,
from common/server-client.c:25:
common/pcap.h:27:18: fatal error: pcap.h: Datei oder Verzeichnis nicht gefunden
#include <pcap.h>
^
compilation terminated.
In file included from common/server-client.h:25:0,
from common/rpcap.h:24,
from common/rpcap.c:23:
common/pcap.h:27:18: fatal error: pcap.h: Datei oder Verzeichnis nicht gefunden
#include <pcap.h>
^
compilation terminated.
common/utils.c:26:23: fatal error: pcap/pcap.h: Datei oder Verzeichnis nicht gefunden
#include <pcap/pcap.h>
^
compilation terminated.
make[1]: *** [openwips-ng] Fehler 1
make[1]: Verzeichnis »/tmp/guest-M6qvFr/openwips-ng-0.1beta1/sensor« wird verlassen
make: *** [all] Fehler 2
|