Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!sgi!shinobu!odin!speaker!coolidge From: coolidge@speaker.sgi.com (Don Coolidge) Newsgroups: comp.sys.hp Subject: Re: t_rcv and t_snd Summary: They're TLI calls, not socket syscalls Keywords: TLI, sockets Message-ID: <1991May7.181714.2658@odin.corp.sgi.com> Date: 7 May 91 18:17:14 GMT References: <1991May06.151803.13339@nncrcae.Columbia.NCR.COM> Sender: news@odin.corp.sgi.com (Net News) Reply-To: coolidge@speaker.UUCP (Don Coolidge) Distribution: usa Organization: Silicon Graphics Inc., Mtn. View, CA Lines: 36 In article <1991May06.151803.13339@nncrcae.Columbia.NCR.COM> craig@clodII.Columbia.NCR.COM (Craig Williamson) writes: > >I'm trying to compile some X programs on an HP9000/375 and am having >a little problem with a missing library. The error I get is: > >ld: Undefined external - > _t_rcv > _t_snd >ld: output file still contains undefined symbols >ld: (Warning) did not generate an output file >*** Error code 1 > >Stop. > >Where is t_rcv and t_snd? I can't find them in /usr/lib or /usr/include. >On an NCR Tower they are in /usr/lib/libnsl.a. Is there an equivalent on >the HP for the library or for the code? Those calls are part of TLI, AT&T's proprietary Transport Level Interface to kernel networking code. HP, like most workstation and technical un*x box vendors, uses the de-facto industry standard 4.xBSD sockets for networking, rather than TLI/STREAMS. TLI is not a supported part of HP-UX, so there's no library to be had (though there have been unsupported library interfaces floating around various companies for years that translate TLI into socket calls). HP's native X (as well as X from MIT) uses sockets, not TLI. So, the program you're compiling uses a non-standard SystemV-ish interface for X. (Is this why AT&T is finally buying NCR?...;^) The easiest thing for you to do is to use send(2) and recv(2), or sendto(2) and recvfrom(2), instead - read the man pages, then substitute those calls for the TLI ones. Don Coolidge coolidge@speaker.wpd.sgi.com