<?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>BenV&#039;s notes &#187; configure</title>
	<atom:link href="http://notes.benv.junerules.com/tag/configure/feed/" rel="self" type="application/rss+xml" />
	<link>http://notes.benv.junerules.com</link>
	<description>Rants and notes</description>
	<lastBuildDate>Wed, 28 Jul 2010 13:36:21 +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>C compiler cannot create executables</title>
		<link>http://notes.benv.junerules.com/all/software/c-compiler-cannot-create-executables/</link>
		<comments>http://notes.benv.junerules.com/all/software/c-compiler-cannot-create-executables/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 14:16:09 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[slackware]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=524</guid>
		<description><![CDATA[Yeah, I bet you didn&#8217;t know that. You&#8217;re so stupid. Anyway, this isn&#8217;t the first time I run into this, so I figured it would be good to &#8220;jot this down&#8221; as Choco Billy would say. I got this error while trying to configure apache on a new domU (which has almost no packages installed, [...]]]></description>
			<content:encoded><![CDATA[<p>Yeah, I bet you didn&#8217;t know that. You&#8217;re so stupid.<span id="more-524"></span><br />
Anyway, this isn&#8217;t the first time I run into this, so I figured it would be good to &#8220;<span style="color:#00FFFF">jot this down</span>&#8221; as Choco Billy would say.<br />
I got this error while trying to configure <span style="color:#FFFF00">apache</span> on a new domU (which has almost no packages installed, which is why I ran into this):</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">root<span style="color: #000000; font-weight: bold;">@</span>jemoeder:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>apache<span style="color: #000000; font-weight: bold;">/</span>httpd-2.2.14<span style="color: #666666; font-style: italic;"># ./configure $TEN_MILLION_OPTIONS_HERE</span><br />
checking <span style="color: #000000; font-weight: bold;">for</span> chosen layout... Apache<br />
<br />
&nbsp;<span style="color: #000000; font-weight: bold;">*</span>blablabla I<span style="color: #ff0000;">'m a dumbass yadieya*<br />
<br />
checking for C compiler default output file name... <br />
configure: error: in `/usr/src/apache/httpd-2.2.14/srclib/apr'</span>:<br />
configure: error: C compiler cannot create executables<br />
See <span style="color: #000000; font-weight: bold;">`</span>config.log<span style="color: #ff0000;">' for more details.</span></div></div>
<p>Well, I&#8217;ll give you the details: <span style="color:#FF00FF">it&#8217;s missing an assembler</span>. You can find out about this if you actually bother to read the <span style="color:#F00FF0">config.log</span> file in the <span style="color:#00FF00">srclib/apr</span> dir:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">gcc</span>: error trying to <span style="color: #7a0874; font-weight: bold;">exec</span> <span style="color: #ff0000;">'as'</span>: execvp: No such <span style="color: #c20cb9; font-weight: bold;">file</span> or directory</div></div>
<p>The simple fix: install an assembler. Slackware has the <b><span style="color:#1100FF">binutils</span></b> package for that.<br />
<code class="codecolorer bash vibrant"><span class="bash">slackpkg <span style="color: #c20cb9; font-weight: bold;">install</span> binutils</span></code>, done.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/c-compiler-cannot-create-executables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pulseaudio, slackware and udev</title>
		<link>http://notes.benv.junerules.com/all/software/pulseaudio-slackware-and-udev/</link>
		<comments>http://notes.benv.junerules.com/all/software/pulseaudio-slackware-and-udev/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 14:42:30 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[udev]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=367</guid>
		<description><![CDATA[Yesterday I found a release notice in the pulseaudio mailinglist announcing version 0.9.16. Today, I found another release note in the mailinglist that announced pulseaudio version 0.9.17. Gee, another fuckup? (but that&#8217;s part of the release process I guess ) Anyway, I decided to upgrade my 0.9.15 installation since it still glitches every now and [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I found a release notice in the <span style="color:#FF00FF">pulseaudio</span> mailinglist announcing version 0.9.16.<br />
Today, I found another release note in the mailinglist that announced pulseaudio version 0.9.17. Gee, another fuckup? (but that&#8217;s part of the release process I guess <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p>Anyway, I decided to upgrade my 0.9.15 installation since it still glitches every now and then.<span id="more-367"></span><br />
With glitches I mean &#8220;The music played by mpd suddenly sounds as if you have quad damage in quake 3 arena and filter out most of the music frequencies&#8221;. You know, when you shoot a quad damage rocket through a hallway, that kind of sound. Restarting pulseaudio always fixes this. (I&#8217;ve been running into this glitch ever since I started using pulse). Seems to occur randomly though&#8230; sometimes when the server is busy, sometimes when switching from a .mod file to a .mp3 file, sometimes just when the lights turn on. You know the kind of glitch.<br />
Other than I kind of enjoy pulseaudio, even though it&#8217;s a struggle to get going. It does allow our server to stream to other servers and stuff like that, which is very cute. Oh, and per application volume levels and mixing etc&#8230; also good.<br />
This pulseaudio installation runs on our local server &#8212; in daemon/server mode &#8212; btw, on which we have connected our amplifier and speakers as to enlighten our office/game room/throne chamber.</p>
<p>So for compiling version 0.9.16 the first thing I ran into was <span style="color:#00FFFF">libsndfile</span> that was outdated. Version 1.0.17 was too old, so I ran slackbuild on the new <a href="http://www.mega-nerd.com/libsndfile/libsndfile-1.0.20.tar.gz">libsndfile v1.0.20.tar.gz</a>. Out came a package, upgrade, voila.<br />
Next, I noticed the pulseaudio configure output telling me:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; Enable udev: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; no<br />
&nbsp; &nbsp; Enable HAL-<span style="color: #000000; font-weight: bold;">&gt;</span>udev compat: &nbsp; &nbsp; &nbsp; no</div></div>
<p>I kinda wondered why, since my system definately runs udev. In <span style="color:#F00FFF">config.log</span> we find:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">configure:<span style="color: #000000;">26464</span>: checking <span style="color: #000000; font-weight: bold;">for</span> UDEV<br />
configure:<span style="color: #000000;">26471</span>: <span style="color: #007800;">$PKG_CONFIG</span> <span style="color: #660033;">--exists</span> <span style="color: #660033;">--print-errors</span> <span style="color: #ff0000;">&quot; libudev &gt;= 143 &quot;</span><br />
Requested <span style="color: #ff0000;">'libudev &gt;= 143'</span> but version of libudev is <span style="color: #000000;">141</span><br />
configure:<span style="color: #000000;">26474</span>: <span style="color: #007800;">$?</span> = <span style="color: #000000;">1</span><br />
configure:<span style="color: #000000;">26487</span>: <span style="color: #007800;">$PKG_CONFIG</span> <span style="color: #660033;">--exists</span> <span style="color: #660033;">--print-errors</span> <span style="color: #ff0000;">&quot; libudev &gt;= 143 &quot;</span><br />
Requested <span style="color: #ff0000;">'libudev &gt;= 143'</span> but version of libudev is <span style="color: #000000;">141</span><br />
configure:<span style="color: #000000;">26490</span>: <span style="color: #007800;">$?</span> = <span style="color: #000000;">1</span><br />
Requested <span style="color: #ff0000;">'libudev &gt;= 143'</span> but version of libudev is <span style="color: #000000;">141</span><br />
configure:<span style="color: #000000;">26517</span>: result: no</div></div>
<p>Aha.<br />
New challenge!<br />
Let&#8217;s see if we can grab the <a href="ftp://ftp.slackware.com:/pub/slackware/slackware-current/source/a/udev">official slackware udev sources</a> and get them to run a newer package! Today the latest udev is <a href="http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/udev-146.tar.bz2">udev version 1.4.6</a>.<br />
So I changed the udev.Slackbuild to pick version 1.4.6</p>
<div class="codecolorer-container diff vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="diff codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #888822;">--- udev.SlackBuild.org &nbsp; &nbsp; 2009-09-11 14:55:14.000000000 +0200</span><br />
<span style="color: #888822;">+++ udev.SlackBuild &nbsp; &nbsp;2009-07-15 06:08:30.000000000 +0200</span><br />
<span style="color: #440088;">@@ -21,9 +21,9 @@</span><br />
&nbsp;# &nbsp;ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.<br />
&nbsp;<br />
&nbsp;<br />
<span style="color: #991111;">-VERSION=$<span style="">&#123;</span>VERSION:-146<span style="">&#125;</span></span><br />
<span style="color: #00b000;">+VERSION=$<span style="">&#123;</span>VERSION:-141<span style="">&#125;</span></span><br />
&nbsp;ARCH=$<span style="">&#123;</span>ARCH:-i486<span style="">&#125;</span><br />
<span style="color: #991111;">-BUILD=$<span style="">&#123;</span>BUILD:-1<span style="">&#125;</span></span><br />
<span style="color: #00b000;">+BUILD=$<span style="">&#123;</span>BUILD:-3<span style="">&#125;</span></span><br />
&nbsp;<br />
&nbsp;NUMJOBS=$<span style="">&#123;</span>NUMJOBS:-&quot; -j7 &quot;<span style="">&#125;</span></div></div>
<p>Running udev.Slackbuild now soon brought another set of issues to my attention. The first being that the slackware patch for the rule generator breaks.<br />
Without looking too much at the script I simply manually patched it and created a new diff. Here it is:<br />
<a href="http://notes.benv.junerules.com/wp-content/plugins/download-monitor/download.php?id=rule_generator.diff.gz" title="Downloaded 53 times">rule_generator.diff.gz</a> - Version 0.1 - SHA: cf73f104543ce989fd11b383c440405110e915a2</p>
<p>Running the slackbuild now gave me a new error:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">In <span style="color: #c20cb9; font-weight: bold;">file</span> included from extras<span style="color: #000000; font-weight: bold;">/</span>scsi_id<span style="color: #000000; font-weight: bold;">/</span>scsi_serial.c:<span style="color: #000000;">27</span>:<br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>scsi<span style="color: #000000; font-weight: bold;">/</span>scsi.h:<span style="color: #000000;">145</span>: error: expected specifier-qualifier-list before <span style="color: #ff0000;">'u8'</span><br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>scsi<span style="color: #000000; font-weight: bold;">/</span>scsi.h: In <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #ff0000;">'scsi_varlen_cdb_length'</span>:<br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>scsi<span style="color: #000000; font-weight: bold;">/</span>scsi.h:<span style="color: #000000;">156</span>: error: <span style="color: #ff0000;">'struct scsi_varlen_cdb_hdr'</span> has no member named <span style="color: #ff0000;">'additional_cdb_length'</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">***</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>extras<span style="color: #000000; font-weight: bold;">/</span>scsi_id<span style="color: #000000; font-weight: bold;">/</span>scsi_serial.o<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">1</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">***</span> Waiting <span style="color: #000000; font-weight: bold;">for</span> unfinished jobs....<br />
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">***</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>all-recursive<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">1</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span>: <span style="color: #000000; font-weight: bold;">***</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>all<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">2</span></div></div>
<p>It never takes me long to realize that this error stems from the new kernel I installed earlier. (did I mention that <a href="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.tar.bz2">linux 2.6.31</a> is released? <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).<br />
Google brought me <a href="http://patchwork.kernel.org/patch/38102/">this</a>, which informs us about something that should have been in 2.6.31 if you ask me. Fine, we&#8217;ll fix it ourselves.<br />
Another slackbuild run takes us past this error and gives us a new udev package. Inspecting the new package I noticed a <span style="color:#F00FFF">/libexec</span> directory that shouldn&#8217;t be in the root of the package. Meh, probably explains the <code class="codecolorer text vibrant"><span class="text">configure: WARNING: unrecognized options: --with-libdir-name</span></code>.<br />
So we change the <span style="color:#F00FFF">udev.Slackbuild</span> again with some new configure options (stolen from their own INSTALL file):</p>
<div class="codecolorer-container diff vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="diff codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #888822;">--- udev.SlackBuild.org &nbsp; &nbsp;2009-07-15 06:08:30.000000000 +0200</span><br />
<span style="color: #888822;">+++ udev.SlackBuild &nbsp; &nbsp; 2009-09-11 16:07:19.000000000 +0200</span><br />
<span style="color: #440088;">@@ -55,9 +55,12 @@</span><br />
&nbsp;./configure \<br />
&nbsp; &nbsp;--prefix=/usr \<br />
&nbsp; &nbsp;--exec-prefix=/ \<br />
<span style="color: #00b000;">+ &nbsp;--sbindir=/sbin \</span><br />
<span style="color: #00b000;">+ &nbsp;--libdir=/lib$<span style="">&#123;</span>LIBDIRSUFFIX<span style="">&#125;</span> \</span><br />
<span style="color: #00b000;">+ &nbsp;--with-rootlibdir=/lib$<span style="">&#123;</span>LIBDIRSUFFIX<span style="">&#125;</span> \</span><br />
&nbsp; &nbsp;--sysconfdir=/etc \<br />
&nbsp; &nbsp;--mandir=/usr/man \<br />
<span style="color: #991111;">- &nbsp;--with-libdir-name=lib$<span style="">&#123;</span>LIBDIRSUFFIX<span style="">&#125;</span> \</span><br />
<span style="color: #00b000;">+ &nbsp;--libexecdir=/lib/udev \</span><br />
&nbsp; &nbsp;--build=$ARCH-slackware-linux<br />
&nbsp;<br />
&nbsp;make $NUMJOBS || make || exit <span style="">1</span></div></div>
<p>Btw, can someone explain to me why I always manage to fuck up the file order to diff? (my patches normally come out reversed <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )<br />
Here&#8217;s the complete file if you want it:<br />
<a href="http://notes.benv.junerules.com/wp-content/plugins/download-monitor/download.php?id=udev.SlackBuild" title="Downloaded 97 times">udev.Slackbuild</a> - Version 1.4.6 - SHA: d550e146bdf34d1ad0e256936a94b7f9b7d62fd2</p>
<p>So after building and upgrading the package, it even restarted without glitches. Woei.<br />
Back to pulseaudio!</p>
<p>Running configure now correctly informs us about udev being YES. HAL->udev compat still said &#8220;no&#8221; though. I don&#8217;t care for now, let&#8217;s see if it works.<br />
My slackbuild.pl ran the make part and showed a ton of &#8220;leer coden, mongool&#8221; warnings (people should simply disable warnings if they don&#8217;t handle them if you ask me).<br />
Regardless of the warnings the compilation completed and I now have a shiny new package.<br />
After upgrading and restarting pulseaudio, there&#8217;s even sound coming out of my speakers when I hinted mpd to play. Woei.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/pulseaudio-slackware-and-udev/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boost, qBitTorrent and lib64</title>
		<link>http://notes.benv.junerules.com/all/software/boost-qbittorrent-and-lib64/</link>
		<comments>http://notes.benv.junerules.com/all/software/boost-qbittorrent-and-lib64/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 16:13:06 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Morons]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[autoconf]]></category>
		<category><![CDATA[boost]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[x86_64]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=354</guid>
		<description><![CDATA[After toying around a bit on the news sites I decided it would be interesting to see if qBitTorrent would run on slackware 64. So we go to the download site, copy the url, and see if Slackbuild likes it. Slackbuild leeches, untars, gives the configure options (which are a bit buggy, I know, will [...]]]></description>
			<content:encoded><![CDATA[<p>After toying around a bit on the news sites I decided it would be interesting to see if <a href="http://qbittorrent.sourceforge.net">qBitTorrent</a> would run on slackware 64.<br />
So we go to the download site, copy the url, and see if Slackbuild likes it. Slackbuild leeches, untars, gives the configure options (which are a bit buggy, I know, will be fixed next release), runs configure. Configure crashes out with &#8220;blabla boost blabla&#8221;.<span id="more-354"></span></p>
<p>Oh. <span style="color:#FF0000">Boost</span>&#8230;.. that time of the month. If there&#8217;s one piece of trash I&#8217;ve run into very often on my compilation expeditions&#8230;. it&#8217;s boost. What a cancer piece of trash that is. You wouldn&#8217;t believe the amount of cursing I&#8217;ve gone through on my trails through &#8220;build from source&#8221; land because of boost. It never works, and when it does it&#8217;s limping on. They should have called it &#8220;blast&#8221; instead.<br />
These days boost is in the official slackware repositories. You&#8217;d think that would help, since I can&#8217;t mess up the paths etc anymore. (compiling boost is another disaster btw, don&#8217;t go there unless you like torture). But noo, as usual the programs that use boost (&#8220;because we can&#8217;t code &#8482;&#8221;, or at least, that&#8217;s what I think) are so good at coding stuff themselves that they fail the autoconf for it as well. Prutsers. Well, to be honest, if they can&#8217;t code it themselves it&#8217;s probably smart to use a library that handles it for them&#8230;.. but boost? :/</p>
<p>Anyway, back to qBitTorrent. Actually, it&#8217;s <span style="color:#FF00FF">libtorrent-rasterbar</span> that&#8217;s failing. Attempt 1, configure with only a prefix and no other options:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">benv<span style="color: #000000; font-weight: bold;">@</span>janeman:~<span style="color: #000000; font-weight: bold;">/</span>tmp$ <span style="color: #666666; font-style: italic;"># ./configure --prefix=/usr</span><br />
&nbsp; <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">*</span>blabla<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
checking whether the Boost::System library is available... <span style="color: #c20cb9; font-weight: bold;">yes</span><br />
configure: error: unable to <span style="color: #c20cb9; font-weight: bold;">find</span> Boost.System library, currently this is required.</div></div>
<p>WHat?! Do you ahve Boost::System? Yes. I mean no!<br />
&#8230; seriously, who comes up with this shit&#8230;.<br />
So we dig into config.log and find:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">configure:<span style="color: #000000;">21533</span>: checking whether the Boost::System library is available<br />
configure:<span style="color: #000000;">21567</span>: <span style="color: #c20cb9; font-weight: bold;">g++</span> <span style="color: #660033;">-c</span> <span style="color: #660033;">-g</span> <span style="color: #660033;">-O2</span> &nbsp;-I<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include conftest.cpp <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">5</span><br />
configure:<span style="color: #000000;">21574</span>: <span style="color: #007800;">$?</span> = <span style="color: #000000;">0</span><br />
configure:<span style="color: #000000;">21597</span>: result: <span style="color: #c20cb9; font-weight: bold;">yes</span><br />
configure:<span style="color: #000000;">21865</span>: error: unable to <span style="color: #c20cb9; font-weight: bold;">find</span> Boost.System library, currently this is required.</div></div>
<p>Or in other words: nothing we didn&#8217;t already know. FUCK.<br />
Time for a trace.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">benv<span style="color: #000000; font-weight: bold;">@</span>janeman:~<span style="color: #000000; font-weight: bold;">/</span>tmp$ <span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #660033;">-x</span> .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr <span style="color: #660033;">--with-ssl</span> <span style="color: #660033;">--with-boost-system</span>=boost_system <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">less</span><br />
&nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span> shift-g, <span style="color: #7a0874; font-weight: bold;">wait</span>, search <span style="color: #000000; font-weight: bold;">for</span> Boost::System <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
++ <span style="color: #7a0874; font-weight: bold;">echo</span> -L<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<br />
++ <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/[^\/]*//'</span><br />
+ <span style="color: #007800;">BOOSTLIBDIR</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<br />
+ <span style="color: #007800;">LDFLAGS_SAVE</span>=<span style="color: #ff0000;">' -L/usr/lib'</span><br />
+ <span style="color: #7a0874; font-weight: bold;">test</span> x = x<br />
++ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #ff0000;">'/usr/lib/libboost_system*.so*'</span> <span style="color: #ff0000;">'/usr/lib/libboost_system*.a*'</span><br />
++ <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s,.*/,,'</span><br />
++ <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s;^lib\(boost_system.*\)\.so.*$;\1;'</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s;^lib\(boost_system.*\)\.a*$;\1;'</span><br />
+ <span style="color: #7a0874; font-weight: bold;">test</span> x <span style="color: #ff0000;">'!='</span> xyes<br />
++ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #ff0000;">'/usr/lib/boost_system*.dll*'</span> <span style="color: #ff0000;">'/usr/lib/boost_system*.a*'</span><br />
++ <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s,.*/,,'</span><br />
++ <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s;^\(boost_system.*\)\.dll.*$;\1;'</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s;^\(boost_system.*\)\.a*$;\1;'</span><br />
+ <span style="color: #7a0874; font-weight: bold;">test</span> x = xno<br />
+ <span style="color: #007800;">CPPFLAGS</span>=<br />
+ <span style="color: #007800;">LDFLAGS</span>=<br />
+ <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">''</span><br />
+ <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">'%s\n'</span> <span style="color: #ff0000;">'configure:21865: error: unable to find Boost.System library, currently this is required.'</span><br />
+ <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">'%s\n'</span> <span style="color: #ff0000;">'configure: error: unable to find Boost.System library, currently this is required.'</span><br />
configure: error: unable to <span style="color: #c20cb9; font-weight: bold;">find</span> Boost.System library, currently this is required.</div></div>
<p>&#8230;. <span style="color:#FFFF00">/usr/lib</span>? Says who? Not me, that&#8217;s for sure. idiots.<br />
In fact, I&#8217;m quite sure that it&#8217;s in <span style="color:#FFFF00">/usr/lib64</span>.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">benv<span style="color: #000000; font-weight: bold;">@</span>janeman:~<span style="color: #000000; font-weight: bold;">/</span>tmp$ &nbsp;<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-la</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<span style="color: #000000; font-weight: bold;">/</span>libboost_filesyste<span style="color: #000000; font-weight: bold;">*</span> <br />
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">83368</span> <span style="color: #000000;">2009</span>-08-<span style="color: #000000;">25</span> 04:<span style="color: #000000;">31</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<span style="color: #000000; font-weight: bold;">/</span>libboost_filesystem-mt.so<span style="color: #000000; font-weight: bold;">*</span><br />
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">83336</span> <span style="color: #000000;">2009</span>-08-<span style="color: #000000;">25</span> 04:<span style="color: #000000;">31</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<span style="color: #000000; font-weight: bold;">/</span>libboost_filesystem.so<span style="color: #000000; font-weight: bold;">*</span></div></div>
<p>Jup, as expected. Boost is kanker. Since boost doesn&#8217;t have the usual pkgconfig issues, we can only conclude that the reason is that either this configure.in was written by a moron, or that<br />
boost supplies invalid tests for finding itself through the autoconf system. I suspect the latter, but that&#8217;s just me <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>In this case the solution is simple, since the configure script has an override option. Wonder why&#8230; maybe they ran into boost idiocies before? <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
The solution:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">benv<span style="color: #000000; font-weight: bold;">@</span>janeman:~<span style="color: #000000; font-weight: bold;">/</span>tmp$ .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr <span style="color: #660033;">--with-boost-libdir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64</div></div>
<p>This runs through configure, it finds the boost garbage and runs through. And guess what? It even compiles! <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The gist of this rant: autoconf is pretty useless if you make assumptions that autoconf is supposed to detect. If you write software, don&#8217;t assume this stuff, try to detect it.<br />
Also: when it fails, give me an error message that is useful, not some generic error code. &#8220;Library not found&#8221; vs &#8220;library not found because libblabla.so doesn&#8217;t exist in /usr/lib&#8221;.</p>
<p>About qbittorrent: it&#8217;s a cute little torrent client for linux. Especially if you like faily lightweight stuff that does has a gui. The thing I like about those lightweight clients: they&#8217;re fast.<br />
This one even has an RSS reader these days&#8230;. cute.<br />
Here&#8217;s a screenie:<br />
<div id="attachment_355" class="wp-caption alignnone" style="width: 310px"><a href="http://notes.benv.junerules.com/wp-content/uploads/2009/09/qbittorrent-1.5.0.png"><img src="http://notes.benv.junerules.com/wp-content/uploads/2009/09/qbittorrent-1.5.0-300x184.png" alt="qbittorrent v1.5.0" title="qbittorrent-1.5.0" width="300" height="184" class="size-medium wp-image-355" /></a><p class="wp-caption-text">qbittorrent v1.5.0</p></div></p>
<p>So qBittorrent: keep up the good work, and get rid of boost <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/boost-qbittorrent-and-lib64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>configure/autoconf and paths</title>
		<link>http://notes.benv.junerules.com/all/software/configureautoconf-and-paths/</link>
		<comments>http://notes.benv.junerules.com/all/software/configureautoconf-and-paths/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 15:51:24 +0000</pubDate>
		<dc:creator>BenV</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[autoconf]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[siteconfig]]></category>
		<category><![CDATA[slackware]]></category>

		<guid isPermaLink="false">http://notes.benv.junerules.com/?p=231</guid>
		<description><![CDATA[Of course you&#8217;re already thrilled by my slackbuild.pl script, but this one thing keeps popping up. &#8220;How do I get configure to get my system paths right without giving it a line that&#8217;s 2389472389 arguments long?&#8221; Simple, install a site config. &#8220;A what?!&#8221; It&#8217;s a tiny little shell script that takes the configure options and [...]]]></description>
			<content:encoded><![CDATA[<p>Of course you&#8217;re already thrilled by my slackbuild.pl script, but this one thing keeps popping up.<br />
&#8220;<span style="color:#00FF00">How do I get configure to get my system paths right without giving it a line that&#8217;s 2389472389 arguments long?</span>&#8221;<br />
Simple, install a site config.<br />
&#8220;<span style="color:#00FF00">A what?!</span>&#8221;</p>
<p>It&#8217;s a tiny little shell script that takes the configure options and barfs out some prefixes and stuff based on the options presented to it.<br />
So when I tell it <code class="codecolorer text vibrant"><span class="text">prefix=/usr</span></code>, it will decide that <code class="codecolorer text vibrant"><span class="text">sysconfdir=/etc</span></code> instead of <code class="codecolorer text vibrant"><span class="text">sysconfdir=/usr/etc</span></code>.</p>
<p>You can get my my version here:<br />
<a href="http://notes.benv.junerules.com/wp-content/plugins/download-monitor/download.php?id=config.site" title="Downloaded 111 times">config.site</a> - Version 0.1 - SHA: </p>
<p>Now the important tidbit. In order for configure to automagically use this script, you wil need to set the environment variable <span style="color:#FF00FF">CONFIG_SITE</span>.<br />
Personally I do this through a profile file. Download the config.site script, put it in <span style="color:#FF4400">/etc</span> and put the profile file in <span style="color:#FF5511">/etc/profile.d</span>. Logout/login, done.<br />
Oh, here&#8217;s the profile file:<br />
<a href="http://notes.benv.junerules.com/wp-content/plugins/download-monitor/download.php?id=config_site.sh" title="Downloaded 93 times">config_site.sh</a> - Version 0.1 - SHA: 3a6145987d03811f274ace34f5d08738f266f131</p>
<p>Now if everything worked out allright, running configure should start with something like this:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">benv<span style="color: #000000; font-weight: bold;">@</span>janeman:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>coolprogram-<span style="color: #000000;">1.0</span>$ .<span style="color: #000000; font-weight: bold;">/</span>configure<br />
configure: loading site script <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>config.site<br />
<span style="color: #007800;">prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<br />
<span style="color: #007800;">sysconfdir</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<br />
<span style="color: #007800;">bindir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<br />
<span style="color: #007800;">sbindir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<br />
<span style="color: #007800;">includedir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<br />
<span style="color: #007800;">libdir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<br />
<span style="color: #007800;">libexecdir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>libexec<br />
<span style="color: #007800;">datadir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<br />
<span style="color: #007800;">mandir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">man</span><br />
<span style="color: #007800;">infodir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>info<br />
<span style="color: #007800;">localstatedir</span>=<span style="color: #000000; font-weight: bold;">/</span>var<br />
<span style="color: #007800;">sharedstatedir</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>cache<br />
<span style="color: #007800;">lispdir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>emacs<span style="color: #000000; font-weight: bold;">/</span>site-lisp</div></div>
<p>Wonderful isn&#8217;t it? <img src='http://notes.benv.junerules.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://notes.benv.junerules.com/all/software/configureautoconf-and-paths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
