Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!romp!auschs!awdprime!heyman.austin.ibm.com!jerry From: jerry@heyman.austin.ibm.com (Jerry Heyman) Newsgroups: comp.unix.aix Subject: Re: SunOS --> AIX 2.2.1 porting? Message-ID: <7198@awdprime.UUCP> Date: 1 May 91 13:32:17 GMT References: <1991Apr9.114009.5486@oracle.com> <1991May1.010457.4066@ducvax.auburn.edu> Sender: news@awdprime.UUCP Organization: IBM Austin, TX Lines: 43 In article <1991May1.010457.4066@ducvax.auburn.edu> campbell@ducvax.auburn.edu (Black Dougal) writes: >I have recently gotten an account on an IBM RT running AIX 2.2.1. I'm >trying to port a rather complex program to it, but have had problems with >compiling. The program compiles without a hitch on a Sparc running SunOS, >but I just can't get the darned thing working in AIX. > >I noticed in the FAQ posting that a file '/usr/lpp/bos/bsdport' was >mentioned, but this file does not exist on our system (in fact the whole >'bos' subdirectory is missing). If this file isn't under a copyright >which prevents it, could someone e-mail it, and any other porting tips >to me? This would be much appreciated. First off, the '/usr/lpp/bos/bsdport' document that you refer to is strictly for AIX v3 - this runs on the RISC System/6000 (not the RT). There are a couple of things to note when porting software to the RT from a Berkley based system. First off, while a lot of the Berkley features are in AIX 2.2.1, it is basic- ally an AT&T SysV.2 system with parts of SysV.3 added. You might be able to find a #define in your code for SYSV - but not necessarily. Secondly, to make the RT compile more like a BSD-type Unix(tm) box, you need to do the following in your compile line: cc -DBSD_INCLUDES -lbsd I'm pretty sure those are both correct. If you want a little bit more infor- mation, look at the README file located in the / directory. More specifically the section on TCP/IP for the PC which talks about compiling a particular daemon for facilitating mail. That daemon was pure Berkley code when origin- ally written and there is a compile line in there that should help. > >=============================================================================== >Ernest MacDougal Campbell III | "I don't want the world.... jerry -- Jerry Heyman Internet : jerry@ajones.austin.ibm.com PSP Development Environment Tools VNET : HEYMAN at AUSTIN Austin, TX 78758 IBM T-R : jerry@heyman.austin.ibm.com *** All opinions expressed are exactly that - my opinions and NOT IBM's