LINUX.ORG.RU
ФорумAdmin

компиляция trafd-3.0.3-b6


0

0

Mandriva 2007 Free. libgcc1-4.1.1-3mdk gcc-cpp-4.1.2-1mdv2007.1 gcc-4.1.2-1mdv2007.1

libpcap0-0.9.5-1mdv2007.1

Компилю следующим образом: make -f Makefile.linux all install install-misc ++++++++++++++++++++++++++ Result: ++++++++++++++++++++++++++ ===> Making all in lib make[1]: Entering directory `/root/billing/trafd-3.0.3-b6/lib' cc -c -Wall -O -pipe -D_BSD_SOURCE -I/usr/include -I/usr/local/include -I/usr/include/pcap -I/usr/local/include/pcap -DRETSIGTYPE=void -DRETSIGVAL= -DHAVE_FCNTL_H -DPREFIX=\"/usr/local\" -DTRAFDDIR=\"/var/trafd\" -DETCDIR=\"/usr/local/etc\" -DTRAFSTAT_PORT=150 -DTRAFD_USER=\"trafd\" -DTRAFD_GROUP=\"trafd\" -DMAX_TO_SAVE=104800 -I../include -s -o addrtoname.o addrtoname.c addrtoname.c:44:18: error: pcap.h: No such file or directory addrtoname.c:45:25: error: pcap-namedb.h: No such file or directory In file included from addrtoname.c:58: ../include/interface.h:143: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lookup_printer' In file included from addrtoname.c:62: ../include/util.h:73: warning: type qualifiers ignored on function return type ../include/util.h:75: warning: type qualifiers ignored on function return type addrtoname.c: In function 'init_etherarray': addrtoname.c:645: error: 'PCAP_ETHERS_FILE' undeclared (first use in this function) addrtoname.c:645: error: (Each undeclared identifier is reported only once addrtoname.c:645: error: for each function it appears in.) addrtoname.c:647: warning: implicit declaration of function 'pcap_next_etherent' addrtoname.c:647: warning: assignment makes pointer from integer without a cast addrtoname.c:648: error: dereferencing pointer to incomplete type addrtoname.c:649: error: dereferencing pointer to incomplete type addrtoname.c:649: error: dereferencing pointer to incomplete type addrtoname.c:649: error: dereferencing pointer to incomplete type addrtoname.c:649: error: dereferencing pointer to incomplete type addrtoname.c:649: error: dereferencing pointer to incomplete type addrtoname.c:649: error: dereferencing pointer to incomplete type addrtoname.c:649: error: dereferencing pointer to incomplete type make[1]: *** [addrtoname.o] Error 1 make[1]: Leaving directory `/root/billing/trafd-3.0.3-b6/lib' make: *** [all] Error 1

================================================== Не понимаю куда копать, да либкап стоит, но собирался не из исходников, а рпм-кой. сурсов на машине нет. Говорят надо подправить Makefile, пожалуйста, пару наводок где что править. Содержимое Makefile могу кинуть, елси заинтересует.


Установить libpcap-devel.

qwe ★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.