<?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>Sharkers.net &#187; ftp</title>
	<atom:link href="http://sharkers.net/category/linux/ftp/feed/" rel="self" type="application/rss+xml" />
	<link>http://sharkers.net</link>
	<description>Blog de tecnología gamberra</description>
	<lastBuildDate>Sun, 24 Apr 2011 17:22:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Arreglando problemas de compilacion para pftp-mew y pftp-shit</title>
		<link>http://sharkers.net/2010/07/16/arreglando-problemas-de-compilacion-para-pftp-mew-y-pftp-shit/</link>
		<comments>http://sharkers.net/2010/07/16/arreglando-problemas-de-compilacion-para-pftp-mew-y-pftp-shit/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 07:14:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Consola]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[GCC]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[consola]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[pftp]]></category>
		<category><![CDATA[pftp-mew]]></category>
		<category><![CDATA[pftp-shit]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://sharkers.net/?p=41</guid>
		<description><![CDATA[pftp-mew es un cliente en ncurses para consola, para ftp y fxp, la mar de útil y configurable. pftp-shit es una modificación con mas opciones y algo mas optimizada. Son los mejores clientes para consola pero ya van siendo un poco antiguos y a la vez que muy estables eso si, pero hay versiones nuevas [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://pftpmew.tanesha.net/">pftp-mew</a> es un cliente en ncurses para consola, para ftp y fxp, la mar de útil y configurable. <a href="http://www.derijk.org/pftp/">pftp-shit</a> es una modificación con mas opciones y algo mas optimizada. Son los mejores clientes para consola pero ya van siendo un poco antiguos y a la vez que muy estables eso si, pero hay versiones nuevas de gcc, como en mi caso la 4.4.3 que escupen fallos a la hora de compilarlo.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">tcp.cc:<span style="color: #000000;">362</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
tcp.cc: In member <span style="color: #000000; font-weight: bold;">function</span> ‘void CTCP::AddLogLine<span style="color: #7a0874; font-weight: bold;">&#40;</span>char<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>’:  
tcp.cc:<span style="color: #000000;">420</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
tcp.cc: In member <span style="color: #000000; font-weight: bold;">function</span> ‘void CTCP::UpdateStack<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>’:
tcp.cc:<span style="color: #000000;">499</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
tcp.cc:<span style="color: #000000;">544</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
tcp.cc:<span style="color: #000000;">548</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
tcp.cc:<span style="color: #000000;">552</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
tcp.cc:<span style="color: #000000;">556</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
tcp.cc:<span style="color: #000000;">574</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
tcp.cc:<span style="color: #000000;">577</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
tcp.cc: In member <span style="color: #000000; font-weight: bold;">function</span> ‘int CTCP::WaitForDataAndRead<span style="color: #7a0874; font-weight: bold;">&#40;</span>int, int<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>’:
tcp.cc:<span style="color: #000000;">646</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
tcp.cc:<span style="color: #000000;">670</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
tcp.cc: In member <span style="color: #000000; font-weight: bold;">function</span> ‘bool CTCP::WaitForMessage<span style="color: #7a0874; font-weight: bold;">&#40;</span>int<span style="color: #7a0874; font-weight: bold;">&#41;</span>’:
tcp.cc:<span style="color: #000000;">704</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
tcp.cc:<span style="color: #000000;">710</span>: warning: deprecated conversion from string constant to ‘char<span style="color: #000000; font-weight: bold;">*</span>’
In <span style="color: #c20cb9; font-weight: bold;">file</span> included from <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>fcntl.h:<span style="color: #000000;">205</span>,
                 from tcp.cc:<span style="color: #000000;">7</span>:
In <span style="color: #000000; font-weight: bold;">function</span> ‘int open<span style="color: #7a0874; font-weight: bold;">&#40;</span>const char<span style="color: #000000; font-weight: bold;">*</span>, int, ...<span style="color: #7a0874; font-weight: bold;">&#41;</span>’,
    inlined from ‘bool CTCP::ReadFile<span style="color: #7a0874; font-weight: bold;">&#40;</span>char<span style="color: #000000; font-weight: bold;">*</span>, long int<span style="color: #7a0874; font-weight: bold;">&#41;</span>’ at tcp.cc:<span style="color: #000000;">1178</span>:
<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>bits<span style="color: #000000; font-weight: bold;">/</span>fcntl2.h:<span style="color: #000000;">51</span>: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT <span style="color: #000000; font-weight: bold;">in</span> second argument needs <span style="color: #000000;">3</span> arguments
tcp.cc: In <span style="color: #000000; font-weight: bold;">function</span> ‘bool DetermineOwnIP<span style="color: #7a0874; font-weight: bold;">&#40;</span>char<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>’:
tcp.cc:<span style="color: #000000;">61</span>: warning: dereferencing pointer ‘<span style="color: #000000; font-weight: bold;">&lt;</span>anonymous<span style="color: #000000; font-weight: bold;">&gt;</span>’ does <span style="color: #7a0874; font-weight: bold;">break</span> strict-aliasing rules
tcp.cc:<span style="color: #000000;">61</span>: note: initialized from here
<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>tcp.o<span style="color: #7a0874; font-weight: bold;">&#93;</span> Error <span style="color: #000000;">1</span></pre></div></div>

<p>En este caso lo que debemos hacer para poder compilar en cualquier versión de GCC es lo siguiente:</p>
<p>Nos vamos al fichero src/tcp.cc</p>
<p>buscamos esta linea</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">open<span style="color: #7a0874; font-weight: bold;">&#40;</span>name, O_CREAT <span style="color: #000000; font-weight: bold;">|</span> O_TRUNC, <span style="color: #000000; font-weight: bold;">|</span> O_RDWR <span style="color: #000000; font-weight: bold;">|</span> O_BINARY<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> == -<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span></pre></div></div>

<p>y sustituimos por esta</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">open<span style="color: #7a0874; font-weight: bold;">&#40;</span>name, O_CREAT <span style="color: #000000; font-weight: bold;">|</span> O_TRUNC,0664 <span style="color: #000000; font-weight: bold;">|</span> O_RDWR <span style="color: #000000; font-weight: bold;">|</span> O_BINARY<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> == -<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span></pre></div></div>

<p>Ya podemos hacer un make dynamic, y aunque seguiran pegando warnings, el ejecutable se compilará y funcionará</p>
]]></content:encoded>
			<wfw:commentRss>http://sharkers.net/2010/07/16/arreglando-problemas-de-compilacion-para-pftp-mew-y-pftp-shit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

