Перейти до

Error: 'ifnamsiz' Was Not Declared In This Scope


Рекомендованные сообщения

при попытке ./build сабжевая ошибка в строках 19 и 20

в строках /usr/include/linux/netfilter_ipv4/ip_queue.h:19(20)

у меня ASPLinux.может кто знает что делать?:)

Ссылка на сообщение
Поделиться на других сайтах

вам непонятно,а мне тем более:)

 

login as: root

root@192.168.15.1's password:

Last login: Wed Apr 16 15:45:01 2008 from 192.168.15.2

[root@asp pub]# mc

[root@asp stargazer]# ./build

#############################################################################

Building STG 2.4 for Linux

#############################################################################

Checking for -lexpat... yes

Checking for -lfbclient... yes

Checking for -lmysqlclient... no

gmake -C /var/pub/stg-2.404.9.7/projects/stargazer/../../stglibs includes

gmake[1]: Entering directory `/var/pub/stg-2.404.9.7/stglibs'

gmake includes -C stg_logger.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/stg_logger.lib'

cp stg_logger.h /var/pub/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/stg_logger.lib'

gmake includes -C stg_locker.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/stg_locker.lib'

cp stg_locker.h /var/pub/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/stg_locker.lib'

gmake includes -C crypto.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/crypto.lib'

cp ag_md5.h blowfish.h /var/pub/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/crypto.lib'

gmake includes -C common.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/common.lib'

cp debug.h stg_error.h common.h /var/pub/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/common.lib'

gmake includes -C script_executer.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/script_executer.lib'

cp script_executer.h /var/pub/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/script_executer.lib'

gmake includes -C conffiles.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/conffiles.lib'

cp conffiles.h /var/pub/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/conffiles.lib'

gmake includes -C hostallow.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/hostallow.lib'

cp hostallow.h /var/pub/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/hostallow.lib'

gmake includes -C pinger.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/pinger.lib'

cp pinger.h /var/pub/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/pinger.lib'

gmake includes -C dotconfpp.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/dotconfpp.lib'

cp dotconfpp.h mempool.h /var/pub/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/dotconfpp.lib'

gmake includes -C ibpp.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/ibpp.lib'

cp ibpp.h /var/pub/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/ibpp.lib'

gmake[1]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs'

gmake -C /var/pub/stg-2.404.9.7/projects/stargazer/../../stglibs

gmake[1]: Entering directory `/var/pub/stg-2.404.9.7/stglibs'

gmake -C stg_logger.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/stg_logger.lib'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/stg_logger.lib'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/stg_logger.lib'

gmake[2]: Цель `all' не требует выполнения команд.

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/stg_logger.lib'

gmake -C stg_locker.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/stg_locker.lib'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/stg_locker.lib'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/stg_locker.lib'

gmake[2]: Цель `all' не требует выполнения команд.

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/stg_locker.lib'

gmake -C crypto.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/crypto.lib'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/crypto.lib'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/crypto.lib'

gmake[2]: Цель `all' не требует выполнения команд.

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/crypto.lib'

gmake -C common.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/common.lib'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/common.lib'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/common.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c common.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libstg_common.so debug.o stg_error.o common.o stg_strptime.o -lstg_crypto -o libstg_common.so -L /var/pub/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libstg_common.a debug.o stg_error.o common.o stg_strptime.o

ranlib libstg_common.a

cp *.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /var/pub/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/common.lib'

gmake -C script_executer.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/script_executer.lib'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/script_executer.lib'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/script_executer.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c script_executer.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libscript_executer.so script_executer.o -o libscript_executer.so -L /var/pub/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libscript_executer.a script_executer.o

ranlib libscript_executer.a

cp *.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /var/pub/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/script_executer.lib'

gmake -C conffiles.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/conffiles.lib'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/conffiles.lib'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/conffiles.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c conffiles.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libconffiles.so conffiles.o -o libconffiles.so -L /var/pub/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libconffiles.a conffiles.o

ranlib libconffiles.a

cp *.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /var/pub/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/conffiles.lib'

gmake -C hostallow.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/hostallow.lib'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/hostallow.lib'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/hostallow.lib'

gmake[2]: Цель `all' не требует выполнения команд.

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/hostallow.lib'

gmake -C pinger.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/pinger.lib'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/pinger.lib'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/pinger.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c pinger.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libstg_pinger.so pinger.o -o libstg_pinger.so -L /var/pub/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libstg_pinger.a pinger.o

ranlib libstg_pinger.a

cp *.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /var/pub/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/pinger.lib'

gmake -C dotconfpp.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/dotconfpp.lib'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/dotconfpp.lib'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/dotconfpp.lib'

gmake[2]: Цель `all' не требует выполнения команд.

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/dotconfpp.lib'

gmake -C ibpp.lib

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/ibpp.lib'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/ibpp.lib'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/stglibs/ibpp.lib'

gmake[2]: Цель `all' не требует выполнения команд.

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs/ibpp.lib'

gmake[1]: Leaving directory `/var/pub/stg-2.404.9.7/stglibs'

gmake -C /var/pub/stg-2.404.9.7/projects/stargazer/plugins

gmake[1]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins'

gmake -C authorization/ao

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/authorization/ao'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/authorization/ao'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/authorization/ao'

g++ -c ao.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ ao.o /var/pub/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so -L/usr/local/lib -shared -L/var/pub/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lstg_common -o mod_auth_ao.so

ln -fs "`pwd`/mod_auth_ao.so" /var/pub/stg-2.404.9.7/projects/stargazer/modules/mod_auth_ao.so

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/authorization/ao'

gmake -C authorization/inetaccess

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/authorization/inetaccess'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/authorization/inetaccess'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/authorization/inetaccess'

g++ -c inetaccess.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

inetaccess.cpp: In member function ‘int AUTH_IA::PacketProcessor(char*, int, uint32_t, uint16_t, int, user_iter*)’:

inetaccess.cpp:837: warning: ‘ret’ may be used uninitialized in this function

g++ inetaccess.o /usr/lib/libpthread.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so -L/usr/local/lib -shared -L/var/pub/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lpthread -lstg_common -o mod_auth_ia.so

ln -fs "`pwd`/mod_auth_ia.so" /var/pub/stg-2.404.9.7/projects/stargazer/modules/mod_auth_ia.so

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/authorization/inetaccess'

gmake -C configuration/sgconfig

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/configuration/sgconfig'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/configuration/sgconfig'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/configuration/sgconfig'

g++ -c stgconfig.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ -c rsconf.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ -c configproto.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ -c parser.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ -c parser_tariff.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ -c parser_admin.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ stgconfig.o rsconf.o configproto.o parser.o parser_tariff.o parser_admin.o /usr/lib/libpthread.so /usr/lib/libexpat.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib/libstg_logger.so -L/usr/local/lib -shared -L/var/pub/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lpthread -lexpat -lstg_common -lstg_logger -o mod_conf_sg.so

ln -fs "`pwd`/mod_conf_sg.so" /var/pub/stg-2.404.9.7/projects/stargazer/modules/mod_conf_sg.so

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/configuration/sgconfig'

gmake -C other/ping

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/other/ping'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/other/ping'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/other/ping'

g++ -c ping.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ ping.o /usr/lib/libpthread.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib/libstg_pinger.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so -L/usr/local/lib -shared -L/var/pub/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lpthread -lstg_pinger -lstg_common -o mod_ping.so

ln -fs "`pwd`/mod_ping.so" /var/pub/stg-2.404.9.7/projects/stargazer/modules/mod_ping.so

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/other/ping'

gmake -C other/rscript

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/other/rscript'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/other/rscript'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/other/rscript'

g++ -c rscript.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ rscript.o /usr/lib/libpthread.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so -L/usr/local/lib -shared -L/var/pub/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lpthread -lstg_common -o mod_remote_script.so

ln -fs "`pwd`/mod_remote_script.so" /var/pub/stg-2.404.9.7/projects/stargazer/modules/mod_remote_script.so

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/other/rscript'

gmake -C store/files

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/store/files'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/store/files'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/store/files'

g++ -c file_store.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ file_store.o /var/pub/stg-2.404.9.7/projects/stargazer/../../lib/libconffiles.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so -L/usr/local/lib -shared -L/var/pub/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lconffiles -lstg_common -o mod_store_files.so

ln -fs "`pwd`/mod_store_files.so" /var/pub/stg-2.404.9.7/projects/stargazer/modules/mod_store_files.so

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/store/files'

gmake -C capture/ether_linux

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/capture/ether_linux'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/capture/ether_linux'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/capture/ether_linux'

g++ -c ether_cap.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ ether_cap.o /usr/lib/libpthread.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so -L/usr/local/lib -shared -L/var/pub/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lpthread -lstg_common -o mod_cap_ether.so

ln -fs "`pwd`/mod_cap_ether.so" /var/pub/stg-2.404.9.7/projects/stargazer/modules/mod_cap_ether.so

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/capture/ether_linux'

gmake -C capture/ipq_linux

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/capture/ipq_linux'

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/capture/ipq_linux'

gmake[2]: Entering directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/capture/ipq_linux'

g++ -c ipq_cap.cpp -O2 -I/usr/local/include -Wall -fPIC -I /var/pub/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

/usr/include/linux/netfilter_ipv4/ip_queue.h:19: error: ‘IFNAMSIZ’ was not declared in this scope

/usr/include/linux/netfilter_ipv4/ip_queue.h:20: error: ‘IFNAMSIZ’ was not declared in this scope

gmake[2]: *** [ipq_cap.o] Ошибка 1

gmake[2]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins/capture/ipq_linux'

gmake[1]: *** [capture/ipq_linux] Ошибка 2

gmake[1]: Leaving directory `/var/pub/stg-2.404.9.7/projects/stargazer/plugins'

gmake: *** [plugins] Ошибка 2

[root@asp stargazer]#

Ссылка на сообщение
Поделиться на других сайтах
Неверно стоит libexpat.

Необходимо конфигурить его так: ./configure --prefix=/usr

Ты где это узрел?!

Вот тут:

g++ stgconfig.o rsconf.o configproto.o parser.o parser_tariff.o parser_admin.o /usr/lib/libpthread.so /usr/lib/libexpat.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so /var/pub/stg-2.404.9.7/projects/stargazer/../../lib/libstg_logger.so -L/usr/local/lib -shared -L/var/pub/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lpthread -lexpat -lstg_common -lstg_logger -o mod_conf_sg.so

- все нормально!

Проблема со сборкой cap_ipq.so, который действительно юзает хидеры ядра

Ссылка на сообщение
Поделиться на других сайтах

login as: root

root@192.168.15.1's password:

Last login: Fri Apr 18 10:58:57 2008 from 192.168.15.2

[root@asp ~]# uname -a

Linux asp 2.6.14-1.1653.1asp #1 Mon Jan 23 19:24:56 EET 2006 i686 i686 i386 GNU/Linux

[root@asp ~]#

 

каюсь,в первый раз префикс не указал.когда не получилось с первого раза всё-таки решил почитать мануал.перемейкал экспат с префиксом.результат вы видите.это лечится?или придётся биллинг на руби самому делать?

Ссылка на сообщение
Поделиться на других сайтах

Сегодня проверю на этом ядре.

А ты проверь адекватность установленных хидеров ядра текущему ядру. Может у тебя устаревшие хидеры?

PS: у меня IFNAMSIZ определен в 130 строке файла /usr/include/net/if.h, который подключается из 2 строки файла /usr/include/linux/netfilter_ipv4/ip_queue.h

Ссылка на сообщение
Поделиться на других сайтах

А вот они.Как узнать насколько они адекватны?

 

/* net/if.h -- declarations for inquiring about network interfaces

Copyright © 1997,98,99,2000,2001 Free Software Foundation, Inc.

This file is part of the GNU C Library.

 

The GNU C Library is free software; you can redistribute it and/or

modify it under the terms of the GNU Lesser General Public

License as published by the Free Software Foundation; either

version 2.1 of the License, or (at your option) any later version.

 

The GNU C Library is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU

Lesser General Public License for more details.

 

You should have received a copy of the GNU Lesser General Public

License along with the GNU C Library; if not, write to the Free

Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA

02111-1307 USA. */

 

#ifndef _NET_IF_H

#define _NET_IF_H 1

 

#include <features.h>

 

#ifdef __USE_MISC

# include <sys/types.h>

# include <sys/socket.h>

#endif

 

 

/* Length of interface name. */

#define IF_NAMESIZE 16

 

struct if_nameindex

{

unsigned int if_index; /* 1, 2, ... */

char *if_name; /* null terminated name: "eth0", ... */

};

 

 

#ifdef __USE_MISC

/* Standard interface flags. */

enum

{

IFF_UP = 0x1, /* Interface is up. */

# define IFF_UP IFF_UP

IFF_BROADCAST = 0x2, /* Broadcast address valid. */

# define IFF_BROADCAST IFF_BROADCAST

IFF_DEBUG = 0x4, /* Turn on debugging. */

# define IFF_DEBUG IFF_DEBUG

IFF_LOOPBACK = 0x8, /* Is a loopback net. */

# define IFF_LOOPBACK IFF_LOOPBACK

IFF_POINTOPOINT = 0x10, /* Interface is point-to-point link. */

# define IFF_POINTOPOINT IFF_POINTOPOINT

IFF_NOTRAILERS = 0x20, /* Avoid use of trailers. */

# define IFF_NOTRAILERS IFF_NOTRAILERS

IFF_RUNNING = 0x40, /* Resources allocated. */

# define IFF_RUNNING IFF_RUNNING

IFF_NOARP = 0x80, /* No address resolution protocol. */

# define IFF_NOARP IFF_NOARP

IFF_PROMISC = 0x100, /* Receive all packets. */

# define IFF_PROMISC IFF_PROMISC

 

/* Not supported */

IFF_ALLMULTI = 0x200, /* Receive all multicast packets. */

# define IFF_ALLMULTI IFF_ALLMULTI

 

IFF_MASTER = 0x400, /* Master of a load balancer. */

# define IFF_MASTER IFF_MASTER

IFF_SLAVE = 0x800, /* Slave of a load balancer. */

# define IFF_SLAVE IFF_SLAVE

 

IFF_MULTICAST = 0x1000, /* Supports multicast. */

# define IFF_MULTICAST IFF_MULTICAST

 

IFF_PORTSEL = 0x2000, /* Can set media type. */

# define IFF_PORTSEL IFF_PORTSEL

IFF_AUTOMEDIA = 0x4000 /* Auto media select active. */

# define IFF_AUTOMEDIA IFF_AUTOMEDIA

};

 

/* The ifaddr structure contains information about one address of an

interface. They are maintained by the different address families,

are allocated and attached when an address is set, and are linked

together so all addresses for an interface can be located. */

 

struct ifaddr

{

struct sockaddr ifa_addr; /* Address of interface. */

union

{

struct sockaddr ifu_broadaddr;

struct sockaddr ifu_dstaddr;

} ifa_ifu;

struct iface *ifa_ifp; /* Back-pointer to interface. */

struct ifaddr *ifa_next; /* Next address for interface. */

};

 

# define ifa_broadaddr ifa_ifu.ifu_broadaddr /* broadcast address */

# define ifa_dstaddr ifa_ifu.ifu_dstaddr /* other end of link */

 

/* Device mapping structure. I'd just gone off and designed a

beautiful scheme using only loadable modules with arguments for

driver options and along come the PCMCIA people 8)

 

Ah well. The get() side of this is good for WDSETUP, and it'll be

handy for debugging things. The set side is fine for now and being

very small might be worth keeping for clean configuration. */

 

struct ifmap

{

unsigned long int mem_start;

unsigned long int mem_end;

unsigned short int base_addr;

unsigned char irq;

unsigned char dma;

unsigned char port;

/* 3 bytes spare */

};

 

/* Interface request structure used for socket ioctl's. All interface

ioctl's must have parameter definitions which begin with ifr_name.

The remainder may be interface specific. */

 

struct ifreq

{

# define IFHWADDRLEN 6

# define IFNAMSIZ IF_NAMESIZE

union

{

char ifrn_name[iFNAMSIZ]; /* Interface name, e.g. "en0". */

} ifr_ifrn;

 

union

{

struct sockaddr ifru_addr;

struct sockaddr ifru_dstaddr;

struct sockaddr ifru_broadaddr;

struct sockaddr ifru_netmask;

struct sockaddr ifru_hwaddr;

short int ifru_flags;

int ifru_ivalue;

int ifru_mtu;

struct ifmap ifru_map;

char ifru_slave[iFNAMSIZ]; /* Just fits the size */

char ifru_newname[iFNAMSIZ];

__caddr_t ifru_data;

} ifr_ifru;

};

# define ifr_name ifr_ifrn.ifrn_name /* interface name */

# define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */

# define ifr_addr ifr_ifru.ifru_addr /* address */

# define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-p lnk */

# define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */

# define ifr_netmask ifr_ifru.ifru_netmask /* interface net mask */

# define ifr_flags ifr_ifru.ifru_flags /* flags */

# define ifr_metric ifr_ifru.ifru_ivalue /* metric */

# define ifr_mtu ifr_ifru.ifru_mtu /* mtu */

# define ifr_map ifr_ifru.ifru_map /* device map */

# define ifr_slave ifr_ifru.ifru_slave /* slave device */

# define ifr_data ifr_ifru.ifru_data /* for use by interface */

# define ifr_ifindex ifr_ifru.ifru_ivalue /* interface index */

# define ifr_bandwidth ifr_ifru.ifru_ivalue /* link bandwidth */

# define ifr_qlen ifr_ifru.ifru_ivalue /* queue length */

# define ifr_newname ifr_ifru.ifru_newname /* New name */

# define _IOT_ifreq _IOT(_IOTS(char),IFNAMSIZ,_IOTS(char),16,0,0)

# define _IOT_ifreq_short _IOT(_IOTS(char),IFNAMSIZ,_IOTS(short),1,0,0)

# define _IOT_ifreq_int _IOT(_IOTS(char),IFNAMSIZ,_IOTS(int),1,0,0)

 

 

/* Structure used in SIOCGIFCONF request. Used to retrieve interface

configuration for machine (useful for programs which must know all

networks accessible). */

 

struct ifconf

{

int ifc_len; /* Size of buffer. */

union

{

__caddr_t ifcu_buf;

struct ifreq *ifcu_req;

} ifc_ifcu;

};

# define ifc_buf ifc_ifcu.ifcu_buf /* Buffer address. */

# define ifc_req ifc_ifcu.ifcu_req /* Array of structures. */

# define _IOT_ifconf _IOT(_IOTS(struct ifconf),1,0,0,0,0) /* not right */

#endif /* Misc. */

 

__BEGIN_DECLS

 

/* Convert an interface name to an index, and vice versa. */

extern unsigned int if_nametoindex (__const char *__ifname) __THROW;

extern char *if_indextoname (unsigned int __ifindex, char *__ifname) __THROW;

 

/* Return a list of all interfaces and their indices. */

extern struct if_nameindex *if_nameindex (void) __THROW;

 

/* Free the data returned from if_nameindex. */

extern void if_freenameindex (struct if_nameindex *__ptr) __THROW;

 

__END_DECLS

 

#endif /* net/if.h */

 

 

 

/*

* This is a module which is used for queueing IPv4 packets and

* communicating with userspace via netlink.

*

* © 2000 James Morris, this code is GPL.

*/

#ifndef _IP_QUEUE_H

#define _IP_QUEUE_H

 

#include <linux/if.h>

 

/* Messages sent from kernel */

typedef struct ipq_packet_msg {

unsigned long packet_id; /* ID of queued packet */

unsigned long mark; /* Netfilter mark value */

long timestamp_sec; /* Packet arrival time (seconds) */

long timestamp_usec; /* Packet arrvial time (+useconds) */

unsigned int hook; /* Netfilter hook we rode in on */

char indev_name[iFNAMSIZ]; /* Name of incoming interface */

char outdev_name[iFNAMSIZ]; /* Name of outgoing interface */

unsigned short hw_protocol; /* Hardware protocol (network order) */

unsigned short hw_type; /* Hardware type */

unsigned char hw_addrlen; /* Hardware address length */

unsigned char hw_addr[8]; /* Hardware address */

size_t data_len; /* Length of packet data */

unsigned char payload[0]; /* Optional packet data */

} ipq_packet_msg_t;

 

/* Messages sent from userspace */

typedef struct ipq_mode_msg {

unsigned char value; /* Requested mode */

size_t range; /* Optional range of packet requested */

} ipq_mode_msg_t;

 

typedef struct ipq_verdict_msg {

unsigned int value; /* Verdict to hand to netfilter */

unsigned long id; /* Packet ID for this verdict */

size_t data_len; /* Length of replacement data */

unsigned char payload[0]; /* Optional replacement packet */

} ipq_verdict_msg_t;

 

typedef struct ipq_peer_msg {

union {

ipq_verdict_msg_t verdict;

ipq_mode_msg_t mode;

} msg;

} ipq_peer_msg_t;

 

/* Packet delivery modes */

enum {

IPQ_COPY_NONE, /* Initial mode, packets are dropped */

IPQ_COPY_META, /* Copy metadata */

IPQ_COPY_PACKET /* Copy metadata + packet (range) */

};

#define IPQ_COPY_MAX IPQ_COPY_PACKET

 

/* Types of messages */

#define IPQM_BASE 0x10 /* standard netlink messages below this */

#define IPQM_MODE (IPQM_BASE + 1) /* Mode request from peer */

#define IPQM_VERDICT (IPQM_BASE + 2) /* Verdict from peer */

#define IPQM_PACKET (IPQM_BASE + 3) /* Packet from kernel */

#define IPQM_MAX (IPQM_BASE + 4)

 

#endif /*_IP_QUEUE_H*/

Ссылка на сообщение
Поделиться на других сайтах

Не нужно было приводить хидеры - я ядро не разрабатываю :)

Адекватность можно сравнить по версиям ядра и хидеров (они устанавливаются раздельно).

Я думаю, что ASPLinux использует ту-же сборку компилятора, что и RedHat. А у них есть одна особенноть - они не включают по умолчанию -D_GNU_SOURCE. В результате остаются выключенными в features.h опции -D_BSD_SOURCE и -D_SVID_SOURCE, которые в строках 252-254 включают -D__USE_MISC, который окружает большой блок определений в net/if.h, в т.ч. и # define IFNAMSIZ IF_NAMESIZE.

Резюмирую:

projects/stargazer/plugins/capture/ipq_linux/Makefile:

###############################################################################
# $Id: Makefile,v 1.5 2007/10/16 09:20:27 faust Exp $                          
###############################################################################
                                                                              
include ../../../../../Makefile.conf    

DEFS += -D_GNU_SOURCE                                       
                                                                              
PROG = mod_cap_ipq.so                                                          
                                                                              
SRCS = ./ipq_cap.cpp \
      ./libipq.c                                                              

LIBS = -lpthread -lstg_common

include ../../Makefile.in

 

Замени старый файлик этим и будет тебе счастье.

Ссылка на сообщение
Поделиться на других сайтах

Изменил мэйкфайл:

login as: root

root@192.168.15.1's password:

Last login: Fri Apr 25 09:40:04 2008 from 192.168.15.2

[root@asp ~]# mc

[root@asp ipq_linux]# cat Makefile

###############################################################################

# $Id: Makefile,v 1.5 2007/10/16 09:20:27 faust Exp $

###############################################################################

 

include ../../../../../Makefile.conf

 

DEFS += -D_GNU_SOURCE

 

PROG = mod_cap_ipq.so

 

SRCS = ./ipq_cap.cpp \

./libipq.c

 

LIBS = -lpthread -lstg_common

 

include ../../Makefile.in

 

[root@asp ipq_linux]#

 

а счастья всё нет:)

 

login as: root

root@192.168.15.1's password:

Last login: Fri Apr 25 09:33:38 2008 from 192.168.15.2

[root@asp ~]# mc

[root@asp stargazer]# ./build

#############################################################################

Building STG 2.4 for Linux

#############################################################################

Checking for -lexpat... yes

Checking for -lfbclient... yes

Checking for -lmysqlclient... no

Makefile:136: deps: Нет такого файла или каталога

gmake -C /root/INST/stg-2.404.9.7/projects/stargazer/../../stglibs includes

gmake[1]: Entering directory `/root/INST/stg-2.404.9.7/stglibs'

gmake includes -C stg_logger.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/stg_logger.lib'

cp stg_logger.h /root/INST/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/stg_logger.lib'

gmake includes -C stg_locker.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/stg_locker.lib'

cp stg_locker.h /root/INST/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/stg_locker.lib'

gmake includes -C crypto.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/crypto.lib'

cp ag_md5.h blowfish.h /root/INST/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/crypto.lib'

gmake includes -C common.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/common.lib'

cp debug.h stg_error.h common.h /root/INST/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/common.lib'

gmake includes -C script_executer.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/script_executer.lib'

cp script_executer.h /root/INST/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/script_executer.lib'

gmake includes -C conffiles.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/conffiles.lib'

cp conffiles.h /root/INST/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/conffiles.lib'

gmake includes -C hostallow.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/hostallow.lib'

cp hostallow.h /root/INST/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/hostallow.lib'

gmake includes -C pinger.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/pinger.lib'

cp pinger.h /root/INST/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/pinger.lib'

gmake includes -C dotconfpp.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/dotconfpp.lib'

cp dotconfpp.h mempool.h /root/INST/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/dotconfpp.lib'

gmake includes -C ibpp.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/ibpp.lib'

cp ibpp.h /root/INST/stg-2.404.9.7/projects/stargazer/../../include

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/ibpp.lib'

gmake[1]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs'

gmake -C /root/INST/stg-2.404.9.7/projects/stargazer/../../stglibs

gmake[1]: Entering directory `/root/INST/stg-2.404.9.7/stglibs'

gmake -C stg_logger.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/stg_logger.lib'

../Makefile.in:85: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/stg_logger.lib'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/stg_logger.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c stg_logger.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libstg_logger.so stg_logger.o -o libstg_logger.so -L /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libstg_logger.a stg_logger.o

ranlib libstg_logger.a

cp *.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/stg_logger.lib'

gmake -C stg_locker.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/stg_locker.lib'

../Makefile.in:85: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/stg_locker.lib'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/stg_locker.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c stg_locker.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libstg_locker.so stg_locker.o -o libstg_locker.so -L /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libstg_locker.a stg_locker.o

ranlib libstg_locker.a

cp *.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/stg_locker.lib'

gmake -C crypto.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/crypto.lib'

../Makefile.in:85: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/crypto.lib'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/crypto.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c ag_md5.c

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c blowfish.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libstg_crypto.so ag_md5.o blowfish.o -o libstg_crypto.so -L /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libstg_crypto.a ag_md5.o blowfish.o

ranlib libstg_crypto.a

cp *.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/crypto.lib'

gmake -C common.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/common.lib'

../Makefile.in:85: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/common.lib'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/common.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c debug.c

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c stg_error.c

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c common.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c stg_strptime.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libstg_common.so debug.o stg_error.o common.o stg_strptime.o -lstg_crypto -o libstg_common.so -L /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libstg_common.a debug.o stg_error.o common.o stg_strptime.o

ranlib libstg_common.a

cp *.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/common.lib'

gmake -C script_executer.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/script_executer.lib'

../Makefile.in:85: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/script_executer.lib'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/script_executer.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c script_executer.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libscript_executer.so script_executer.o -o libscript_executer.so -L /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libscript_executer.a script_executer.o

ranlib libscript_executer.a

cp *.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/script_executer.lib'

gmake -C conffiles.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/conffiles.lib'

../Makefile.in:85: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/conffiles.lib'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/conffiles.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c conffiles.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libconffiles.so conffiles.o -o libconffiles.so -L /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libconffiles.a conffiles.o

ranlib libconffiles.a

cp *.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/conffiles.lib'

gmake -C hostallow.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/hostallow.lib'

../Makefile.in:85: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/hostallow.lib'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/hostallow.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c hostallow.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libhostallow.so hostallow.o -o libhostallow.so -L /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libhostallow.a hostallow.o

ranlib libhostallow.a

cp *.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/hostallow.lib'

gmake -C pinger.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/pinger.lib'

../Makefile.in:85: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/pinger.lib'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/pinger.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c pinger.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libstg_pinger.so pinger.o -o libstg_pinger.so -L /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libstg_pinger.a pinger.o

ranlib libstg_pinger.a

cp *.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/pinger.lib'

gmake -C dotconfpp.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/dotconfpp.lib'

../Makefile.in:85: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/dotconfpp.lib'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/dotconfpp.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c dotconfpp.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -c mempool.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libdotconfpp.so dotconfpp.o mempool.o -o libdotconfpp.so -L /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libdotconfpp.a dotconfpp.o mempool.o

ranlib libdotconfpp.a

cp *.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/dotconfpp.lib'

gmake -C ibpp.lib

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/ibpp.lib'

../Makefile.in:85: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/ibpp.lib'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/stglibs/ibpp.lib'

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c array.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c blob.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c database.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c date.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c dbkey.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c _dpb.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c events.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c exception.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c _ibpp.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c _ibs.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c _rb.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c row.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c service.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c _spb.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c statement.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c time.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c _tpb.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c transaction.cpp

g++ -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -I ./ -DLINUX -DSTG_TIME -DIBPP_LINUX -c user.cpp

g++ -L/usr/local/lib -shared -Wl,-rpath,/usr/lib/stg -Wl,-soname,libibpp.so array.o blob.o database.o date.o dbkey.o _dpb.o events.o exception.o _ibpp.o _ibs.o _rb.o row.o service.o _spb.o statement.o time.o _tpb.o transaction.o user.o -o libibpp.so -L /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

ar rc libibpp.a array.o blob.o database.o date.o dbkey.o _dpb.o events.o exception.o _ibpp.o _ibs.o _rb.o row.o service.o _spb.o statement.o time.o _tpb.o transaction.o user.o

ranlib libibpp.a

cp *.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

cp *.a /root/INST/stg-2.404.9.7/projects/stargazer/../../lib

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs/ibpp.lib'

gmake[1]: Leaving directory `/root/INST/stg-2.404.9.7/stglibs'

gmake -C /root/INST/stg-2.404.9.7/projects/stargazer/plugins

gmake[1]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins'

gmake -C authorization/ao

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/authorization/ao'

../../Makefile.in:35: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/authorization/ao'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/authorization/ao'

g++ -c ao.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ ao.o /root/INST/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so -L/usr/local/lib -shared -L/root/INST/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lstg_common -o mod_auth_ao.so

ln -fs "`pwd`/mod_auth_ao.so" /root/INST/stg-2.404.9.7/projects/stargazer/modules/mod_auth_ao.so

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/authorization/ao'

gmake -C authorization/inetaccess

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/authorization/inetaccess'

../../Makefile.in:35: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/authorization/inetaccess'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/authorization/inetaccess'

g++ -c inetaccess.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

inetaccess.cpp: In member function ‘int AUTH_IA::PacketProcessor(char*, int, uint32_t, uint16_t, int, user_iter*)’:

inetaccess.cpp:837: warning: ‘ret’ may be used uninitialized in this function

g++ inetaccess.o /usr/lib/libpthread.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so -L/usr/local/lib -shared -L/root/INST/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lpthread -lstg_common -o mod_auth_ia.so

ln -fs "`pwd`/mod_auth_ia.so" /root/INST/stg-2.404.9.7/projects/stargazer/modules/mod_auth_ia.so

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/authorization/inetaccess'

gmake -C configuration/sgconfig

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/configuration/sgconfig'

../../Makefile.in:35: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/configuration/sgconfig'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/configuration/sgconfig'

g++ -c stgconfig.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ -c rsconf.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ -c configproto.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ -c parser.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ -c parser_tariff.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ -c parser_admin.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ stgconfig.o rsconf.o configproto.o parser.o parser_tariff.o parser_admin.o /usr/lib/libpthread.so /usr/lib/libexpat.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib/libstg_logger.so -L/usr/local/lib -shared -L/root/INST/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lpthread -lexpat -lstg_common -lstg_logger -o mod_conf_sg.so

ln -fs "`pwd`/mod_conf_sg.so" /root/INST/stg-2.404.9.7/projects/stargazer/modules/mod_conf_sg.so

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/configuration/sgconfig'

gmake -C other/ping

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/other/ping'

../../Makefile.in:35: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/other/ping'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/other/ping'

g++ -c ping.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ ping.o /usr/lib/libpthread.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib/libstg_pinger.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so -L/usr/local/lib -shared -L/root/INST/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lpthread -lstg_pinger -lstg_common -o mod_ping.so

ln -fs "`pwd`/mod_ping.so" /root/INST/stg-2.404.9.7/projects/stargazer/modules/mod_ping.so

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/other/ping'

gmake -C other/rscript

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/other/rscript'

../../Makefile.in:35: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/other/rscript'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/other/rscript'

g++ -c rscript.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ rscript.o /usr/lib/libpthread.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so -L/usr/local/lib -shared -L/root/INST/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lpthread -lstg_common -o mod_remote_script.so

ln -fs "`pwd`/mod_remote_script.so" /root/INST/stg-2.404.9.7/projects/stargazer/modules/mod_remote_script.so

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/other/rscript'

gmake -C store/files

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/store/files'

../../Makefile.in:35: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/store/files'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/store/files'

g++ -c file_store.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ file_store.o /root/INST/stg-2.404.9.7/projects/stargazer/../../lib/libconffiles.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so -L/usr/local/lib -shared -L/root/INST/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lconffiles -lstg_common -o mod_store_files.so

ln -fs "`pwd`/mod_store_files.so" /root/INST/stg-2.404.9.7/projects/stargazer/modules/mod_store_files.so

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/store/files'

gmake -C capture/ether_linux

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/capture/ether_linux'

../../Makefile.in:35: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/capture/ether_linux'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/capture/ether_linux'

g++ -c ether_cap.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX

g++ ether_cap.o /usr/lib/libpthread.so /root/INST/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so -L/usr/local/lib -shared -L/root/INST/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lpthread -lstg_common -o mod_cap_ether.so

ln -fs "`pwd`/mod_cap_ether.so" /root/INST/stg-2.404.9.7/projects/stargazer/modules/mod_cap_ether.so

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/capture/ether_linux'

gmake -C capture/ipq_linux

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/capture/ipq_linux'

../../Makefile.in:35: deps: Нет такого файла или каталога

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/capture/ipq_linux'

gmake[2]: Entering directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/capture/ipq_linux'

g++ -c ipq_cap.cpp -O2 -I/usr/local/include -Wall -fPIC -I /root/INST/stg-2.404.9.7/projects/stargazer/../../include -DLINUX -D_GNU_SOURCE

/usr/include/linux/netfilter_ipv4/ip_queue.h:19: error: ‘IFNAMSIZ’ was not declared in this scope

/usr/include/linux/netfilter_ipv4/ip_queue.h:20: error: ‘IFNAMSIZ’ was not declared in this scope

gmake[2]: *** [ipq_cap.o] Ошибка 1

gmake[2]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins/capture/ipq_linux'

gmake[1]: *** [capture/ipq_linux] Ошибка 2

gmake[1]: Leaving directory `/root/INST/stg-2.404.9.7/projects/stargazer/plugins'

gmake: *** [plugins] Ошибка 2

[root@asp stargazer]#

Ссылка на сообщение
Поделиться на других сайтах

Создайте аккаунт или войдите в него для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Вхід

Уже зарегистрированы? Войдите здесь.

Войти сейчас
  • Зараз на сторінці   0 користувачів

    Немає користувачів, що переглядають цю сторінку.

×
×
  • Створити нове...