<?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>/dev/urandom &#187; php</title>
	<atom:link href="http://bitsex.net/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>https://bitsex.net</link>
	<description>Random ramblings from a pseudoruman human</description>
	<lastBuildDate>Sun, 25 Jul 2010 20:37:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP compile error: Warning: inter-library dependencies are not known to be supported.</title>
		<link>https://bitsex.net/software/2008/php-compile-error-warning-inter-library-dependencies-are-not-known-to-be-supported/</link>
		<comments>https://bitsex.net/software/2008/php-compile-error-warning-inter-library-dependencies-are-not-known-to-be-supported/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 09:37:30 +0000</pubDate>
		<dc:creator>vidarlo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://bitsex.net/?p=123</guid>
		<description><![CDATA[I got a strange error when compiling PHP today: *** Warning: inter-library dependencies are not known to be supported. *** All declared inter-library dependencies are being dropped. *** Warning: libtool could not satisfy all declared inter-library *** dependencies of module libphp5. Therefore, libtool will create *** a static module, that should work as long as [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-medium wp-image-124 alignright" title="php" src="http://bitsex.net/wp-content/uploads/2008/10/php.gif" alt="" width="120" height="67" />I got a strange error when compiling PHP today:<br />
<code><br />
*** Warning: inter-library dependencies are not known to be supported.<br />
*** All declared inter-library dependencies are being dropped.<br />
*** Warning: libtool could not satisfy all declared inter-library<br />
*** dependencies of module libphp5.  Therefore, libtool will create<br />
*** a static module, that should work as long as the dlopening<br />
*** application is linked with the -dlopen flag.<br />
copying selected object files to avoid basename conflicts...<br />
</code></p>
<p>I recompiled PHP, with same options as last time, same version, but &#8211;with-curl added to the end of the options string. I got this error. So, the only change was the &#8211;with-curl-option. I tried without it, but no, same error. The result? libphp5.so was not compiled correctly, and PHP was not working&#8230;</p>
<p>The culprit turned out to be that libcurl and libxml was not compiled with different GCC versions, so they did not play well along. It was fixed by running an <code>apt-get update &amp;&amp; apt-get upgrade</code>. However, I&#8217;m a bit baffled by the fact that PHP was not working even when compiling without CURL&#8230; I&#8217;m not sure why it did not work when compiling without curl, since <em>no other changes</em> were made to that box&#8230;</p>
<p>Oh, and to make it even better: PHP claims its not their problem&#8230; They could atleast give a bit more informative error message. But my suggestion is to ensure that all your libraries is up to date. The culprit in this case was libxml2 and curl, but it might be other libraries next time&#8230;</p>

<span class="slashdigglicious">

<a href="http://digg.com/submit?phase=2&amp;url=https%3A%2F%2Fbitsex.net%2Fsoftware%2F2008%2Fphp-compile-error-warning-inter-library-dependencies-are-not-known-to-be-supported%2F&amp;title=PHP+compile+error%3A+Warning%3A+inter-library+dependencies+are+not+known+to+be+supported." title="Digg This Story" onclick="javascript:urchinTracker ('/outbound/article/digg.com');"><img src="/media/digg.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=https%3A%2F%2Fbitsex.net%2Fsoftware%2F2008%2Fphp-compile-error-warning-inter-library-dependencies-are-not-known-to-be-supported%2F&amp;title=PHP+compile+error%3A+Warning%3A+inter-library+dependencies+are+not+known+to+be+supported." title="Reddit" onclick="javascript:urchinTracker ('/outbound/article/reddit.com');"><img src="/media/reddit.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=https%3A%2F%2Fbitsex.net%2Fsoftware%2F2008%2Fphp-compile-error-warning-inter-library-dependencies-are-not-known-to-be-supported%2F&amp;title=PHP+compile+error%3A+Warning%3A+inter-library+dependencies+are+not+known+to+be+supported." title="Save to Google Bookmarks" onclick="javascript:urchinTracker ('/outbound/article/www.google.com');"><img src="/media/google.ico" width="16" height="16" alt="[Google]" /></a>

<a href="http://www.stumbleupon.com/submit?url=https%3A%2F%2Fbitsex.net%2Fsoftware%2F2008%2Fphp-compile-error-warning-inter-library-dependencies-are-not-known-to-be-supported%2F&amp;title=PHP+compile+error%3A+Warning%3A+inter-library+dependencies+are+not+known+to+be+supported." title="Stumble it!" onclick="javascript:urchinTracker ('/outbound/article/www.stumbleupon.com');"><img src="/media/su.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>https://bitsex.net/software/2008/php-compile-error-warning-inter-library-dependencies-are-not-known-to-be-supported/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tiny script for returning n last blogposts and excerpt from them.</title>
		<link>https://bitsex.net/software/2008/tiny-script-for-returning-n-last-blogposts-and-excerpt-from-them/</link>
		<comments>https://bitsex.net/software/2008/tiny-script-for-returning-n-last-blogposts-and-excerpt-from-them/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 13:24:54 +0000</pubDate>
		<dc:creator>vidarlo</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://bitsex.net/?p=92</guid>
		<description><![CDATA[This is a tiny script for retrieving info about blog posts from wordpress.]]></description>
			<content:encoded><![CDATA[<p>I just wrote a tiny snippet to show the n last posts from a wordpress blog:</p>
<p><code>&lt;?php<br />
$num_posts = 5; //Number of posts to show.<br />
require('wp-blog-header.php'); //WordPress configuration. Change if you don't place this in the root of your wp-installation<br />
$sql = "SELECT `post_excerpt`,`post_title`,`user_nicename`,`user_url`,`$wpdb-&gt;posts`.`ID` FROM `$wpdb-&gt;posts` INNER JOIN `$wpdb-&gt;users` ON `$wpdb-&gt;posts`.`post_author` = `$wpdb-&gt;users`.`ID` WHERE `post_status` = 'publish' ORDER BY `$wpdb-&gt;posts`.`post_date` DESC LIMIT 0,$num_posts";<br />
$arr = $wpdb-&gt;get_results($sql);<br />
foreach ($arr as $posts) {<br />
$permalink = get_permalink($posts-&gt;ID); //Function to get permalink.<br />
$string = $string . "&lt;h1 class=\"blogheading\"&gt;&lt;a href=\"$permalink\"&gt;{$posts-&gt;post_title}&lt;/a&gt;&lt;/h1&gt; &lt;p class=\"blogauthor\"&gt;&lt;a href=\"{$posts-&gt;user_url}\"&gt;{$posts-&gt;user_nicename}&lt;/a&gt;&lt;/p&gt;&lt;p class=\"blogexcerpt\"&gt;{$posts-&gt;post_excerpt}&lt;/p&gt;";<br />
}<br />
echo $string;<br />
?&gt;<br />
</code></p>
<p>You can see a demo <a href="/feed.php">here</a>. I don&#8217;t use excerpts on my blog, so nothing will be shown for the excerpt. Feel free to use as you want. A nicer version of the source can be seen <a href="/feed.phps">here</a>.</p>
<p><strong>Update:</strong> I changed this to show the permalinks.</p>

<span class="slashdigglicious">

<a href="http://digg.com/submit?phase=2&amp;url=https%3A%2F%2Fbitsex.net%2Fsoftware%2F2008%2Ftiny-script-for-returning-n-last-blogposts-and-excerpt-from-them%2F&amp;title=Tiny+script+for+returning+n+last+blogposts+and+excerpt+from+them." title="Digg This Story" onclick="javascript:urchinTracker ('/outbound/article/digg.com');"><img src="/media/digg.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=https%3A%2F%2Fbitsex.net%2Fsoftware%2F2008%2Ftiny-script-for-returning-n-last-blogposts-and-excerpt-from-them%2F&amp;title=Tiny+script+for+returning+n+last+blogposts+and+excerpt+from+them." title="Reddit" onclick="javascript:urchinTracker ('/outbound/article/reddit.com');"><img src="/media/reddit.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=https%3A%2F%2Fbitsex.net%2Fsoftware%2F2008%2Ftiny-script-for-returning-n-last-blogposts-and-excerpt-from-them%2F&amp;title=Tiny+script+for+returning+n+last+blogposts+and+excerpt+from+them." title="Save to Google Bookmarks" onclick="javascript:urchinTracker ('/outbound/article/www.google.com');"><img src="/media/google.ico" width="16" height="16" alt="[Google]" /></a>

<a href="http://www.stumbleupon.com/submit?url=https%3A%2F%2Fbitsex.net%2Fsoftware%2F2008%2Ftiny-script-for-returning-n-last-blogposts-and-excerpt-from-them%2F&amp;title=Tiny+script+for+returning+n+last+blogposts+and+excerpt+from+them." title="Stumble it!" onclick="javascript:urchinTracker ('/outbound/article/www.stumbleupon.com');"><img src="/media/su.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>https://bitsex.net/software/2008/tiny-script-for-returning-n-last-blogposts-and-excerpt-from-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->