Article View: news.software.readers
Article #50392Re: Porting SLRN to MacOX S Server
From: Sherilyn
Date: Thu, 05 Aug 1999 00:00
Date: Thu, 05 Aug 1999 00:00
69 lines
3726 bytes
3726 bytes
-----BEGIN PGP SIGNED MESSAGE----- >>>>> "Earl" == Earl Grey <bofh@kapu.net> writes: Earl> Hi. Earl> I have finally "successfully"[1] compiled both slang[2] and slrn[3], Earl> but am having a few problems... Earl> I substituted all instances of "-ltermcap" for '-framework System", Earl> removed all references to "-lm" (as it is included in the above), Earl> edited out all the references to group "root" (made it "user" Earl> instead), and everything compiled and went to the right location. Earl> Started it up, and up it came, and displayed three of my four Earl> subscribed newsgroups (according to PINE 4.10, which I have been Earl> using up until now), and then... Earl> nothing. Earl> It's sitting there, apperantly waiting for a command, but neither Earl> "?" or "q" will convince it to do anything. I went to another Earl> window, got the pid and put it out of it's misery, and THEN... Earl> all the characters I had typed previousely showed up on the next Earl> line. Seems it might be looking in the wrong place for them, or Earl> was hung up on some other event? Earl> Any way to tell which was which? Earl> Sorry, I'm new to the porting game, so I'm temporarily at a loss Earl> as to how to proceed. Start simple. Your program won't listen to the keyboard, and it uses slanglib to do that, so check that slanglib is correctly built. Getting it to compile and link only means that the compiler spotted nothing it knew was wrong; the compiled code isn't honor-bound to do amything sensible. There are some demo programs in the slanglib distribution, and if you haven't successfully run all of these you cannot be sure you have ported slanglib. Since you're porting slanglib, you will probably have to do some work on producing a system-specific sl*tty.c There are versions for UNIX (the delightfully named slutty.c), W32, OS2, DOS and VMS to work from. I have no idea which one will be closest to a MAC, but would guess that slutty.c is your best bet. Ask in Mac development groups for help porting UNIX input-output code to Macintosh; this has been done many times in the past. Someone else suggested gdb; that or whatever debugger comes with your compiler can be used to step through code. Another thing you can do is compile some trace code into sl*tty.c; this is a cheap and easy way to find out where your program is hanging. One you have found out _where_, the _why_ may be obvious, or it may require a lot of thought. Rely on peopleparticularly in the Mac groups to help you with code problems. -----BEGIN PGP SIGNATURE----- Version: 2.6.2 Comment: Processed by Mailcrypt 3.5.3, an Emacs/PGP interface iQCVAwUBN6muv9SR8rI01qX9AQG2eAP+N7v+hUx8TVlhqmBR4BFeHevYzzyYSq+D WoR3GFDmwxI78fnzwumEu1+z57DK8pS4wotNZeb64d+hwlwotnUb0NTz7X5eDUgV 0OP6E52w7sXrqRV7J75j9h4bNvr4ZeGnOAbDANdeFygAUFV0XFNIQ2WpL8wVXxn4 k6/qCKbiqw8= =M93o -----END PGP SIGNATURE-----
Technical Details
Message-ID:
<86hfmexmwn.fsf@sidaway.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<37A74E15.F12968F2@kapu.net>Show Full Headers
Complete Article Headers
Message-ID: <86hfmexmwn.fsf@sidaway.demon.co.uk> Subject: Re: Porting SLRN to MacOX S Server Date: Thu, 05 Aug 1999 00:00:00 +0000 From: Sherilyn <sherilyn@sidaway.demon.co.uk> References: <37A74E15.F12968F2@kapu.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 509215898 X-Mail2News-Path: news.demon.net!server2.screaming.net!sidaway.demon.co.uk!sherilyn X-Trace: mail2news.demon.co.uk 933867260 mail2news:2105 mail2news mail2news.demon.co.uk Organization: None Newsgroups: news.software.readers X-Complaints-To: abuse@demon.net