Xref: utzoo comp.lang.c:30567 comp.unix.questions:24088 Path: utzoo!attcan!uunet!decwrl!bacchus.pa.dec.com!deccrl!decvax.dec.com!elrond!shodsdon From: shodsdon@elrond.CalComp.COM (Steve V. Hodsdon) Newsgroups: comp.lang.c,comp.unix.questions Subject: What is _sobuf and wher is it defined? Keywords: Trying to port rcs. Message-ID: <2855@elrond.CalComp.COM> Date: 26 Jul 90 13:11:24 GMT Organization: Calcomp, A Lockheed Company, Hudson, NH, USA Lines: 33 I am trying to port rcs, version 3, to a Sun SPARCserver. The rdiff directory is the only one that is giving me problems. All three files compile with no warnings, but when the loading is done, there is an undefined symbol: __sobuf. Loading rdiff ... ld: Undefined symbol __sobuf *** Error code 1 This same code will compile on a VAX and a MIPS machine with no problems. The problem is, I can't find any reference to _sobuf in the manuals, man pages, or grep. The code can be found in diff.c: [outside of main ...] extern char _sobuf[]; [ inside main ...] setbuf(stdout, _sobuf); Other info: SunOS 4.0.3, VAX-Ultrix V2.2, MIPS-UMIPS-BSD V2.1 Thanks for any insight that you can give me. -- Steve Hodsdon | Stay sane inside insanity. shodsdon@elrond.CalComp.COM | Don't dream it - Be it. {decvax|harvard}!elrond!shodsdon | (603) 885-8324 |