The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"Проблема компиляции Snort-2.1.0 под FreeBSD-4.9"
Вариант для распечатки Архивированная нить - только для чтения! 
Пред. тема | След. тема 
Форумы Программирование под UNIX (Public)
Изначальное сообщение [Проследить за развитием треда]

"Проблема компиляции Snort-2.1.0 под FreeBSD-4.9"
Сообщение от Osirix emailИскать по авторуВ закладки on 08-Янв-04, 21:29  (MSK)
Ну проблемма собственно в сабже. Кто-нибудь сталкивался и как решали?
Ну а теперь подробнее. Стоят порты:
libnet-1.0.2a
libpcap
вроде ему ничего больше и не надо...
configure проходит без падений, а вот во время make выдает такое:
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil  -I../../src/output-plugi
ns -I../../src/detection-plugins -I../../src/preprocessors -I../../src/preprocessors/flow -I../../sr
c/preprocessors/portscan  -I../../src/preprocessors/flow/int-snort  -I../../src/preprocessors/HttpIn
spect/include   -I/usr/local/include -DENABLE_RESPONSE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DH
AVE_SOCKADDR_SA_LEN -DLIBNET_LIL_ENDIAN -I/usr/local/include -I/sw/include  -g -O2 -Wall -c `test -f
'ipobj.c' || echo './'`ipobj.c
In file included from ipobj.c:22:
/usr/include/sys/socket.h:52: syntax error before `sa_family_t'
/usr/include/sys/socket.h:52: warning: type defaults to `int' in declaration of `sa_family_t'
/usr/include/sys/socket.h:52: warning: data definition has no type or storage class
/usr/include/sys/socket.h:163: syntax error before `u_char'
/usr/include/sys/socket.h:174: syntax error before `u_short'
/usr/include/sys/socket.h:188: syntax error before `u_char'
/usr/include/sys/socket.h:190: `int64_t' undeclared here (not in a function)
/usr/include/sys/socket.h:190: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:190: size of array `__ss_pad1' is too large
/usr/include/sys/socket.h:191: syntax error before `int64_t'
/usr/include/sys/socket.h:192: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a function)
/usr/include/sys/socket.h:192: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a function)
/usr/include/sys/socket.h:359: syntax error before `pid_t'
/usr/include/sys/socket.h:364: syntax error before `gid_t'
/usr/include/sys/socket.h:399: syntax error before `u_short'
/usr/include/sys/socket.h:407: syntax error before `caddr_t'
/usr/include/sys/socket.h:411: syntax error before `caddr_t'
/usr/include/sys/socket.h:444: syntax error before `recv'
/usr/include/sys/socket.h:444: warning: type defaults to `int' in declaration of `recv'
/usr/include/sys/socket.h:444: warning: data definition has no type or storage class
/usr/include/sys/socket.h:445: syntax error before `recvfrom'
/usr/include/sys/socket.h:445: warning: type defaults to `int' in declaration of `recvfrom'
/usr/include/sys/socket.h:445: warning: data definition has no type or storage class
/usr/include/sys/socket.h:446: syntax error before `recvmsg'
/usr/include/sys/socket.h:446: warning: type defaults to `int' in declaration of `recvmsg'
/usr/include/sys/socket.h:446: warning: data definition has no type or storage class
/usr/include/sys/socket.h:447: syntax error before `send'
/usr/include/sys/socket.h:447: warning: type defaults to `int' in declaration of `send'
/usr/include/sys/socket.h:447: warning: data definition has no type or storage class
/usr/include/sys/socket.h:448: syntax error before `sendto'
/usr/include/sys/socket.h:449: warning: type defaults to `int' in declaration of `sendto'
/usr/include/sys/socket.h:449: warning: data definition has no type or storage class
/usr/include/sys/socket.h:450: syntax error before `sendmsg'
/usr/include/sys/socket.h:450: warning: type defaults to `int' in declaration of `sendmsg'
/usr/include/sys/socket.h:450: warning: data definition has no type or storage class
/usr/include/sys/socket.h:451: syntax error before `off_t'
In file included from ipobj.c:23:
/usr/include/netinet/in.h:235: syntax error before `in_addr_t'
/usr/include/netinet/in.h:287: syntax error before `u_char'
In file included from /usr/include/netinet/in.h:469,
                 from ipobj.c:23:
/usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
/usr/include/netinet6/in6.h:612: syntax error before `*'
/usr/include/netinet6/in6.h:613: warning: type defaults to `int' in declaration of `inet6_option_app
end'
/usr/include/netinet6/in6.h:614: syntax error before `*'
/usr/include/netinet6/in6.h:614: warning: type defaults to `int' in declaration of `inet6_option_all
oc'
/usr/include/netinet6/in6.h:614: warning: data definition has no type or storage class
/usr/include/netinet6/in6.h:615: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:616: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:631: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:636: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:638: syntax error before `u_int8_t'
ipobj.c: In function `ip4_parse':
ipobj.c:606: structure has no member named `s_addr'
ipobj.c:632: structure has no member named `s_addr'
*** Error code 1

Stop in /root/snort/snort-2.1.0/src/sfutil.
*** Error code 1

Stop in /root/snort/snort-2.1.0/src.
*** Error code 1

Stop in /root/snort/snort-2.1.0.
*** Error code 1

Stop in /root/snort/snort-2.1.0.

Я пробовал собирать и более старые версии (2.0) и результат был примерно такой же. Из портов BSD собирается Snort 2.0.2 без особых проблем. =(((
Но я же хочу руками собрать (2.1.0 в портах не нашел пока, последняя версия там 2.0.5).
Помогите пожалуйста. Может где-то есть более свежие порты кроме как на сайте www.freebsd.org... =(((((
Я заметил что перед установкой порта BSD патчит сорцы. Может эти патчи можно достать где? Я в полной растерянности...

  Рекомендовать в FAQ | Cообщить модератору | Наверх

 Оглавление

Индекс форумов | Темы | Пред. тема | След. тема
Сообщения по теме

1. "Проблема компиляции Snort-2.1.0 под FreeBSD-4.9"
Сообщение от HFSC Искать по авторуВ закладки on 09-Янв-04, 13:41  (MSK)
>Ну проблемма собственно в сабже. Кто-нибудь сталкивался и как решали?
>Ну а теперь подробнее. Стоят порты:
>libnet-1.0.2a
>libpcap
>вроде ему ничего больше и не надо...
>configure проходит без падений, а вот во время make выдает такое:
>gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil  -I../../src/output-plugi
>ns -I../../src/detection-plugins -I../../src/preprocessors -I../../src/preprocessors/flow -I../../sr
>c/preprocessors/portscan  -I../../src/preprocessors/flow/int-snort  -I../../src/preprocessors/HttpIn
>spect/include   -I/usr/local/include -DENABLE_RESPONSE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DH
>AVE_SOCKADDR_SA_LEN -DLIBNET_LIL_ENDIAN -I/usr/local/include -I/sw/include  -g -O2 -Wall -c `test -f
> 'ipobj.c' || echo './'`ipobj.c
>In file included from ipobj.c:22:
>/usr/include/sys/socket.h:52: syntax error before `sa_family_t'
>/usr/include/sys/socket.h:52: warning: type defaults to `int' in declaration of `sa_family_t'
>/usr/include/sys/socket.h:52: warning: data definition has no type or storage class
>/usr/include/sys/socket.h:163: syntax error before `u_char'
>/usr/include/sys/socket.h:174: syntax error before `u_short'
>/usr/include/sys/socket.h:188: syntax error before `u_char'
>/usr/include/sys/socket.h:190: `int64_t' undeclared here (not in a function)
>/usr/include/sys/socket.h:190: `u_char' undeclared here (not in a function)
>/usr/include/sys/socket.h:190: size of array `__ss_pad1' is too large
>/usr/include/sys/socket.h:191: syntax error before `int64_t'
>/usr/include/sys/socket.h:192: `u_char' undeclared here (not in a function)
>/usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a function)
>/usr/include/sys/socket.h:192: `u_char' undeclared here (not in a function)
>/usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a function)
>/usr/include/sys/socket.h:359: syntax error before `pid_t'
>/usr/include/sys/socket.h:364: syntax error before `gid_t'
>/usr/include/sys/socket.h:399: syntax error before `u_short'
>/usr/include/sys/socket.h:407: syntax error before `caddr_t'
>/usr/include/sys/socket.h:411: syntax error before `caddr_t'
>/usr/include/sys/socket.h:444: syntax error before `recv'
>/usr/include/sys/socket.h:444: warning: type defaults to `int' in declaration of `recv'
>/usr/include/sys/socket.h:444: warning: data definition has no type or storage class
>/usr/include/sys/socket.h:445: syntax error before `recvfrom'
>/usr/include/sys/socket.h:445: warning: type defaults to `int' in declaration of `recvfrom'
>/usr/include/sys/socket.h:445: warning: data definition has no type or storage class
>/usr/include/sys/socket.h:446: syntax error before `recvmsg'
>/usr/include/sys/socket.h:446: warning: type defaults to `int' in declaration of `recvmsg'
>/usr/include/sys/socket.h:446: warning: data definition has no type or storage class
>/usr/include/sys/socket.h:447: syntax error before `send'
>/usr/include/sys/socket.h:447: warning: type defaults to `int' in declaration of `send'
>/usr/include/sys/socket.h:447: warning: data definition has no type or storage class
>/usr/include/sys/socket.h:448: syntax error before `sendto'
>/usr/include/sys/socket.h:449: warning: type defaults to `int' in declaration of `sendto'
>/usr/include/sys/socket.h:449: warning: data definition has no type or storage class
>/usr/include/sys/socket.h:450: syntax error before `sendmsg'
>/usr/include/sys/socket.h:450: warning: type defaults to `int' in declaration of `sendmsg'
>/usr/include/sys/socket.h:450: warning: data definition has no type or storage class
>/usr/include/sys/socket.h:451: syntax error before `off_t'
>In file included from ipobj.c:23:
>/usr/include/netinet/in.h:235: syntax error before `in_addr_t'
>/usr/include/netinet/in.h:287: syntax error before `u_char'
>In file included from /usr/include/netinet/in.h:469,
>            
>     from ipobj.c:23:
>/usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
>/usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
>/usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
>/usr/include/netinet6/in6.h:612: syntax error before `*'
>/usr/include/netinet6/in6.h:613: warning: type defaults to `int' in declaration of `inet6_option_app
>end'
>/usr/include/netinet6/in6.h:614: syntax error before `*'
>/usr/include/netinet6/in6.h:614: warning: type defaults to `int' in declaration of `inet6_option_all
>oc'
>/usr/include/netinet6/in6.h:614: warning: data definition has no type or storage class
>/usr/include/netinet6/in6.h:615: syntax error before `u_int8_t'
>/usr/include/netinet6/in6.h:616: syntax error before `u_int8_t'
>/usr/include/netinet6/in6.h:631: syntax error before `u_int8_t'
>/usr/include/netinet6/in6.h:636: syntax error before `u_int8_t'
>/usr/include/netinet6/in6.h:638: syntax error before `u_int8_t'
>ipobj.c: In function `ip4_parse':
>ipobj.c:606: structure has no member named `s_addr'
>ipobj.c:632: structure has no member named `s_addr'
>*** Error code 1
>
>Stop in /root/snort/snort-2.1.0/src/sfutil.
>*** Error code 1
>
>Stop in /root/snort/snort-2.1.0/src.
>*** Error code 1
>
>Stop in /root/snort/snort-2.1.0.
>*** Error code 1
>
>Stop in /root/snort/snort-2.1.0.
>
>Я пробовал собирать и более старые версии (2.0) и результат был примерно
>такой же. Из портов BSD собирается Snort 2.0.2 без особых проблем.
>=(((
>Но я же хочу руками собрать (2.1.0 в портах не нашел пока,
>последняя версия там 2.0.5).
>Помогите пожалуйста. Может где-то есть более свежие порты кроме как на сайте
>www.freebsd.org... =(((((
>Я заметил что перед установкой порта BSD патчит сорцы. Может эти патчи
>можно достать где? Я в полной растерянности...

2.1.0 уже есть а портах

  Рекомендовать в FAQ | Cообщить модератору | Наверх

2. "Проблема компиляции Snort-2.1.0 под FreeBSD-4.9"
Сообщение от Osirix emailИскать по авторуВ закладки on 09-Янв-04, 16:38  (MSK)
>
>2.1.0 уже есть а портах
А где скачать-то? На офсайте БСД не нашел.
Можешь дать ссылку?

  Рекомендовать в FAQ | Cообщить модератору | Наверх

3. "Проблема компиляции Snort-2.1.0 под FreeBSD-4.9"
Сообщение от Osirix emailИскать по авторуВ закладки on 09-Янв-04, 17:38  (MSK)
>>
>>2.1.0 уже есть а портах
>А где скачать-то? На офсайте БСД не нашел.
>Можешь дать ссылку?
Нашел! Спасибо! =)
  Рекомендовать в FAQ | Cообщить модератору | Наверх


Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Пожалуйста, прежде чем написать сообщение, ознакомьтесь с данными рекомендациями.




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру