{"id":2729,"date":"2012-06-26T12:59:01","date_gmt":"2012-06-26T09:59:01","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=2729"},"modified":"2023-08-10T17:18:51","modified_gmt":"2023-08-10T14:18:51","slug":"%d0%ba%d0%be%d0%bc%d0%bf%d0%b8%d0%bb%d1%8f%d1%86%d0%b8%d1%8f-%d0%b2-solaris","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=2729","title":{"rendered":"\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0432 Solaris"},"content":{"rendered":"<p>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044e \u0432 <strong>Solaris<\/strong> \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438, \u043d\u043e \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e 2-\u0445, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445: <strong>SunStudio<\/strong> \u0438 <strong>gcc<\/strong>.<\/p>\n<p>\u0412 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0435 \u044d\u0442\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0445 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u041d\u043e \u0434\u043b\u044f \u043e\u0431\u0435\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 \u043d\u0443\u0436\u043d\u044b <strong>header&#8217;\u044b<\/strong> \u0438 \u0438\u0445 \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c:<\/p>\n<p><code>#pkg install system\/header<\/code><\/p>\n<p>\u0418\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0443\u0433\u0430\u0442\u044c\u0441\u044f<\/p>\n<p><code>fatal error: string.h: No such file or directory<\/code><\/p>\n<p>\u041d\u0430\u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e \u0432 <strong>Solaris include<\/strong>-\u0444\u0430\u0439\u043b\u044b \u043b\u0435\u0436\u0430\u0442 \u0432 <strong>\/usr\/include<\/strong>.<br \/>\n\u041a\u0441\u0442\u0430\u0442\u0438, \u043f\u043e\u0434 <strong>Solaris<\/strong> \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e <strong>SunStudio<\/strong>, \u0430 \u043d\u0435 <strong>gcc<\/strong>, \u0442\u0430\u043a \u043a\u0430\u043a \u0443 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u0434 <strong>Solaris<\/strong>.<\/p>\n<p><!--more--><\/p>\n<p><strong><span style=\"color: #ff0000;\">1) GCC<\/span><\/strong><\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 (\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 <strong>gcc 4.5<\/strong>):<\/p>\n<p><code># pkg install pkg:\/developer\/gcc-45@4.5.2-0.175.0.0.0.2.537<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0442\u0430\u043a:<\/p>\n<p><code># CFLAGS=\"-m64 -O2\" CPPFLAGS=\"-m64 -O2\" CCASFLAGS=\"-m64 -O2\"\u00a0CXXFLAGS=\"-m64 -O2\"\u00a0LDFLAGS=\"-m64 -O2\" .\/configure<br \/>\n# gmake -j16<\/code><\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u043c\u0435\u0442\u043e\u0434 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 <strong>-O2,<\/strong>\u00a0\u0430 \u0442\u0430\u043a \u0436\u0435 \u0441\u0431\u043e\u0440\u043a\u0430 \u0432 16 \u043f\u043e\u0442\u043e\u043a\u043e\u0432. \u041d\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u0436\u0435<strong> -O4<\/strong>, \u0435\u0441\u043b\u0438 \u043a\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0445\u043e\u0440\u043e\u0448\u043e.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0435\u0449\u0451 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u044b \u0434\u043b\u044f <strong>c\/c++<\/strong>:<\/p>\n<p><code># CC=\"\/usr\/gcc\/4.5\/bin\/gcc\" CXX=\"g++\" .\/configure<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u044b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 <strong>$PATH<\/strong>, \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0430\u043a (\u0438\u043b\u0438 <strong>RPATH<\/strong>):<\/p>\n<p><code>LDFLAGS=\"-m64 -L\/usr\/postgres\/9.2-pgdg\/lib\/64 -R\/usr\/postgres\/9.2-pgdg\/lib\/64\"<\/code><\/p>\n<p>\u0410 \u0434\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0445\u0438\u0434\u0435\u0440\u043e\u0432 \u0442\u0430\u043a (\u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 <strong>CFLAGS\/CCASFLAGS\/CXXFLAGS\/&#8230;<\/strong>):<\/p>\n<p><code>CPPFLAGS=\"-I\/pkg\/db-4.0.14\/include\"<\/code><\/p>\n<p>\u041b\u0443\u0447\u0448\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0442\u0438\u043f\u0430<strong> LDFLAGS\/CFLAGS\/&#8230;<\/strong>, \u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043a \u043d\u0438\u043c \u043d\u0443\u0436\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<p><code>LDFLAGS += -Lreadline-subdir -Lanotherdir<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">2) SunStudio<\/span><\/strong><\/p>\n<p>\u0421\u0430\u043c <strong>SunStudio<\/strong> \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c (\u0430 \u043b\u0443\u0447\u0448\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 <a href=\"\/?p=3368\" target=\"_blank\" rel=\"noopener\">pkg<\/a>) \u0441 \u0441\u0430\u0439\u0442\u0430 <strong>oracle.com<\/strong>, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0441\u044c. \u041f\u043e\u0441\u043b\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u0410 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p><code># CC=\"\/opt\/solarisstudio12.3\/bin\/cc\" CFLAGS=\"-xtarget=generic -xarch=amd64 -m64 -xO4\" CXX=\"CC\" CXXFLAGS=\"-xtarget=generic -xarch=amd64\u00a0-m64 -xO4\" LDFLAGS=\"-xarch=amd64\u00a0-m64\" .\/configure --with-apxs2=\/usr\/apache2\/bin\/apxs --prefix=\/usr\/local\/php5 --with-config-file-path=\/usr\/local\/php5\/etc --enable-ftp<br \/>\n# gmake<br \/>\n# gmake install<\/code><\/p>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <strong>CC<\/strong>.<\/p>\n<p>\u041d\u0430 \u043d\u043e\u0432\u044b\u0445 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430\u0445 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435<\/p>\n<p><code>cc: Warning: -xarch=amd64 is deprecated, use -m64 to create 64-bit programs<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">3) \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f.<\/span><\/strong><\/p>\n<p>\u041f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e\u0431 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438. \u0418\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0438\u0432\u044b\u0441\u0448\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 (<strong>-O5\/fast<\/strong>), \u043d\u043e \u0442\u043e\u0433\u0434\u0430 \u043c\u043e\u0433\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0435 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e.<\/p>\n<p>\u041f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c <strong>fast<\/strong>, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441\u0430\u043c \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u00a0<strong>-xchip,\u00a0-xcache,\u00a0-xarch<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043a \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u043b\u044e\u0447\u0438, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a\u00a0<strong>-DBIT_FUNCS_ASM<\/strong>, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 <strong>AMD Opteron<\/strong> \u0438 \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 <strong>Intel Xeon<\/strong>. \u0427\u0442\u043e \u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c <strong>-fast<\/strong>, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p><code># \/opt\/solarisstudio12.3\/bin\/CC -fast -dryrun<br \/>\n### CC: Note: NLSPATH = \/opt\/solarisstudio12.3\/prod\/bin\/..\/lib\/locale\/%L\/LC_MESSAGES\/%N.cat:\/opt\/solarisstudio12.3\/prod\/bin\/..\/..\/lib\/locale\/%L\/LC_MESSAGES\/%N.cat<br \/>\n### command line files and options (expanded):<br \/>\n### -xO5 -xchip=amdfam10 -xcache=64\/64\/2:512\/64\/16 -xarch=amdsse4a -xdepend=yes -fsimple=2 -fns=yes -ftrap=%none -xlibmil -xlibmopt -xbuiltin=%all -D__MATHERR_ERRNO_DONTCARE -nofstore -xregs=frameptr -Qoption CC -iropt -dryrun<br \/>\nusage: CC [ options ] files. Use 'CC -flags' for details<\/code><\/p>\n<p>\u0414\u043b\u044f <strong>gcc<\/strong> \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e:<\/p>\n<p><code># \/usr\/bin\/cc -# -fast -dry<br \/>\ncc: Warning: Option -dry passed to ld, if ld is invoked, ignored otherwise<br \/>\n### cc: Note: NLSPATH = \/opt\/solarisstudio12.3\/prod\/bin\/..\/lib\/locale\/%L\/LC_MESSAGES\/%N.cat:\/opt\/solarisstudio12.3\/prod\/bin\/..\/..\/lib\/locale\/%L\/LC_MESSAGES\/%N.cat<br \/>\n### command line files and options (expanded):<br \/>\n### -# -xO5 -xchip=amdfam10 -xcache=64\/64\/2:512\/64\/16 -xarch=amdsse4a -xdepend=yes -fsimple=2 -fns=yes -ftrap=%none -xlibmil -xlibmopt -xbuiltin=%all -D__MATHERR_ERRNO_DONTCARE -fsingle -xalias_level=basic -nofstore -xregs=frameptr -dry<br \/>\nusage: cc [ options ] files. Use 'cc -flags' for details<\/code><\/p>\n<p>\u041e\u0442\u0441\u044e\u0434\u0430 \u0432\u0438\u0434\u043d\u043e \u0436\u0451\u0441\u0442\u043a\u0443\u044e \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0443 \u043a \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 <strong>AMD<\/strong> (\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <strong>CPU AMD Opteron 6174 2200 MHz<\/strong>). \u0410 \u0432\u043e\u0442 \u0432\u044b\u0432\u043e\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0430 <strong>Intel Xeon E7540 2.00GHz<\/strong>:<\/p>\n<p><code># \/opt\/solarisstudio12.3\/bin\/CC -fast -dryrun<br \/>\n### CC: Note: NLSPATH = \/opt\/solarisstudio12.3\/prod\/bin\/..\/lib\/locale\/%L\/LC_MESSAGES\/%N.cat:\/opt\/solarisstudio12.3\/prod\/bin\/..\/..\/lib\/locale\/%L\/LC_MESSAGES\/%N.cat<br \/>\n### command line files and options (expanded):<br \/>\n### -xO5 -xchip=nehalem -xcache=32\/64\/8:256\/64\/8:18432\/64\/24 -xarch=sse4_2 -xdepend=yes -fsimple=2 -fns=yes -ftrap=%none -xlibmil -xlibmopt -xbuiltin=%all -D__MATHERR_ERRNO_DONTCARE -nofstore -xregs=frameptr -Qoption CC -iropt -dryrun<br \/>\nusage: CC [ options ] files. Use 'CC -flags' for details<\/code><\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u00a0<strong>-xchip=nehalem<\/strong>, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <strong>Core-I7\/Xeon<\/strong>.<\/p>\n<p>\u0427\u0442\u043e \u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c, \u043d\u0430\u0438\u043b\u0443\u0447\u0448\u0438\u0439 \u0432\u044b\u0431\u043e\u0440 <strong>-xchip,\u00a0-xcache,\u00a0-xarch<\/strong>\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p><code># \/opt\/solarisstudio12.3\/bin\/CC -xtarget=native -dryrun<br \/>\n### CC: Note: NLSPATH = \/opt\/solarisstudio12.3\/prod\/bin\/..\/lib\/locale\/%L\/LC_MESSAGES\/%N.cat:\/opt\/solarisstudio12.3\/prod\/bin\/..\/..\/lib\/locale\/%L\/LC_MESSAGES\/%N.cat<br \/>\n### command line files and options (expanded):<br \/>\n### -xchip=pentium_pro -xcache=16\/64\/4:2048\/64\/16 -xarch=amdsse4a -dryrun<br \/>\nusage: CC [ options ] files. Use 'CC -flags' for details<\/code><\/p>\n<p>\u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a <strong>xchip<\/strong> \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0434\u043b\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u043c\u043d\u0435 \u043d\u0430\u0439\u0442\u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u0437\u0430\u0442\u043e \u043a\u043e\u0435-\u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u043f\u043e \u044d\u0442\u0438\u043c \u0441\u0441\u044b\u043b\u043a\u0430\u043c:<\/p>\n<p><a href=\"http:\/\/docs.oracle.com\/cd\/E19205-01\/819-5265\/bjaxf\/index.html\" rel=\"nofollow\">http:\/\/docs.oracle.com\/cd\/E19205-01\/819-5265\/bjaxf\/index.html<\/a><br \/>\n<a href=\"http:\/\/patches.libav.org\/patch\/30904\/\" rel=\"nofollow\">http:\/\/patches.libav.org\/patch\/30904\/<\/a><br \/>\n<a href=\"http:\/\/www.oracle.com\/technetwork\/systems\/ccompare-141326.html\" rel=\"nofollow\">http:\/\/www.oracle.com\/technetwork\/systems\/ccompare-141326.html<\/a><\/p>\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u0444\u0430\u0439\u043b (\u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0438\u043b\u0438 <strong>object<\/strong>) \u0438 \u043d\u0443\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c, \u0441 \u043a\u0430\u043a\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043e\u043d \u0431\u044b\u043b \u0441\u043e\u0431\u0440\u0430\u043d. \u0423\u0437\u043d\u0430\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p><em><span style=\"color: #ff6600;\">&#8211; \u0421++ \u043a\u043e\u0434<\/span><\/em><\/p>\n<p><code>$ dump -C Bar.o<br \/>\n...<br \/>\n&lt;122&gt; ...\/tmanfe\/; \/opt\/SUNWspro\/bin\/CC -G -xtarget=native -compat=4 -xO4 Bar.cpp<\/code><\/p>\n<p><em><span style=\"color: #ff6600;\">&#8211; \u0421 \u043a\u043e\u0434<\/span><\/em><\/p>\n<p><code>$ dwarfdump getpagesize<br \/>\n...<br \/>\nDW_AT_SUN_command_line \/opt\/SUNWspro\/bin\/cc -c -xarch=sse2 -m32 -xO3 +w getpagesize.c<\/code><\/p>\n<p><span style=\"color: #ff0000;\"><strong>4) \u0420\u0430\u0437\u043d\u043e\u0435.<\/strong><\/span><\/p>\n<p>\u041f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b <strong>PORT<\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u0430\u0445:<\/p>\n<p><code>$ configure --with-cc-opt=-DPORT=100<\/code><\/p>\n<p><span style=\"color: #ff0000;\"><strong>5) \u0421\u0441\u044b\u043b\u043a\u0438<\/strong><\/span><\/p>\n<p>https:\/\/yvoinov.blogspot.com\/2018\/11\/automake-checks-for-programs.html<\/p>\n<p>https:\/\/maskray.me\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044e \u0432 Solaris \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438, \u043d\u043e \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e 2-\u0445, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445: SunStudio \u0438 gcc. \u0412 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0435 \u044d\u0442\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0445 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u041d\u043e \u0434\u043b\u044f \u043e\u0431\u0435\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 \u043d\u0443\u0436\u043d\u044b header&#8217;\u044b \u0438 \u0438\u0445 \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c: #pkg install system\/header \u0418\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0443\u0433\u0430\u0442\u044c\u0441\u044f fatal error: string.h: No such file [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-2729","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2729"}],"version-history":[{"count":17,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2729\/revisions"}],"predecessor-version":[{"id":6228,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2729\/revisions\/6228"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}