<?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>omfgoggles &#187; makefile</title>
	<atom:link href="http://omfgoggles.net/tag/makefile/feed/" rel="self" type="application/rss+xml" />
	<link>http://omfgoggles.net</link>
	<description>it is the largest octopus ever recorded.</description>
	<lastBuildDate>Fri, 11 May 2012 22:09:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>creative labs can lick my fucking bag.</title>
		<link>http://omfgoggles.net/2008/06/creative-labs-can-lick-my-fucking-bag/</link>
		<comments>http://omfgoggles.net/2008/06/creative-labs-can-lick-my-fucking-bag/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 04:43:19 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[omfgoggles.]]></category>
		<category><![CDATA[b0rken]]></category>
		<category><![CDATA[creative labs]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lunix]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[makefile]]></category>
		<category><![CDATA[suse]]></category>

		<guid isPermaLink="false">http://omfgoggles.net/?p=157</guid>
		<description><![CDATA[CTSOUND was the only thing that didn&#8217;t work after i upgraded to OpenSuSE 11.0 this morning. after a bit of trial and error, i seem to have gotten the whole thing sorted out. i&#8217;m at work, so i have no way of knowing whether audio is working or not, but the thing does load the [...]]]></description>
			<content:encoded><![CDATA[<p>CTSOUND was the only thing that didn&#8217;t work after i upgraded to OpenSuSE 11.0 this morning. </p>
<p>after a bit of trial and error, i seem to have gotten the whole thing sorted out. i&#8217;m at work, so i have no way of knowing whether audio is working or not, but the thing does load the driver and it doesn&#8217;t shit itself when it does so. it also correctly invokes alsa, so that leads me to believe it&#8217;s all working. i&#8217;ll find out in an hour and a half.</p>
<p>first, creative used the deprecated (as of kernel 2.6.22*) constant <strong>SA_SHIRQ</strong> in <em>~/drivers/src/ossrv/LinuxSys.c</em>, which I changed to <strong>IRQF_SHARED</strong>. While I was in there, I added an include for linux/fs.h directly below linux/delay.h.</p>
<p>When I ./configure-ed the driver, it didn&#8217;t correctly detect gcc:</p>
<p><strong>ARCH                    = x86_64<br />
gcc_ver_maj          = Linux)<br />
compiler                = gccLinux)</strong></p>
<p>passing the version when executing ./configure CC=gcc-4.3 configured it as:</p>
<p><strong>ARCH                    = x86_64<br />
gcc_ver_maj          = Linux)<br />
compiler                = gcc-4.3Linux)</strong></p>
<p>which also doesn&#8217;t work, since creative relies on the gcc version matching their directory structure..i.e.: there is no ~/drivers/arch/gccLinux) or ~/drivers/arch/gcc-4.3Linux) so the build will fail at this point.</p>
<p>I manually edited Makefile.conf to indicate:</p>
<p><strong>ARCH                    = x86_64<br />
gcc_ver_maj          = Linux<br />
compiler                = gcc4</strong></p>
<p>I also needed to temporarily adjust /usr/src/linux-&#8217;whatever&#8217;/scripts/Makefile.build:</p>
<p>Commenting out this entire section fixed it.<br />
# If the save-* variables changed error out<br />
ifeq ($(KBUILD_NOPEDANTIC),)<br />
        ifneq (&#8220;$(save-cflags)&#8221;,&#8221;$(CFLAGS)&#8221;)<br />
               $(error CFLAGS was changed in &#8220;$(kbuild-file)&#8221;. Fix it to use EXTRA_CFLAGS)<br />
        endif<br />
endif</p>
<p>following this with a nice make &#038;&#038; make install led to a successful build and installation for me. yay.</p>
<p><strong>*EDIT: It does indeed work. There&#8217;s some static/scratchiness when playing MP3s, but ogg/flac files are fine.*</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://omfgoggles.net/2008/06/creative-labs-can-lick-my-fucking-bag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

