Path: utzoo!attcan!uunet!yale!cmcl2!acf4!wood From: wood@acf4.NYU.EDU (David Wood) Newsgroups: comp.sys.sgi Subject: Re: Printing and Backups on the SGI Message-ID: <17280010@acf4.NYU.EDU> Date: 19 May 89 21:39:00 GMT References: <31330@bu-cs.BU.EDU> Organization: New York University Lines: 34 Yes, I've ported the bsd lpr to a 40/70GT running 3.1B. It took me a two or three days to do, it took me that long to figure out what exactly was missing. With a little help it should take a day or two. Somewhere a symbol is being redefined, I believe SGI has a problem with some of their include files being reincluded, but that isn't too hard to deal with. Here's what I had to do as best as I can reconstruct. (I didn't do this with diff/patch because I'm sure everyones' lpr is hacked up differently). Because of licencing I shouldn't be more specific than this. Good Luck - david Files that need changing... /* Add to file system */ lp.h lpd.c lpr.c printjob.c startdaemon.c What to do in general... 1) SGI does not support UNIX sockets, so change all UNIX sockets to INET sockets. ifdef out any code for UNIX sockets. 2) Get copies of exec.h and un.h and put them in /usr/include/bsd/exec.h /usr/include/bsd/sys/un.h 3) chown by name is not supported, use fchown lookout for argument changes