The OpenNET Project / Index page

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



Индекс форумов
Составление сообщения

Исходное сообщение
"не устанавливается smartmontools   на FreeBSD "
Отправлено Жекан, 29-Авг-11 14:13 
на сервере стоит система FreeBSD 7.0 х32
обновлены порты
portsnap fetch
portsnap extract
portsnap uhdate
не утонавлеваится порт Smartmontools  онже smartctl
перерыл весь интернет так нечего и ненашол
помогите пожалуйста с решение проблемы

ошибка при компиляции

===>  Building for smartmontools-5.40
make  all-recursive
Making all in .
g++ -DHAVE_CONFIG_H -I.   -DBUILD_INFO='"(local build)"'  -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"'       -I/usr/src/sys  -g -O2 -Wall -W -fno-strict-aliasing -MT smartd.o -MD -MP -MF .deps/smartd.Tpo -c -o smartd.o smartd.cpp
In file included from /usr/include/c++/4.2/iosfwd:47,
                 from /usr/include/c++/4.2/bits/stl_algobase.h:70,
                 from /usr/include/c++/4.2/bits/char_traits.h:46,
                 from /usr/include/c++/4.2/string:47,
                 from /usr/include/c++/4.2/stdexcept:44,
                 from smartd.cpp:44:
/usr/include/c++/4.2/cctype:70: error: '::isalnum' has not been declared
/usr/include/c++/4.2/cctype:71: error: '::isalpha' has not been declared
/usr/include/c++/4.2/cctype:72: error: '::iscntrl' has not been declared
/usr/include/c++/4.2/cctype:73: error: '::isdigit' has not been declared
/usr/include/c++/4.2/cctype:74: error: '::isgraph' has not been declared
/usr/include/c++/4.2/cctype:75: error: '::islower' has not been declared
/usr/include/c++/4.2/cctype:76: error: '::isprint' has not been declared
/usr/include/c++/4.2/cctype:77: error: '::ispunct' has not been declared
/usr/include/c++/4.2/cctype:78: error: '::isspace' has not been declared
/usr/include/c++/4.2/cctype:79: error: '::isupper' has not been declared
/usr/include/c++/4.2/cctype:80: error: '::isxdigit' has not been declared
/usr/include/c++/4.2/cctype:81: error: '::tolower' has not been declared
/usr/include/c++/4.2/cctype:82: error: '::toupper' has not been declared
In file included from /usr/include/c++/4.2/cwchar:52,
                 from /usr/include/c++/4.2/bits/postypes.h:46,
                 from /usr/include/c++/4.2/iosfwd:49,
                 from /usr/include/c++/4.2/bits/stl_algobase.h:70,
                 from /usr/include/c++/4.2/bits/char_traits.h:46,
                 from /usr/include/c++/4.2/string:47,
                 from /usr/include/c++/4.2/stdexcept:44,
                 from smartd.cpp:44:
/usr/include/c++/4.2/ctime:68: error: '::tm' has not been declared
/usr/include/c++/4.2/ctime:70: error: '::clock' has not been declared
/usr/include/c++/4.2/ctime:71: error: '::difftime' has not been declared
/usr/include/c++/4.2/ctime:72: error: '::mktime' has not been declared
/usr/include/c++/4.2/ctime:73: error: '::time' has not been declared
/usr/include/c++/4.2/ctime:74: error: '::asctime' has not been declared
/usr/include/c++/4.2/ctime:75: error: '::ctime' has not been declared
/usr/include/c++/4.2/ctime:76: error: '::gmtime' has not been declared
/usr/include/c++/4.2/ctime:77: error: '::localtime' has not been declared
/usr/include/c++/4.2/ctime:78: error: '::strftime' has not been declared
smartd.cpp: In function 'bool write_dev_state(const char*, const persistent_dev_state&)':
smartd.cpp:638: error: 'unlink' was not declared in this scope
smartd.cpp: In function 'bool write_dev_attrlog(const char*, const persistent_dev_state&)':
smartd.cpp:692: error: 'time' was not declared in this scope
smartd.cpp:693: error: 'gmtime' was not declared in this scope
smartd.cpp:695: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:695: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:695: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:696: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:696: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:696: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp: In function 'void RemovePidFile()':
smartd.cpp:746: error: 'unlink' was not declared in this scope
smartd.cpp: In function 'void MailWarning(const dev_config&, dev_state&, int, const char*, ...)':
smartd.cpp:919: error: 'time' was not declared in this scope
smartd.cpp:948: error: 'gethostname' was not declared in this scope
smartd.cpp:966: error: 'getdomainname' was not declared in this scope
smartd.cpp: In function 'bool WaitForPidFile()':
smartd.cpp:1289: error: 'sleep' was not declared in this scope
smartd.cpp: In function 'void DaemonInit()':
smartd.cpp:1309: error: 'fork' was not declared in this scope
smartd.cpp:1324: error: 'setsid' was not declared in this scope
smartd.cpp:1327: error: 'fork' was not declared in this scope
smartd.cpp:1340: error: 'getdtablesize' was not declared in this scope
smartd.cpp:1341: error: 'close' was not declared in this scope
smartd.cpp:1354: error: 'dup' was not declared in this scope
smartd.cpp:1356: error: 'dup' was not declared in this scope
smartd.cpp:1359: error: 'chdir' was not declared in this scope
smartd.cpp:1362: error: 'getpid' was not declared in this scope
smartd.cpp: In function 'void WritePidFile()':
smartd.cpp:1383: error: 'getpid' was not declared in this scope
smartd.cpp: In function 'int ATADeviceScan(dev_config&, dev_state&, ata_device*)':
smartd.cpp:1907: error: 'time' was not declared in this scope
smartd.cpp: In function 'int SCSIDeviceScan(dev_config&, dev_state&, scsi_device*)':
smartd.cpp:2051: error: 'time' was not declared in this scope
smartd.cpp: In function 'char next_scheduled_test(const dev_config&, dev_state&, bool, time_t)':
smartd.cpp:2133: error: 'time' was not declared in this scope
smartd.cpp:2147: error: 'localtime' was not declared in this scope
smartd.cpp:2149: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:2149: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:2164: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:2164: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:2164: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:2168: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:2185: error: 'localtime' was not declared in this scope
smartd.cpp:2186: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:2186: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp:2191: error: invalid use of incomplete type 'struct tm'
/usr/include/wchar.h:108: error: forward declaration of 'struct tm'
smartd.cpp: In function 'void PrintTestSchedule(const dev_config_vector&, dev_state_vector&, const smart_device_list&)':
smartd.cpp:2212: error: 'time' was not declared in this scope
smartd.cpp: In function 'void CheckTemperature(const dev_config&, dev_state&, unsigned char, unsigned char)':
smartd.cpp:2487: error: 'time' was not declared in this scope
smartd.cpp:2498: error: 'time' was not declared in this scope
smartd.cpp: In function 'int ATACheckDevice(const dev_config&, dev_state&, ata_device*, bool)':
smartd.cpp:2660: error: 'sleep' was not declared in this scope
smartd.cpp:2713: error: 'time' was not declared in this scope
smartd.cpp:2719: error: 'time' was not declared in this scope
smartd.cpp: In function 'void Initialize(time_t*)':
smartd.cpp:2955: error: 'time' was not declared in this scope
smartd.cpp: In function 'time_t dosleep(time_t, bool&)':
smartd.cpp:2989: error: 'time' was not declared in this scope
smartd.cpp:3005: error: 'sleep' was not declared in this scope
*** Error code 1

Stop in /usr/ports/sysutils/smartmontools/work/smartmontools-5.40.
*** Error code 1

Stop in /usr/ports/sysutils/smartmontools/work/smartmontools-5.40.
*** Error code 1

Stop in /usr/ports/sysutils/smartmontools/work/smartmontools-5.40.
*** Error code 1

 

Ваше сообщение
Имя*:
EMail:
Для отправки новых сообщений в текущей нити на email укажите знак ! перед адресом, например, !user@host.ru (!! - не показывать email).
Более тонкая настройка отправки ответов производится в профиле зарегистрированного участника форума.
Заголовок*:
Сообщение*:
  Введите код, изображенный на картинке: КОД
 
При общении не допускается: неуважительное отношение к собеседнику, хамство, унизительное обращение, ненормативная лексика, переход на личности, агрессивное поведение, обесценивание собеседника, провоцирование флейма голословными и заведомо ложными заявлениями. Не отвечайте на сообщения, явно нарушающие правила - удаляются не только сами нарушения, но и все ответы на них. Лог модерирования.

На сайте действует частичное премодерирование - после публикации некоторые сообщения от анонимов могут автоматически скрываться ботом. После проверки модератором ошибочно скрытые сообщения раскрываются. Для ускорения раскрытия можно воспользоваться ссылкой "Сообщить модератору", указав в качестве причины обращения "скрыто по ошибке".



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

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