{"id":362,"date":"2013-01-15T10:07:13","date_gmt":"2013-01-15T15:07:13","guid":{"rendered":"http:\/\/www.rajatswarup.com\/blog\/?p=362"},"modified":"2013-01-19T10:40:52","modified_gmt":"2013-01-19T15:40:52","slug":"socat-compilation-on-cygwin","status":"publish","type":"post","link":"https:\/\/www.rajatswarup.com\/blog\/2013\/01\/15\/socat-compilation-on-cygwin\/","title":{"rendered":"Socat compilation on Cygwin"},"content":{"rendered":"<p>While compiling socat-2.0.0-b5 on cygwin (Windows) I got a few errors and here&#8217;s how I fixed it:<br \/>\n<code>xioopts.c: In function 'applyopts_single':<br \/>\nxioopts.c:3998: error: 'struct single' has no member named 'fd1'<br \/>\nxioopts.c:4000: error: 'struct single' has no member named 'fd1'<br \/>\nmake[1]: *** [xioopts.o] Error 1<\/code><br \/>\nEdit the file xioopts.c in your favorite editor and replace &#8216;fd1&#8217; by &#8216;rfd&#8217; in both lines (3998 &amp; 4000). That fixed this error but then I got my next error. <\/p>\n<p><code>xio-ip.c:480: error: structure has no member named `ipi_spec_dst'<\/code><br \/>\nEdit xio-ip.c and comment out the entire snprintf statement in xio-ip.c line 480.<\/p>\n<p>Continue compilation and it should now work fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While compiling socat-2.0.0-b5 on cygwin (Windows) I got a few errors and here&#8217;s how I fixed it: xioopts.c: In function &#8216;applyopts_single&#8217;: xioopts.c:3998: error: &#8216;struct single&#8217; has no member named &#8216;fd1&#8217; xioopts.c:4000: error: &#8216;struct single&#8217; has no member named &#8216;fd1&#8242; make[1]: *** [xioopts.o] Error 1 Edit the file xioopts.c in your favorite editor and replace &#8216;fd1&#8217; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[230],"tags":[285,205,229,452],"class_list":["post-362","post","type-post","status-publish","format-standard","hentry","category-howto","tag-compilation","tag-cygwin","tag-error","tag-socat"],"_links":{"self":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/comments?post=362"}],"version-history":[{"count":3,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":365,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/362\/revisions\/365"}],"wp:attachment":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/media?parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/categories?post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/tags?post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}