Форум программистов, компьютерный форум, киберфорум
Debian, Kali Linux, Raspbian, Astra Linux
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.64/11: Рейтинг темы: голосов - 11, средняя оценка - 4.64
3 / 3 / 0
Регистрация: 06.07.2013
Сообщений: 51

Как скомпилировать ipcad?

29.08.2013, 13:18. Показов 2254. Ответов 3
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
День добрый. Возникла такая проблема. Скачал ipcad вот таким образом
Bash
1
wget [url]http://lionet.info/soft/ipcad-3.7.3.tar.gz[/url]
распаковал его
Bash
1
tar -xvzf ipcad-3.7.3.tar.gz
после чего зашёл
Bash
1
cd /root/ipcad-3.7.3
после чего выполняю
Bash
1
./configure
Результат:
Кликните здесь для просмотра всего текста
Code
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
138
139
root@bgw:~/ipcad-3.7.3# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for pthread_detach... no
checking for pthread_detach in -lc... yes
checking for working pthreads... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for netinet/in.h... yes
checking for netinet/in_systm.h... yes
checking for net/if.h... yes
checking for net/route.h... yes
checking for ifaddrs.h... yes
checking for netinet/ip.h... yes
checking for netinet/tcp.h... yes
checking for net/ethernet.h... yes
checking for netinet/if_ether.h... yes
checking asm/types.h usability... yes
checking asm/types.h presence... yes
checking for asm/types.h... yes
checking linux/socket.h usability... yes
checking linux/socket.h presence... yes
checking for linux/socket.h... yes
checking for linux/netlink.h... yes
checking for linux/netfilter.h... no
checking for linux/if.h... no
checking for linux/netfilter_ipv4/ipt_ULOG.h... yes
checking for linux/netfilter_ipv4/ip_queue.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for socket in -lsocket... no
checking for inet_pton in -lnsl... yes
checking packet source type... pcap
checking net/bpf.h usability... no
checking net/bpf.h presence... no
checking for net/bpf.h... no
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_open_live in -lpcap... yes
checking libipq.h usability... no
checking libipq.h presence... no
checking for libipq.h... no
checking pcap_findalldevs... yes
checking interface access type... linux
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking whether byte ordering is bigendian... no
checking for in_addr_t... yes
checking for socklen_t... yes
checking for open as weak alias for _open... no
checking for strstr... yes
checking for fcntl... yes
checking for flock... yes
checking for sched_yield... yes
checking for pthread_cancel... yes
checking for setpriority... yes
checking for strtoull... yes
checking for strtouq... yes
checking for inet_aton... yes
checking for inet_pton... yes
checking for getifaddrs... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ipcad.spec
config.status: creating config.h
config.status: config.h is unchanged

После чего выполняю make:
Кликните здесь для просмотра всего текста
Code
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
root@bgw:~/ipcad-3.7.3# make
gcc -DIPCAD_VERSION=\"3.7.3\" -DCONFIG_FILE=\"/usr/local/etc/ipcad.conf\" -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE -DPSRC_pcap -DIFST_linux -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -W -Wall -o main.o -c main.c
main.c: In function ‘sigalarm’:
main.c:45:2: warning: implicit declaration of function ‘signal’ [-Wimplicit-function-declaration]
main.c: In function ‘main’:
main.c:247:8: error: ‘SIGCHLD’ undeclared (first use in this function)
main.c:247:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:252:8: error: ‘SIGSEGV’ undeclared (first use in this function)
main.c:253:8: error: ‘SIGBUS’ undeclared (first use in this function)
main.c:261:13: error: ‘SIG_IGN’ undeclared (first use in this function)
main.c:264:9: error: ‘SIGALRM’ undeclared (first use in this function)
main.c:265:9: error: ‘SIGINT’ undeclared (first use in this function)
main.c:266:9: error: ‘SIGHUP’ undeclared (first use in this function)
main.c:267:9: error: ‘SIGQUIT’ undeclared (first use in this function)
main.c:268:9: error: ‘SIGPIPE’ undeclared (first use in this function)
main.c:269:9: error: ‘SIGTERM’ undeclared (first use in this function)
main.c:270:9: error: ‘SIGTTIN’ undeclared (first use in this function)
main.c:272:2: warning: implicit declaration of function ‘siginterrupt’ [-Wimplicit-function-declaration]
main.c: In function ‘block_certain_signals’:
main.c:332:2: warning: implicit declaration of function ‘sigemptyset’ [-Wimplicit-function-declaration]
main.c:333:2: warning: implicit declaration of function ‘sigaddset’ [-Wimplicit-function-declaration]
main.c:333:18: error: ‘SIGINT’ undeclared (first use in this function)
main.c:334:18: error: ‘SIGHUP’ undeclared (first use in this function)
main.c:335:18: error: ‘SIGQUIT’ undeclared (first use in this function)
main.c:336:18: error: ‘SIGTERM’ undeclared (first use in this function)
main.c:337:2: warning: implicit declaration of function ‘sigprocmask’ [-Wimplicit-function-declaration]
main.c:337:21: error: ‘SIG_BLOCK’ undeclared (first use in this function)
main.c: In function ‘terminate_threads’:
main.c:410:3: warning: implicit declaration of function ‘pthread_kill’ [-Wimplicit-function-declaration]
main.c:410:26: error: ‘SIGALRM’ undeclared (first use in this function)
main.c: In function ‘block_certain_signals’:
main.c:338:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [main.o] Ошибка 1

Подскажите пожалуйста как с этим бороться

Добавлено через 29 минут
Я так понимаю в файле "main.c" не объявлена функция, что за функция там должна быть объявлена?

Добавлено через 3 часа 18 минут
Добился следующего
Code
1
2
3
4
5
6
root@bgw:~/ipcad-3.7.3# make
gcc -DIPCAD_VERSION=\"3.7.3\" -DCONFIG_FILE=\"/usr/local/etc/ipcad.conf\" -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE -DPSRC_pcap -DIFST_linux -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -W -Wall -o loop-ipq.o -c loop-ipq.c
loop-ipq.c: In function ‘process_ipq’:
loop-ipq.c:107:38: error: ‘NF_ACCEPT’ undeclared (first use in this function)
loop-ipq.c:107:38: note: each undeclared identifier is reported only once for each function it appears in
make: *** [loop-ipq.o] Ошибка 1
Дальше опять замер недопонимаю
0
cpp_developer
Эксперт
20123 / 5690 / 1417
Регистрация: 09.04.2010
Сообщений: 22,546
Блог
29.08.2013, 13:18
Ответы с готовыми решениями:

Затрудняюсь скомпилировать, просто скомпилировать
У меня Microsoft Visual Studio 2012 ultimate и в связи с тем, что я только только начала осваивать winapi, первым делом я хотела...

Как скомпилировать
Есть исходники одной программы. Но никак не могу понять как изменив исходник получить на выходе новый exe, есть батник - билд, как я понял...

Как скомпилировать?
Написал первую программу но не могу скомпилировать, подскажите как и в какой среде: ; программа преобразования двухзначного...

3
Почетный модератор
7393 / 2639 / 281
Регистрация: 29.07.2006
Сообщений: 13,696
29.08.2013, 13:40
Фиг знает, может, в этом дело:
checking for linux/netfilter.h... no
Поставь linux-headers для своего ядра, или linux-libc-dev, или где там еще этот хидер находится. И перезапусти configure с мейком.
1
3 / 3 / 0
Регистрация: 06.07.2013
Сообщений: 51
29.08.2013, 14:43  [ТС]
Спасибо! Невнимательно посмотрел) Решил проблему следующим образом:
В файл loop-ipq.c подключил файл
C
1
#include /usr/include/linux/netfilter.h
0
Почетный модератор
7393 / 2639 / 281
Регистрация: 29.07.2006
Сообщений: 13,696
29.08.2013, 14:48
Цитата Сообщение от Scream_T Посмотреть сообщение
В файл loop-ipq.c подключил файл
Он должен был, подозреваю, сам прописаться, если был бы найден. В общем, фиг знает, почему так. Я тоже предполагал, что если бы его не было, а инклуд был, то ошибка была бы об отсутствующем хидере. Главное, что все ок.
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
raxper
Эксперт
30234 / 6612 / 1498
Регистрация: 28.12.2010
Сообщений: 21,154
Блог
29.08.2013, 14:48
Помогаю со студенческими работами здесь

Как скомпилировать в com
Как я понял нужно как то скомпилировать в .com? Т.к. .exe не получается, ругается на "No stack" TITLE EXDBADD (COM) Пример...

Как скомпилировать?
Всем привет, пожалуйста помогите мне с таким вопросом. Значит есть два файла на java Их нужно как то вместе соединить и получить ответ...

Как скомпилировать программу?
нажимаю например Alt+F9 , Build, Make - но ничо не получается. как компилировать? var f1,f2,f3:text; s:char; {1. ®вЄалў*Ґ¬...

Как скомпилировать Apk
Здравствуйте, не могу запустить эмулятор, грузится долго (я и не дождался). Может из-за того что у меня Athlon 5600? Установил Genymotion...

Как и чем скомпилировать?
Чем скомпилировать exe файл этой программы? cseg segment assume cs:cseg, ds:cseg, ss:cseg, es:cseg org 100h main proc ...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
4
Ответ Создать тему
Новые блоги и статьи
SDL3 для Web (WebAssembly): Реализация движения на Box2D v3 - трение и коллизии с повёрнутыми стенами
8Observer8 20.02.2026
Содержание блога Box2D позволяет легко создать главного героя, который не проходит сквозь стены и перемещается с заданным трением о препятствия, которые можно располагать под углом, как верхнее. . .
Конвертировать закладки radiotray-ng в m3u-плейлист
damix 19.02.2026
Это можно сделать скриптом для PowerShell. Использование . \СonvertRadiotrayToM3U. ps1 <path_to_bookmarks. json> Рядом с файлом bookmarks. json появится файл bookmarks. m3u с результатом. # Check if. . .
Семь CDC на одном интерфейсе: 5 U[S]ARTов, 1 CAN и 1 SSI
Eddy_Em 18.02.2026
Постепенно допиливаю свою "многоинтерфейсную плату". Выглядит вот так: https:/ / www. cyberforum. ru/ blog_attachment. php?attachmentid=11617&stc=1&d=1771445347 Основана на STM32F303RBT6. На борту пять. . .
Камера Toupcam IUA500KMA
Eddy_Em 12.02.2026
Т. к. у всяких "хикроботов" слишком уж мелкий пиксель, для подсмотра в ESPriF они вообще плохо годятся: уже 14 величину можно рассмотреть еле-еле лишь на экспозициях под 3 секунды (а то и больше),. . .
И ясному Солнцу
zbw 12.02.2026
И ясному Солнцу, и светлой Луне. В мире покоя нет и люди не могут жить в тишине. А жить им немного лет.
«Знание-Сила»
zbw 12.02.2026
«Знание-Сила» «Время-Деньги» «Деньги -Пуля»
SDL3 для Web (WebAssembly): Подключение Box2D v3, физика и отрисовка коллайдеров
8Observer8 12.02.2026
Содержание блога Box2D - это библиотека для 2D физики для анимаций и игр. С её помощью можно определять были ли коллизии между конкретными объектами и вызывать обработчики событий столкновения. . . .
SDL3 для Web (WebAssembly): Загрузка PNG с прозрачным фоном с помощью SDL_LoadPNG (без SDL3_image)
8Observer8 11.02.2026
Содержание блога Библиотека SDL3 содержит встроенные инструменты для базовой работы с изображениями - без использования библиотеки SDL3_image. Пошагово создадим проект для загрузки изображения. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru