ÎÁ ÓÅÒ×ÅÒÅ ÓÔÏÉÔ ÓÉÓÔÅÍÁ 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 1Stop in /usr/ports/sysutils/smartmontools/work/smartmontools-5.40.
*** Error code 1Stop in /usr/ports/sysutils/smartmontools/work/smartmontools-5.40.
*** Error code 1Stop in /usr/ports/sysutils/smartmontools/work/smartmontools-5.40.
*** Error code 1
> ÎÁ ÓÅÒ×ÅÒÅ ÓÔÏÉÔ ÓÉÓÔÅÍÁ FreeBSD 7.0 È32
> ÏÂÎÏ×ÌÅÎÙ ÐÏÒÔÙ
> portsnap fetch
> portsnap extract
> portsnap uhdateÏÐÅÞÁÔËÁ ^^^^^^^
> ÎÅ ÕÔÏÎÁ×ÌÅ×ÁÉÔÓÑ ÐÏÒÔ Smartmontools ÏÎÖÅ smartctl
> ÐÅÒÅÒÙÌ ×ÅÓØ ÉÎÔÅÒÎÅÔ ÔÁË ÎÅÞÅÇÏ É ÎÅÎÁÛÏÌ
> ÐÏÍÏÇÉÔÅ ÐÏÖÁÌÕÊÓÔÁ Ó ÒÅÛÅÎÉÅ ÐÒÏÂÌÅÍÙ
> ÏÛÉÂËÁ ÐÒÉ ËÏÍÐÉÌÑÃÉÉ
> ===> Building for smartmontools-5.40ëÁË-ÔÏ ×Ù ÐÌÏÈÏ ÐÏÒÔÙ ÏÂÎÏ×ÉÌÉ. ôÅËÕÝÁÑ ×ÅÒÓÉÑ × ÐÏÒÔÁÈ - 5.41.
ðÏÐÒÏÂÕÊÔÅ ×ÙÐÏÌÎÉÔØ portsnap fetch update ÅÝÅ ÒÁÚ.
×ÙÐÏÌÎÉÌ
portsnap fetch update ÅÝÅ ÒÁÚ
ÎÏ ÐÒÏÂÌÅÍÁ ÔÁ ÖÅ ÓÁÍÁÑ ÏÓÔÁÌÁÓØ
ÐÏÒÔÙ ×ÒÏÄÅ ÏÂÎÏ×ÉÌÉÓØ ×Ó£ × ÐÏÒÑÄËÅ
smartmontools ÓÁÍÁÑ ÎÏ×ÁÑ ×ÅÒÓÉÑ ÐÏÄ ÜÔÕ ÏÐÅÒÁÃÉÏÎÎÕÀ ÓÉÓÔÅÍÕ
ÐÏÞÅÍÕ ÏÛÉÂËÁ ÐÒÉ ËÏÍÐÉÌÑÃÉÉ ÎÅ ÐÏÊÍÕ.
ÐÏÍÏÇÉÔÅ ÍÕÄÒÙÍÉ ÓÏ×ÅÔÁÍÉ ÚÁÒÁÎÅÅ ÂÌÁÇÏÄÁÒÅÎ
> ÐÏÍÏÇÉÔÅ ÍÕÄÒÙÍÉ ÓÏ×ÅÔÁÍÉ ÚÁÒÁÎÅÅ ÂÌÁÇÏÄÁÒÅÎÐÅÒÅÈÏÄÉÔØ ÎÁ linux
> ×ÙÐÏÌÎÉÌ
> portsnap fetch update ÅÝÅ ÒÁÚ
> ÎÏ ÐÒÏÂÌÅÍÁ ÔÁ ÖÅ ÓÁÍÁÑ ÏÓÔÁÌÁÓØ
> ÐÏÒÔÙ ×ÒÏÄÅ ÏÂÎÏ×ÉÌÉÓØ ×Ó£ × ÐÏÒÑÄËÅ
> smartmontools ÓÁÍÁÑ ÎÏ×ÁÑ ×ÅÒÓÉÑ ÐÏÄ ÜÔÕ ÏÐÅÒÁÃÉÏÎÎÕÀ ÓÉÓÔÅÍÕ
> ÐÏÞÅÍÕ ÏÛÉÂËÁ ÐÒÉ ËÏÍÐÉÌÑÃÉÉ ÎÅ ÐÏÊÍÕ.
> ÐÏÍÏÇÉÔÅ ÍÕÄÒÙÍÉ ÓÏ×ÅÔÁÍÉ ÚÁÒÁÎÅÅ ÂÌÁÇÏÄÁÒÅÎÔÁË ËÁËÁÑ ×ÅÒÓÉÑ × ËÏÎÅÞÎÏÍ ÓÞÅÔÅ? ÄÏÌÖÎÁ ÂÙÔØ 5.41, Ô.Ë. "ÓÁÍÁÑ ÎÏ×ÁÑ ×ÅÒÓÉÑ ÐÏÄ ÜÔÕ ÏÐÅÒÁÃÉÏÎÎÕÀ ÓÉÓÔÅÍÕ" × ÐÏÒÔÁÈ.
îÕ É ×ÏÏÂÝÅ ÍÏÖÅÔÅ ÐÏÓÔÁ×ÉÔØ ÉÚ ÐÁËÅÔÏ×: pkg_add -r smartmontools
ÐÒÉ ×ÙÐÏÌÎÅÎÉÉ pkg_add -r smartmontools
ÄÏÓÔÕÐ × ÉÎÔÅÒÎÅÔ ÅÓÔØ ÐÒÏ×ÅÒÑÌ ×Ó£ × ÐÏÒÑÄËÅ
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.0-re...: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.0-re...' by URL
> ÐÒÉ ×ÙÐÏÌÎÅÎÉÉ pkg_add -r smartmontools
> ÄÏÓÔÕÐ × ÉÎÔÅÒÎÅÔ ÅÓÔØ ÐÒÏ×ÅÒÑÌ ×Ó£ × ÐÏÒÑÄËÅ
> Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.0-re...:
> File unavailable (e.g., file not found, no access)
> pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.0-re...'
> by URLäÁ, ÐÁÒÄÏÎ, ÐÁËÅÔÏ× ÄÌÑ 7.0 ÕÖÅ ÎÅÔÕ - ÔÏÌØËÏ ÄÌÑ 7.3 É 7.4.
äÁ×ÁÊÔÅ ÔÏÇÄÁ Ó ÐÏÒÔÏÍ ÒÁÚÂÅÒÅÍÓÑ. ëÁËÁÑ Õ ×ÁÓ ÓÅÊÞÁÓ ×ÅÒÓÉÑ ÐÏÒÔÁ?
ðÒÉÛÌÉÔÅ ×Ù×ÏÄ ËÏÍÁÎÄÙ:> grep FreeBSD /usr/ports/sysutils/smartmontools/Makefile
# $FreeBSD: ports/sysutils/smartmontools/Makefile,v 1.52 2011/07/22 06:38:53 sunpoet Exp $
grep FreeBSD /usr/ports/sysutils/smartmontools/Makefile
# $FreeBSD: ports/sysutils/smartmontools/Makefile,v 1.52 2011/07/22 06:38:53 sunpoet Exp $
> grep FreeBSD /usr/ports/sysutils/smartmontools/Makefile
> # $FreeBSD: ports/sysutils/smartmontools/Makefile,v 1.52 2011/07/22 06:38:53 sunpoet
> Exp $èÏÒÏÛÏ. ÔÅÐÅÒØ cd /usr/ports/sysutils/smartmontools && make clean build
ðïìîùê ÌÏÇ ÓÂÏÒËÉ ÓËÏÐÉÒÕÊÔÅ ÓÀÄÁ ÉÌÉ ÎÁ pastebin, Á ÓÀÄÁ ÓÓÙÌËÕ.
÷ÏÔ ÓÓÙÌËÁ
> ÷ÏÔ ÓÓÙÌËÁ
> http://pastebin.com/VNxJkmu5ñÓÎÏ, ÚÎÁÞÉÔ ÞÔÏ-ÔÏ ÓÐÅÃÉÆÉÞÎÏÅ ÄÌÑ 7.0. ñ ÏÔÏÓÌÁÌ ÏÛÉÂËÕ ÍÅÊÎÔÅÊÎÅÒÕ ÐÏÒÔÁ, ×ÅÒÏÑÔÎÏ ÏÎ ÓÍÏÖÅÔ ÐÏÍÏÞØ.
> ÷ÏÔ ÓÓÙÌËÁ
> http://pastebin.com/VNxJkmu5íÅÊÎÔÅÊÎÅÒ ÐÏÒÔÁ ÐÒÅÄÐÏÌÏÖÉÌ, ÞÔÏ ÎÁ ×ÁÛÅÊ ÓÉÓÔÅÍÅ ËÁËÁÑ-ÔÏ ÐÒÏÂÌÅÍÁ Ó ÚÁÇÏÌÏ×ÏÞÎÙÍÉ ÆÁÊÌÁÍÉ É ÐÒÅÄÌÏÖÉÌ ÏÂÎÏ×ÉÔØ ÓÉÓÔÅÍÕ ÄÏ ÐÏÄÄÅÒÖÉ×ÁÅÍÏÊ ×ÅÒÓÉÉ (× ×ÁÛÅÍ ÓÌÕÞÁÅ - 7.4).
ñ ÓÒÁ×ÎÉÌ ÌÏÇÉ ÓÂÏÒËÉ ÎÁ ×ÁÛÅÊ ÓÉÓÔÅÍÅ É ÎÁ ÍÏÅÊ. ðÏ ÓÕÝÅÓÔ×Õ ÒÁÚÌÉÞÉÑ × ÜÔÏÍ:
-checking for nawk... nawk
+checking for gawk... gawk-checking for ANSI C header files... no
+checking for ANSI C header files... yesô.Å. Õ ÍÅÎÑ ÉÓÐÏÌØÚÕÅÔÓÑ gawk, Õ ×ÁÓ - nawk, ÐÌÀÓ × ×ÁÛÅÊ ÓÉÓÔÅÍÅ ÎÅ ÏÂÎÁÒÕÖÉÌÉÓØ ÚÁÇÏÌÏ×ÏÞÎÙÅ ÆÁÊÌÙ. äÌÑ ÎÁÞÁÌÁ ÐÏÐÒÏÂÕÊÔÅ ÕÓÔÁÎÏ×ÉÔØ gawk.
ðÒÏ×ÅÒØÔÅ, ÅÓÔØ ÌÉ × ×ÁÛÅÊ ÓÉÓÔÅÍÅ ÜÔÉ ÆÁÊÌÙ (ÐÏÉÓËÁÔØ ÍÏÖÎÏ ËÏÍÁÎÄÏÊ locate):
stdlib.h
stdarg.h
float.h
string.h
ctype.h
locale.hïÎÉ ÄÏÌÖÎÙ ÂÙÔØ × /usr/include. åÓÌÉ ÉÈ ÎÅÔ, ÔÏ ÍÏÖÎÏ ÓËÏÐÉÒÏ×ÁÔØ Ó ÄÉÓÔÒÉÂÕÔÉ×Á.
åÓÌÉ ÒÅÛÉÔÅ ÏÂÎÏ×ÉÔØ ÓÉÓÔÅÍÕ, ÔÏ ÜÔÉ ÓÓÙÌËÁ ÐÒÉÇÏÄÉÔÓÑ:
http://www.freebsd.org/doc/ru/books/handbook/makeworld.html
> ÷ÏÔ ÓÓÙÌËÁ
> http://pastebin.com/VNxJkmu5é ËÁË ×ÁÒÉÁÎÔ ÐÏÐÒÏÂÏ×ÁÔØ ÐÁËÅÔÙ, ÓÏÂÒÁÎÎÙÅ ÐÏÄ ÂÏÌÅÅ ÎÏ×ÏÊ ×ÅÒÓÉÅÊ FreeBSD:
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.3-re...
ÉÌÉ
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.4-re...