<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Joe Horn 的啟示錄 &#187; patch</title>
	<atom:link href="http://www.joehorn.idv.tw/archives/tag/patch/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joehorn.idv.tw</link>
	<description>Joe Horn's Blog</description>
	<lastBuildDate>Wed, 08 Sep 2010 15:45:55 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>FreeBSD-SA-10:02.ntpd</title>
		<link>http://www.joehorn.idv.tw/archives/2010/01/08/738/</link>
		<comments>http://www.joehorn.idv.tw/archives/2010/01/08/738/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 17:06:54 +0000</pubDate>
		<dc:creator>Joe Horn</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[Security Advisories]]></category>

		<guid isPermaLink="false">http://www.joehorn.idv.tw/?p=738</guid>
		<description><![CDATA[昨天，FreeBSD 官方發布了三個 Security Advisories： FreeBSD-SA-10:01.bind FreeBSD-SA-10:02.ntpd FreeBSD-SA-10:03.zfs 根據 Advisories 內容，我原本打算透過以下的步驟作 patch： cd /usr/src &#038;&#038; make update cd /usr/src/lib/bind &#038;&#038; make obj &#038;&#038; make depend &#038;&#038; make &#038;&#038; make install cd /usr/src/usr.sbin/named &#038;&#038; make obj &#038;&#038; make depend &#038;&#038; make &#038;&#038; make install cd /usr/src/usr.sbin/ntp/ntpd &#038;&#038; make obj &#038;&#038; make depend &#038;&#038; make &#038;&#038; make install [...]


Related posts:<ol><li><a href='http://www.joehorn.idv.tw/archives/2005/06/30/178/' rel='bookmark' title='Permanent Link: FreeBSD 5.4-RELEASE-p3 !!'>FreeBSD 5.4-RELEASE-p3 !!</a></li>
<li><a href='http://www.joehorn.idv.tw/archives/2005/03/29/89/' rel='bookmark' title='Permanent Link: FreeBSD telnet overflow vulnerability'>FreeBSD telnet overflow vulnerability</a></li>
<li><a href='http://www.joehorn.idv.tw/archives/2005/12/28/209/' rel='bookmark' title='Permanent Link: FreeBSD ports 裡的 Apache 2.2 啟動 shell script 的問題'>FreeBSD ports 裡的 Apache 2.2 啟動 shell script 的問題</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.joehorn.idv.tw/archives/2010/01/08/738/&amp;layout=standard&amp;show_faces=false&amp;width=400&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=zh_TW" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:400px; height:25px"></iframe></div><p>昨天，<a href="http://www.freebsd.org" target="_blank">FreeBSD</a> 官方發布了三個 Security Advisories：</p>
<ul>
<li><a href="http://security.freebsd.org/advisories/FreeBSD-SA-10:01.bind.asc" target="_blank">FreeBSD-SA-10:01.bind</a></li>
<li><a href="http://security.freebsd.org/advisories/FreeBSD-SA-10:02.ntpd.asc" target="_blank">FreeBSD-SA-10:02.ntpd</a></li>
<li><a href="http://security.freebsd.org/advisories/FreeBSD-SA-10:03.zfs.asc" target="_blank">FreeBSD-SA-10:03.zfs</a></li>
</ul>
<p>根據 Advisories 內容，我原本打算透過以下的步驟作 patch：</p>
<ol>
<li>cd /usr/src &#038;& make update</li>
<li>cd /usr/src/lib/bind &#038;& make obj &#038;& make depend &#038;& make &#038;& make install</li>
<li>cd /usr/src/usr.sbin/named &#038;& make obj &#038;& make depend &#038;& make &#038;& make install</li>
<li>cd /usr/src/usr.sbin/ntp/ntpd &#038;& make obj &#038;& make depend &#038;& make &#038;& make install</li>
<li>cd /usr/src &#038;& make kernel</li>
<li>[REBOOT]</li>
</ol>
<p>但是，進行到第 4 個步驟（<a href="http://security.freebsd.org/advisories/FreeBSD-SA-10:02.ntpd.asc" target="_blank">FreeBSD-SA-10:02.ntpd</a> 的編譯階段），就出現了如下的 message：</p>
<blockquote><p>make: don't know how to make /usr/obj/usr/src/usr.sbin/ntp/ntpd/../libparse/libparse.a. Stop</p></blockquote>
<p>找了一些討論後，我在<a href="http://forums.freebsd.org/showthread.php?t=1475" target="_blank" title="Error while building FreeBSD-SA-09:03.ntpd">這個討論串</a>裡看到好幾種作法。<br />
幾經嘗試，我最終在 FreeBSD 8.0-RELEASE-p1 amd64 用以下這個作法順利編譯成功：</p>
<ol>
<li>cd /usr/src/usr.sbin/ntp</li>
<li>rm -rf /usr/obj/*</li>
<li>make obj &#038;& make depend &#038;& make &#038;& make install</li>
</ol>
<p>有相同問題（狀況）的人可以參考看看。</p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/FreeBSD' rel='tag' target='_self'>FreeBSD</a>, <a class='technorati-link' href='http://technorati.com/tag/patch' rel='tag' target='_self'>patch</a>, <a class='technorati-link' href='http://technorati.com/tag/Security+Advisories' rel='tag' target='_self'>Security Advisories</a></p>

<!-- end wp-tags-to-technorati -->


<p>Related posts:<ol><li><a href='http://www.joehorn.idv.tw/archives/2005/06/30/178/' rel='bookmark' title='Permanent Link: FreeBSD 5.4-RELEASE-p3 !!'>FreeBSD 5.4-RELEASE-p3 !!</a></li>
<li><a href='http://www.joehorn.idv.tw/archives/2005/03/29/89/' rel='bookmark' title='Permanent Link: FreeBSD telnet overflow vulnerability'>FreeBSD telnet overflow vulnerability</a></li>
<li><a href='http://www.joehorn.idv.tw/archives/2005/12/28/209/' rel='bookmark' title='Permanent Link: FreeBSD ports 裡的 Apache 2.2 啟動 shell script 的問題'>FreeBSD ports 裡的 Apache 2.2 啟動 shell script 的問題</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.joehorn.idv.tw/archives/2010/01/08/738/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
