home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 20837 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  3.6 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!not-for-mail
  2. From: pbickers@tamaluit.phys.uidaho.edu (Paul Bickerstaff)
  3. Newsgroups: comp.windows.x
  4. Subject: X11R5 PL21 build problem under RISCos4.51
  5. Date: 6 Jan 1993 18:51:15 -0600
  6. Organization: UTexas Mail-to-News Gateway
  7. Lines: 88
  8. Sender: daemon@cs.utexas.edu
  9. Message-ID: <9301070051.AA03159@tamaluit.phys.uidaho.edu>
  10. NNTP-Posting-Host: cs.utexas.edu
  11.  
  12. I have found that clients/xdm/sessreg.c and clients/xterm/main.c
  13. won't compile in building X11R5 patchlevel 21 under RISCos 4.51
  14. (on a Mips Magnum 3000).
  15.  
  16. The problem is associated with a missing ut_host functionality
  17. and so I don't think my configuration is at fault --- or is there
  18. something I've overlooked?
  19.  
  20. Basically, RISCos is SYSV but has (most) BSD43 functionality. Thus
  21. we find in the Mips.cf file
  22.  
  23.  * X11r5 only builds using the berkeley libraries and compiler.  Make
  24.  * sure your path includes /bsd43/bin before /bin/ or /usr/bin.
  25.  
  26. and
  27.  
  28. #define StandardDefines -DMips -DBSD43
  29.  
  30. but this crashes in the clients/xdm section:
  31.  
  32. cc -O -signed -systype bsd43 -Olimit 2000 -Wf,-XNd8400,-XNp12000   -I../
  33. ../.  -DMips -DBSD43   -DBINDIR=\"/usr/local/X11/R5/bin\" -DXDMDIR=\"/usr/local/
  34. X11/R5/lib/X11/xdm\"  -DSIGNALRETURNSINT -DHASXDMAUTH    -DTCPCONN -DUNIXCONN  -
  35. DOSMAJORVERSION=4  -DOSMINORVERSION=51 -c sessreg.c
  36. ccom: Error: sessreg.c, line 293: syntax error
  37.                 (void) strncpy (u->???UT_HOST NOT AVAILABLE???, host, sizeof (u-
  38. >???UT_HOST NOT AVAILABLE???));
  39.       -----------------------------^
  40. ccom: Error: sessreg.c, line 295: syntax error
  41.                 bzero (u->???UT_HOST NOT AVAILABLE???, sizeof (u->???UT_HOST NOT
  42.  AVAILABLE???));
  43.       --------------------^
  44.  
  45. and if we push on, again in clients/xterm:
  46.  
  47.  cc -c -O -signed -systype bsd43 -Olimit 2000 -Wf,-XNd8400,-XNp12000   -I
  48. ../../.  -DMips -DBSD43    -DUTMP -DUSE_TTY_GROUP   -DOSMAJORVERSION=4  -DOSMINO
  49. RVERSION=51 main.c
  50. cpp: warning /bsd43/usr/include/stdio.h:103: NULL redefined
  51. ccom: Error: main.c, line 2265: syntax error
  52.                                 (void) strncpy(utmp.???UT_HOST NOT AVAILABLE???,
  53.  
  54.       ----------------------------------------------^
  55. *** Error code 1
  56.  
  57.  
  58. Both of these sections of code clearly indicate that problems can be
  59. expected here with missing ut_host functionality in SYSV systems (while
  60. at the same time commenting that SYSV actually provides superior
  61. alternatives). 
  62.  
  63. Hence I managed to compile sessreg.c by hand simply by switching the
  64. -DBSD43 compilation flag to -DSYSV and in main.c I turned off the
  65. HAS_UTMP_UT_HOST switch:
  66.  
  67. % diff -c main.c~ main.c
  68. *** main.c~     Tue Jan  5 14:53:29 1993
  69. --- main.c      Wed Jan  6 15:04:09 1993
  70. ***************
  71. *** 154,159 ****
  72. --- 154,163 ----
  73.   #include <sgtty.h>
  74.   #include <sys/resource.h>
  75.   #define HAS_UTMP_UT_HOST
  76. + /* add Mips fix: RISCos is really SYSV */
  77. + #ifdef Mips
  78. + #undef HAS_UTMP_UT_HOST
  79. + #endif /* Mips */
  80.   #define HAS_BSD_GROUPS
  81.   #endif        /* !SYSV */
  82.  
  83. but I don't understand the dependencies on this code and so can't be sure
  84. this will work; nor can I understand how this flaw has survived without
  85. being fixed by now. 
  86.  
  87. Is there a known workaround? I would have expected this code to have
  88. Mips dependencies extensively built in to take advantage of the SysV
  89. nature of RISCos. But no. What gives? Wouldn't something like
  90. HAS_UTMP_UT_HOST be useful in sessreg.c?
  91.  
  92. If you e-mail a reply please note my address below. This is being
  93. posted by roundabout means and hitting reply almost certainly
  94. won't work.
  95.  
  96.  
  97. Paul Bickerstaff                 Internet: pbickers@tamaluit.phys.uidaho.edu
  98. Physics Dept., Univ. of Idaho    Phone:    (208) 885 6809
  99. Moscow ID 83843, USA             FAX:      (208) 885 6173
  100.