Date: Fri, 18 Aug 2000 12:17:54 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: kourino AT hotmail DOT com Message-Id: <8011-Fri18Aug2000121753+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b CC: djgpp AT delorie DOT com In-reply-to: <399CCC1B.C376F6FB@hotmail.com> (message from the Icefalcon on Fri, 18 Aug 2000 05:33:03 GMT) Subject: Re: Porting from *nix (general) and capturing gcc/cc1 output ... References: <399CCC1B DOT C376F6FB AT hotmail DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: the Icefalcon > Newsgroups: comp.os.msdos.djgpp > Date: Fri, 18 Aug 2000 05:33:03 GMT > > Any general issues that I should know trying to port POSIX and other > *nix apps to DOS with DJGPP? In general, that works and is relatively easy (portability from Unix and Posix compliance are two of DJGPP's main goals). There are some gory details, but no general show-stoppers. > (Other than the fact that all the calls in unistd return amusing, > prefabricated values ^^; ) Some, but not all. Quite a few of Posix functions actually provide non-trivial emulation of the Unix functionality. > This is a matter > of some interest to me, mostly to give me something to do, but also > because there are some apps I'd like to use under DOS, and porting > them would be good experience for me. I suggest to download one of the source distributions from the v2gnu directory on DJGPP ftp sites, and look in the djgpp subdirectory there. That will give you some idea about what is involved in making the port build. > Out of curiosity to see how much > work this would entail, I changed a few things in the make file so GNU > make would like it and got easily 70 compile-time errors. I tried > capturing this to a file but it failed. I suggest to download the DJGPP FAQ list (v2/faq230b.zip from the same place you get DJGPP) and search its indices for any problem you might have, when you encounter that problem. Many ``popular'' problems are already solved there; this particular one is in section 6.15.