<?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>SupportSages &#187; fcntl.h</title>
	<atom:link href="http://www.supportsages.com/blog/tag/fcntl-h/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.supportsages.com/blog</link>
	<description>Technical Support and Server Management : Musings in the fox hole.</description>
	<lastBuildDate>Thu, 05 Jan 2012 03:05:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>CPM with Ubuntu Karmic compilation issue &amp; solutions</title>
		<link>http://www.supportsages.com/blog/2009/12/cpm-with-ubuntu-karmic-compilation-issue-solutions/</link>
		<comments>http://www.supportsages.com/blog/2009/12/cpm-with-ubuntu-karmic-compilation-issue-solutions/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 00:49:17 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[compilation]]></category>
		<category><![CDATA[CPM]]></category>
		<category><![CDATA[fcntl.h]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=574</guid>
		<description><![CDATA[In file included from /usr/include/fcntl.h:217,
                 from cpm.h:35,
                 from security.c:27:
In function ‘open’,
    inlined from ‘initSecurity’ at security.c:498:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make: *** [security.o] Error 1

As usual, the above message clearly states the issue with the code -- <strong>error: open with O_CREAT in second argument needs 3 arguments</strong>

Solution is to edit line 498 of ...]]></description>
			<content:encoded><![CDATA[<p>In file included from /usr/include/fcntl.h:217,<br />
                 from cpm.h:35,<br />
                 from security.c:27:<br />
In function ‘open’,<br />
    inlined from ‘initSecurity’ at security.c:498:<br />
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments<br />
make: *** [security.o] Error 1</p>
<p>As usual, the above message clearly states the issue with the code &#8212; <strong>error: open with O_CREAT in second argument needs 3 arguments</strong></p>
<p>Solution is to edit line 498 of security.c and edited the line </p>
<p><strong>canary = open(&#8220;/dev/null&#8221;, O_CREAT);</strong></p>
<p>to reflect</p>
<p><strong>canary = open(&#8220;/dev/null&#8221;, O_CREAT, 0666);</strong></p>
<p>I had to edit this file to get cpm working on my local machine with Ubuntu Karmic installed. </p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=CPM+with+Ubuntu+Karmic+compilation+issue+%26+solutions+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F574" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=CPM+with+Ubuntu+Karmic+compilation+issue+%26+solutions+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F574" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/12/cpm-with-ubuntu-karmic-compilation-issue-solutions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

