Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Error: Undefined
@ 1994-10-27 17:18 Grzegorz Mucha
  1994-10-27 19:33 ` Dan Pop
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Grzegorz Mucha @ 1994-10-27 17:18 UTC (permalink / raw)


Hi,

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 was compiling gnuplot and gnuplot_x11, and the command was:
gcc -o gnuplot_x11 gplt_x11.o -s  -L/usr/lib -lX11 -lm)

Thanks for any help,

	Grzesiek

BTW: Makefile was generated by 'configure' script.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error: Undefined
  1994-10-27 17:18 Error: Undefined Grzegorz Mucha
@ 1994-10-27 19:33 ` Dan Pop
  1994-10-28 15:55   ` Paul Southworth
  1994-10-28 11:39 ` lftraini
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Dan Pop @ 1994-10-27 19:33 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error: Undefined
  1994-10-27 17:18 Error: Undefined Grzegorz Mucha
  1994-10-27 19:33 ` Dan Pop
@ 1994-10-28 11:39 ` lftraini
  1994-10-28 22:00 ` Jeff Lanka
  1994-10-31 21:00 ` Rick Murphy
  3 siblings, 0 replies; 6+ messages in thread
From: lftraini @ 1994-10-28 11:39 UTC (permalink / raw)


Try dnet_stub (libdnet_stub.a)




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error: Undefined
  1994-10-27 19:33 ` Dan Pop
@ 1994-10-28 15:55   ` Paul Southworth
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Southworth @ 1994-10-28 15:55 UTC (permalink / raw)


In article <CyCJo5.EIC@news.cern.ch>, Dan Pop <danpop@cernapo.cern.ch> wrote:
>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
>
>I ran into this problem, too. Here is the answer from the DEC support
>center:


If you're like me and have no use for garbage like DECNET at all, you
might as well skip the linking of the dnet_stub and just cut DECNET out
of your osf1.cf imake config file completely.  To do this, edit
/usr/lib/X11/config/osf1.cf and remove all instances of "-DDNETCONN"
and you will never see that problem again (you'll have to run xmkmf
again for the package you're compiling already, tho...).

--
Paul Southworth
CICNet Systems Support
pauls@cic.net


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error: Undefined
  1994-10-27 17:18 Error: Undefined Grzegorz Mucha
  1994-10-27 19:33 ` Dan Pop
  1994-10-28 11:39 ` lftraini
@ 1994-10-28 22:00 ` Jeff Lanka
  1994-10-31 21:00 ` Rick Murphy
  3 siblings, 0 replies; 6+ messages in thread
From: Jeff Lanka @ 1994-10-28 22:00 UTC (permalink / raw)



In article <38ond9$jn0@galaxy.uci.agh.edu.pl>, grzes@sony10 (Grzegorz Mucha) writes:
|>Path: jetty.telerate.com!uunet!newsfeed.ACO.net!fuw.edu.pl!cyfronet!galaxy.uci.agh.edu.pl!sony10!grzes
|>From: grzes@sony10 (Grzegorz Mucha)
|>Newsgroups: comp.unix.osf.osf1
|>Subject: Error: Undefined
|>Date: 27 Oct 1994 17:18:33 GMT
|>Organization: University of Mining & Metallurgy
|>Lines: 21
|>Message-ID: <38ond9$jn0@galaxy.uci.agh.edu.pl>
|>NNTP-Posting-Host: sony10.twins.pk.edu.pl
|>X-Newsreader: TIN [version 1.2 PL2]
|>
|>Hi,
|>
|>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 was compiling gnuplot and gnuplot_x11, and the command was:
|>gcc -o gnuplot_x11 gplt_x11.o -s  -L/usr/lib -lX11 -lm)
|>
|>Thanks for any help,
|>
|>	Grzesiek
|>
|>BTW: Makefile was generated by 'configure' script.
|>


-ldnet -ldna

should do it
--
Jeff Lanka
VMS/Unix SM sysdev
Dow Jones/Telerate


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error: Undefined
  1994-10-27 17:18 Error: Undefined Grzegorz Mucha
                   ` (2 preceding siblings ...)
  1994-10-28 22:00 ` Jeff Lanka
@ 1994-10-31 21:00 ` Rick Murphy
  3 siblings, 0 replies; 6+ messages in thread
From: Rick Murphy @ 1994-10-31 21:00 UTC (permalink / raw)



In article <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 ...
etc.

Lots of responses - however, the *real* problem is fairly simple:
You're linking your program against the static libX11.a vs. the shared version. Removing the
"-L/usr/lib" will fix it. (And make the program smaller :-)
	-Rick
-- 
Rick Murphy, WA1SPT/4			Washington Federal Programs Office
Domain:  murphy@dco.dec.com		 Technical Support Group
Bang:    decwrl!burfle.enet!murphy	This posting expresses MY opinions only;
Ding:    301-306-2040.			 I do not speak for Digital.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1994-10-31 21:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-27 17:18 Error: Undefined Grzegorz Mucha
1994-10-27 19:33 ` Dan Pop
1994-10-28 15:55   ` Paul Southworth
1994-10-28 11:39 ` lftraini
1994-10-28 22:00 ` Jeff Lanka
1994-10-31 21:00 ` Rick Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox