home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / softsys / andrew / 1209 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  2.5 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!DOC.IC.AC.UK!mjb
  2. From: mjb@DOC.IC.AC.UK (Matthew Jude Brown)
  3. Newsgroups: comp.soft-sys.andrew
  4. Subject: messages and X windows
  5. Message-ID: <Added.Yed9nBS00UkTQ1sk9d@andrew.cmu.edu>
  6. Date: 2 Sep 92 10:51:22 GMT
  7. References: <AecLYQa4hFs604GANR@cantsc.canterbury.ac.nz>
  8. Sender: daemon@ucbvax.BERKELEY.EDU
  9. Distribution: world
  10. Organization: The Internet
  11. Lines: 53
  12.  
  13. In article <AecLYQa4hFs604GANR@cantsc.canterbury.ac.nz> Jason Haar <cctr127@cantva.canterbury.ac.nz> writes:
  14. >Hi,
  15. >
  16. >Over the past month or so I've been trialing the ATK binary distribution on
  17. >our Sun server. 
  18. >
  19. >From my SPARCstation it ran/runs very well, and I'm already to announce its
  20. >availability to the campus here.
  21. >
  22. >Unfortunately, I can't get it to run on NCD X-terminals - running ATK
  23. >applications (like <bold>runapp lauchapp</bold>) causes the following error:
  24. >
  25. >   Could not open display; this program will not run without a window system
  26. >
  27. >Needless to say, windows was running at the time ;-)
  28. >
  29. >Any ideas where I should start looking for the problem? The server runs
  30. >SunOS 4.1.2 and X11R5.
  31. >
  32. >Cheers
  33. >
  34. >Jason Haar, Network Consultant
  35.  
  36. For an immediate fix, try setting your DISPLAY environment variable to the
  37. numeric IP address of your X terminal instead of its domain name like so:
  38.  
  39.    setenv DISPLAY 129.31.81.33:0.0
  40.  
  41. instead of diapason:0.0 (of course, these are the numbers and name for my
  42. setup - replace them with yours ...)
  43.  
  44. I think you'll find this will work - it did for me.
  45.  
  46. Looking more closely, you'll probably find that your X terminals do not
  47. appear in /etc/hosts - instead, you're using NIS or DNS to resolve these
  48. host names. The problem is that you've linked with libraries with the
  49. wrong version of the hostname functions - gethostbyname() et al -
  50. probably you have a different version of these in your static libraries
  51. than in your dynamically linked libraries. Your other X applications
  52. are probably using the dynamic libraries, which have the right version
  53. of these for your setup.
  54.  
  55. Solution? Link with -lresolv , add your X-terminals to /etc/hosts, or
  56. update your libraries.
  57.  
  58. Hope this is of some use,
  59.  
  60. -Matt
  61. -- 
  62. | Matthew J. Brown  | Dept. of Computing | If God intended for us to go to   |
  63. | mjb@doc.ic.ac.uk  | Imperial College,  | lectures He wouldn't have created |
  64. | mjb02@cc.ic.ac.uk | 180 Queen's Gate   | double-sided photocopiers.        |
  65. | Morven on Lambda  | LONDON SW7 2AZ     |          -IC RagMag 1991/92       |
  66.