[comp.windows.x] __GetHostname error

card@masi.ibp.fr (Remy CARD) (06/01/90)

In article <12295@unix.SRI.COM>, felix@AI.SRI.COM (Francois Felix
INGRAND) writes:
|>I am running X11R4 (fixes level 11) , under SunOS 4.0.3 .
|>
|>I tried to install xdvi but when I launch the program, I get:
|>
|>ld.so: call to undefined procedure __GetHostname from 0xf762c984
|>
|>and indeed, if I compile it with static linking, I get this symbol
|>undefined.
|>
|>I cannot find in which library this symbol is defined. Any pointer
|>will be appreciated.

	I had the same problem because I had the LD_LIBRARY_PATH
environment variable set to the Open Windows libraries directory.

	When you compile an application, the dynamic link editor
will try to use the Open Windows X libraries. You must unset the
LD_LIBRARY_PATH before compiling so the link editor will use the
standard X libraries.

	To be sure, you can use the ldd command which shows which
dynamic libraries will be used during the execution of the
program.


--------------------------------------------------------------------------
| Remy CARD                             | Telephone : (33) 1-43.36.25.25 |
| Universite Pierre et Marie Curie      |       poste 43-63              |
| Laboratoire MASI, CNRS UA 818         |    Fax : (33) 1-46.34.19.27    |
| 4 Place Jussieu, 75252 Paris Cedex 05 |  E-mail : card@masi.ibp.fr     |
--------------------------------------------------------------------------