home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 9937 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.2 KB  |  50 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!mcsun!sunic!corax.udac.uu.se!irfu.se!jhd
  3. From: jhd@irfu.se (Jan D.)
  4. Subject: Re: X11R5 on hpux 8.07
  5. Message-ID: <1992Sep1.191549.1125@irfu.se>
  6. Date: Tue, 1 Sep 1992 19:15:49 GMT
  7. References: <1992Sep1.083553.2934@hp9000.csc.cuhk.hk>
  8. Organization: Swedish Institute of Space Physics, Uppsala, Sweden
  9. Lines: 39
  10.  
  11. In article <1992Sep1.083553.2934@hp9000.csc.cuhk.hk> a006700@hp9000.csc.cuhk.hk (Tang Sammy) writes:
  12. >
  13. >Hi all,
  14. >
  15. >Has anyone try building the X11R5 on HP-UX 8.07?
  16. >It seems that everything is ok except that the main.c for
  17. >xterm when compiled with -DSYSV. It complainted "_file undefined"
  18. >with an error number 1588.
  19. >
  20. >I'm not too sure on what things I've missed in building the R5,
  21. >the release note is a bit too heavy to me and if I've not missed
  22. >anything in the docs, the steps for building it should be very straight.
  23. >
  24. >Any comments and sorry if this is a FAQ.
  25. >
  26. >Thanks in advance.
  27. >
  28. >Sammy
  29.  
  30. HP has a slightly different stdio structure.
  31.  
  32. Change this
  33.  
  34.         stderr->_file = i;
  35.  
  36. to this
  37.  
  38. #ifdef __hpux
  39.                 stderr->__fileL = i & 0377;
  40.                 stderr->__fileH = (i >> 8) & 0377;
  41. #else
  42.                 stderr->_file = i;
  43. #endif
  44.  
  45. and you're set (soory, but I don't remember the line number).
  46.  
  47.     Jan D.
  48.  
  49.  
  50.