<?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>静养心智-动抒豪情™ - 王聪明的日志 &#187; openssl</title>
	<atom:link href="http://wangcongming.info/tag/openssl/feed/" rel="self" type="application/rss+xml" />
	<link>http://wangcongming.info</link>
	<description>灵 动 生 活　　点 滴 感 悟</description>
	<lastBuildDate>Tue, 11 May 2010 16:18:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>两个小问题（lcrypto, Py_InitModule4），记录一下～</title>
		<link>http://wangcongming.info/2008/04/21/%e4%b8%a4%e4%b8%aa%e5%b0%8f%e9%97%ae%e9%a2%98%ef%bc%88lcrypto-py_initmodule4%ef%bc%89%ef%bc%8c%e8%ae%b0%e5%bd%95%e4%b8%80%e4%b8%8b%ef%bd%9e/</link>
		<comments>http://wangcongming.info/2008/04/21/%e4%b8%a4%e4%b8%aa%e5%b0%8f%e9%97%ae%e9%a2%98%ef%bc%88lcrypto-py_initmodule4%ef%bc%89%ef%bc%8c%e8%ae%b0%e5%bd%95%e4%b8%80%e4%b8%8b%ef%bd%9e/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 10:21:00 +0000</pubDate>
		<dc:creator>Wang Congming</dc:creator>
				<category><![CDATA[Geek Tweak]]></category>
		<category><![CDATA[avant]]></category>
		<category><![CDATA[fitx]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://wangcongming.info/2008/04/21/%e4%b8%a4%e4%b8%aa%e5%b0%8f%e9%97%ae%e9%a2%98%ef%bc%88lcrypto-py_initmodule4%ef%bc%89%ef%bc%8c%e8%ae%b0%e5%bd%95%e4%b8%80%e4%b8%8b%ef%bd%9e/</guid>
		<description><![CDATA[一、cannot find -lcrypto
编译 fitx 时遇到的。一番 Google 之后，原来是指 libcrypto.so，而这个库属于 libssl-dev 包。
依赖里没有提这个包，装上后就没事了。
PS：因为 scim-python 是直接 make install 的，没有打包。fitx 依赖于 scim-python，我没有改依赖关系，而是用 dpkg -i &#8211;force- 安装。然后dpkg给出提示说：
dpkg：fitx：尽管有依赖关系的问题，但不管怎样，还是按照您的要求，继续配置：

不知怎的，我觉得这段话很好玩。有一种幽默感、亲切感、尊重感，还有……~~~
二、undefined symbol: Py_InitModule4
运行 awn-manager 时遇到的。这是配置错误，/usr/bin/awn-manager：
SITE_PKG = &#8216;/usr/lib/python2.4/site-packages&#8217;

将其中的2.4改成2.5就OK了。
原因是，python2.5 中，﻿将 64bit 系统下的 Py_InitModule4 改名为 Py_InitModule4_64 了。改名目的是为了阻止2.4的模块调用2.5的解析器。因为2.5针对64bit机做了不兼容于2.4的修改，以支持 4GB+ 内存。
#if SIZEOF_SIZE_T != SIZEOF_INT
/* On a 64-bit system, rename the Py_InitModule4 so that 2.4 modules cannot get loaded into a ]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold;">一、cannot find -lcrypto</span><br />
编译 fitx 时遇到的。一番 Google 之后，原来是指 libcrypto.so，而这个库属于 libssl-dev 包。<br />
依赖里没有提这个包，装上后就没事了。</p>
<p>PS：因为 scim-python 是直接 make install 的，没有打包。fitx 依赖于 scim-python，我没有改依赖关系，而是用 dpkg -i &#8211;force- 安装。然后dpkg给出提示说：</p>
<blockquote><p>dpkg：fitx：尽管有依赖关系的问题，但不管怎样，还是按照您的要求，继续配置：</p>
</blockquote>
<p>不知怎的，我觉得这段话很好玩。有一种幽默感、亲切感、尊重感，还有……~~~</p>
<p><span style="font-weight: bold;">二、undefined symbol: Py_InitModule4</span><br />
运行 awn-manager 时遇到的。这是配置错误，/usr/bin/awn-manager：</p>
<blockquote><p>SITE_PKG = &#8216;/usr/lib/python2.4/site-packages&#8217;</p>
</blockquote>
<p>将其中的2.4改成2.5就OK了。</p>
<p>原因是，python2.5 中，﻿将 64bit 系统下的 Py_InitModule4 改名为 Py_InitModule4_64 了。改名目的是为了阻止2.4的模块调用2.5的解析器。因为2.5针对64bit机做了不兼容于2.4的修改，以支持 4GB+ 内存。</p>
<blockquote><p>#if SIZEOF_SIZE_T != SIZEOF_INT<br />
/* On a 64-bit system, rename the Py_InitModule4 so that 2.4 modules cannot get loaded into a 2.5 interpreter */<br />
#define Py_InitModule4 Py_InitModule4_64<br />
#endif</p>
</blockquote>
<p><a href="http://svn.python.org/projects/python/trunk/include/modsupport.h">http://svn.python.org/projects/python/trunk/Include/modsupport.h</a></p>
<blockquote><p>In Python 2.4, indices of sequences are restricted to the C type int. On 64-bit machines, sequences therefore cannot use the full address space, and are restricted to 2**31 elements. This PEP proposes to change this, introducing a platform-specific index type Py_ssize_t.</p>
<p>As the proposed change will cause incompatibilities on 64-bit machines, it should be carried out while such machines are not in wide use (IOW, as early as possible).</p>
</blockquote>
<p><a href="http://www.python.org/dev/peps/pep-0353/">http://www.python.org/dev/peps/pep-0353/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wangcongming.info/2008/04/21/%e4%b8%a4%e4%b8%aa%e5%b0%8f%e9%97%ae%e9%a2%98%ef%bc%88lcrypto-py_initmodule4%ef%bc%89%ef%bc%8c%e8%ae%b0%e5%bd%95%e4%b8%80%e4%b8%8b%ef%bd%9e/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
