{"id":5801,"date":"2020-06-22T19:05:30","date_gmt":"2020-06-22T19:05:30","guid":{"rendered":"https:\/\/really.zonky.org\/?p=5801"},"modified":"2020-06-22T19:05:32","modified_gmt":"2020-06-22T19:05:32","slug":"building-kermit","status":"publish","type":"post","link":"https:\/\/really.zonky.org\/?p=5801","title":{"rendered":"Building Kermit"},"content":{"rendered":"\n<p>Unfortunately, the serial communication program I tend to use (<a href=\"http:\/\/www.kermitproject.org\/\" class=\"aioseop-link\">kermit<\/a>) appears to have not been updated in quite a while. Which in some ways is reasonable (it&#8217;s a very old program and probably does not need much work), understandable (the main developer is no longer employed to make it work), but is somewhat frustrating when it no longer compiles.<\/p>\n\n\n\n<p>To get it to work on my latest system :-<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Download the <em>cku302.tar.gz<\/em> source code and unpack.<\/li><li>Try the first compile with <em>make linux KFLAGS=-DNOARROWKEYS<\/em> (losing the arrow keys is unfortunate but not fatal unless you&#8217;re in command mode far too long).<\/li><li>If that doesn&#8217;t compile with zillions of undefined references to curses sounding functions (<em>printw<\/em>, <em>stdscr<\/em>, <em>wmove<\/em>, etc.) then scroll up to the top of the errors where the final command to &#8220;compile&#8221; all the objects into a final binary is available. Paste that command and add a &#8220;-lncurses&#8221; :-<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>$ gcc  -o wermit \\\n      ckcmai.o ckclib.o ckutio.o ckufio.o \\\n      ckcfns.o ckcfn2.o ckcfn3.o ckuxla.o \\\n      ckcpro.o ckucmd.o ckuus2.o ckuus3.o \\\n      ckuus4.o ckuus5.o ckuus6.o ckuus7.o \\\n      ckuusx.o ckuusy.o ckuusr.o ckucns.o \\\n      ckudia.o ckuscr.o ckcnet.o ckusig.o \\\n      ckctel.o ckcuni.o ckupty.o ckcftp.o \\\n      ckuath.o ck_crp.o ck_ssl.o -lutil -lresolv -lcrypt -lncurses -lm<\/code><\/pre>\n\n\n\n<p>The final output of &#8220;wermit&#8221; just needs to be stripped, moved to a proper location, and renamed :-<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ strip wermit\n$ sudo mv wermit \/opt\/bin\/kermit<\/code><\/pre>\n\n\n\n<p>And there it seems to work fine.<\/p>\n\n\n\n<p>Of course this is not a proper fix, and we are missing a lot of features but it is at least working. And saves me from having to struggle with <em>minicom<\/em>, <em>screen<\/em>, or <em>cu<\/em>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"695\" height=\"463\" src=\"https:\/\/i0.wp.com\/really.zonky.org\/wp-content\/uploads\/damascus-unix-prompt1.png?resize=695%2C463&#038;ssl=1\" alt=\"\" class=\"wp-image-3904\" srcset=\"https:\/\/i0.wp.com\/really.zonky.org\/wp-content\/uploads\/damascus-unix-prompt1.png?w=792&amp;ssl=1 792w, https:\/\/i0.wp.com\/really.zonky.org\/wp-content\/uploads\/damascus-unix-prompt1.png?resize=300%2C200&amp;ssl=1 300w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Unfortunately, the serial communication program I tend to use (kermit) appears to have not been updated in quite a while. Which in some ways is reasonable (it&#8217;s a very old program and probably does not need much work), understandable (the main developer is no longer employed to make it work), but is somewhat frustrating when <a href='https:\/\/really.zonky.org\/?p=5801' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[4,209],"tags":[1948,1944,43,1947,1946],"class_list":["post-5801","post","type-post","status-publish","format-standard","hentry","category-it","category-linux-it","tag-compilation","tag-kermit","tag-linux","tag-minicom","tag-screen","category-4-id","category-209-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1f2KI-1vz","_links":{"self":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/5801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5801"}],"version-history":[{"count":1,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/5801\/revisions"}],"predecessor-version":[{"id":5802,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/5801\/revisions\/5802"}],"wp:attachment":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}