Страница 1 из 1

Помогите в установке утилиты sysstat!!!

Добавлено: 2008-05-22 7:14:09
idis

Код: Выделить всё

/usr/src/sysstat-8.1.2/>uname -a
FreeBSD sneef.surgut.ru 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Thu Jan 10 00:45:17 YEKT 2008     root@:/usr/obj/usr/src/sys/IDIS  i386
Скачал архив, делаю по INSTALL, http://pagesperso-orange.fr/sebastien.godard/index.html

Код: Выделить всё

#./configure
#make
Не собирается, пишет

Код: Выделить всё

/usr/src/sysstat-8.1.2/>make
"Makefile", line 25: Need an operator
"Makefile", line 27: Need an operator
"Makefile", line 356: warning: duplicate script for target "ifeq" ignored
"Makefile", line 356: warning: duplicate script for target "(n,y)" ignored
"Makefile", line 357: Need an operator
"Makefile", line 454: Missing dependency operator
"Makefile", line 456: Need an operator
"Makefile", line 458: Need an operator
"Makefile", line 460: Missing dependency operator
"Makefile", line 462: Need an operator
"Makefile", line 464: Need an operator
"Makefile", line 466: Need an operator
"Makefile", line 468: Need an operator
"Makefile", line 470: Need an operator
make: fatal errors encountered -- cannot continue
Поиски в инете ничего толкового не дали, только совет использовать gmake
Вот и gmake ничего не дал, или уже глаза замылились не вижу очевидного

Код: Выделить всё

/usr/src/sysstat-8.1.2/>gmake
gcc -o sadc.o -c -g -O2 -Wall -Wstrict-prototypes -pipe -O2 -fno-strength-reduce  -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/local/lib/sa/sadc\" sadc.c
In file included from sa.h:10,
                 from sadc.c:37:
/usr/include/net/if.h:265: error: field `ifru_addr' has incomplete type
/usr/include/net/if.h:266: error: field `ifru_dstaddr' has incomplete type
/usr/include/net/if.h:267: error: field `ifru_broadaddr' has incomplete type
/usr/include/net/if.h:299: error: field `ifra_addr' has incomplete type
/usr/include/net/if.h:300: error: field `ifra_broadaddr' has incomplete type
/usr/include/net/if.h:301: error: field `ifra_mask' has incomplete type
/usr/include/net/if.h:368: error: field `addr' has incomplete type
/usr/include/net/if.h:369: error: field `dstaddr' has incomplete type
sadc.c: In function `rw_sa_stat_loop':
sadc.c:1702: warning: implicit declaration of function `fdatasync'
gmake: *** [sadc.o] Error 1
Как победить, сильно интересно разобраться!!!!

Re: Помогите в установке утилиты sysstat!!!

Добавлено: 2008-05-22 9:00:10
hizel
очень похоже, что она написана для linux
а что вам от этой утилиты надо?

Re: Помогите в установке утилиты sysstat!!!

Добавлено: 2008-05-22 9:25:51
idis
Да она написана для linux, надо провести замеры и тесты производительности серверов, сервер на котором будет крутиться Nagios не готов, а результаты нужны завтра :(