From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9a2f254ab43eb240 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-27 17:27:52 PST Newsgroups: comp.unix.osf.osf1 Path: nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!CERN.ch!news From: danpop@cernapo.cern.ch (Dan Pop) Subject: Re: Error: Undefined Message-ID: Sender: news@news.cern.ch (USENET News System) Organization: CERN European Lab for Particle Physics References: <38ond9$jn0@galaxy.uci.agh.edu.pl> Date: Thu, 27 Oct 1994 19:33:41 GMT In <38ond9$jn0@galaxy.uci.agh.edu.pl> grzes@sony10 (Grzegorz Mucha) writes: >sometimes, as I compile something on OSF/1 V1.3 (alpha) I get the following >error: > >/usr/ucb/ld: >Error: Undefined: >dnet_conn >dnet_addr >getnodebyname > >what library should I link to omit this error? I ran into this problem, too. Here is the answer from the DEC support center: Windows Programming The following notes apply to windows programming. DECnet Transport for Client/Server Connections The X Server, libraries, and various clients are able to utilize a DECnet transport mechanism for client/server connections if an appropriate DECnet product is installed on the system (or on both systems if the client and server are running on different systems). If DECnet is not installed, attempts to establish such connections by a DECnet transport will fail. Clients and libraries which directly execute calls to DECnet functions such as getnodename, dnet_addr, and dnet_conn are built with libdnet_stub.so in their link editor (ld) command. So too, the loadable X server includes libdnet_stub.so in its list of shared libraries to be loaded. Clients which are to be built fully-static and include LibX11.a or libXmu.a must also incorporate libdnet_stub.a (if they will not be using DECnet transport) or libdnet.a as included in the DECnet product. Inclusion of one of the libdnet libraries is required to resolve function calls from within libX11 or libXmu modules. If it is not a requirement that the client be fully static but the client is using libX11.a or libXmu.a for some other reason, libdnet_stub.so can be included in the ld command information and the client can then be used whether or not DECnet is installed. Xservers which are to be built fully-static and include libos.a must also incorporate libdnet_stub.a (if not to be using DECnet transport) or libdnet.a (if to be capable of using DECnet transport). If it is not required that the client be fully static, libdnet_stub.so can be included in the ld command information. The resultant X server will access this shared library and be usable whether or not DECnet is installed. Dan -- Dan Pop CERN, CN Division Email: danpop@cernapo.cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland