home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / aix / 8988 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  3.6 KB

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!eswu
  2. From: eswu@expo.lcs.mit.edu (Eng-Shien Wu)
  3. Newsgroups: comp.unix.aix
  4. Subject: Hints on building X11R5 with AIX3.2
  5. Summary: Here is some more info on gottas when building X11R5 on AIX3.2
  6. Keywords: X11R5 AIX3.2 xlc
  7. Message-ID: <eswu.714423384@alex.lcs.mit.edu>
  8. Date: 21 Aug 92 18:56:24 GMT
  9. Sender: news@mintaka.lcs.mit.edu
  10. Organization: X Consortium, MIT Laboratory for Computer Science
  11. Lines: 111
  12.  
  13. These are hints for people building X11R5 with AIX3.2.  BTW, the X11R5
  14. parts of the FAQ is way old: the section by Andy Pierce probably should
  15. be deleted because it is no longer relevant.
  16.  
  17. Sections of this posting
  18.     1. Fun with xlc 1.2.0.x (AIX3.2)
  19.     2. BSD 4.4 networking (AIX3.2)
  20.     3. xdm and /etc/environments
  21.     4. Contrib patches
  22.  
  23. --------------------
  24. Fun with xlc 1.2.0.x
  25. --------------------
  26.  
  27. I've had problems with every version of XLC in AIX3.2 that I've installed.
  28. To find out what version you have, type "lslpp -h xlccmp.obj".
  29.  
  30. xlc 1.2.0.0:
  31.     Eats >50megs of page space on large files when optimizing; ANSI
  32.     mode flags legitimate constructs as errors. Because of the large
  33.     time and space requirement, it fails to finish in finite time.
  34.     Solution: Don't build optimized, so in the file mit/config/ibm.cf,
  35.     add somewhere after "#ifdef RsArchitecture":
  36.     #define OptimizedCDebugFlags
  37.  
  38. xlc 1.2.0.5
  39.     Still problem with optimizing: use above solution.
  40.  
  41. xlc 1.2.0.7
  42.     Faulty inlining of memcpy(). To turn off,
  43.     #define OptimizedCDebugFlags -O -D__STR31__
  44.  
  45. xlc 1.2.0.12
  46.     Have not installed yet but inlining of memcpy() fixed.
  47.  
  48.  
  49. --------------------
  50.  BSD 4.4 networking
  51. --------------------
  52.  
  53. In AIX3.2, because of changes in the socket address structure for
  54. BSD4.4 networking, mit/lib/X/XConnDis.c must be patched for UNIX
  55. domain sockets to work. Note that these are not full patches, so do
  56. _not_ turn off the network option "compat_43" (to check, type "no -a"
  57. and look for "compat_43 = 1") or else TCP/IP sockets will break. The
  58. full patch, unfortunately, hits a _lot_ of files. Save patch to
  59. sky-aix32.patch and type:
  60.  
  61.     mv sky-aix32.patch mit/lib/X
  62.     cd mit/lib/X
  63.     cp XConnDis.c XConnDis.c.save
  64.     patch -p -s < sky-aix32.patch
  65.     make libX11.a
  66.  
  67. *** XConnDis.c-    Fri Sep 13 18:20:28 1991
  68. --- XConnDis.c    Wed Mar 11 11:29:51 1992
  69. ***************
  70. *** 442,450 ****
  71.   
  72.       unaddr.sun_family = AF_UNIX;
  73.       sprintf (unaddr.sun_path, "%s%d", X_UNIX_PATH, idisplay);
  74.   
  75.       addr = (struct sockaddr *) &unaddr;
  76. !     addrlen = strlen(unaddr.sun_path) + sizeof(unaddr.sun_family);
  77.   
  78.   #ifdef hpux /* this is disgusting */
  79.       ounaddr.sun_family = AF_UNIX;
  80. --- 442,451 ----
  81.   
  82.       unaddr.sun_family = AF_UNIX;
  83.       sprintf (unaddr.sun_path, "%s%d", X_UNIX_PATH, idisplay);
  84. +     unaddr.sun_len = strlen(unaddr.sun_path);
  85.   
  86.       addr = (struct sockaddr *) &unaddr;
  87. !     addrlen = (sizeof(unaddr) - sizeof(unaddr.sun_path) + unaddr.sun_len);
  88.   
  89.   #ifdef hpux /* this is disgusting */
  90.       ounaddr.sun_family = AF_UNIX;
  91.  
  92. -------
  93.  
  94.  
  95. --------------------
  96.  /etc/environments
  97. --------------------
  98.  
  99. If you use xdm, you should add this to "/usr/local/lib/X11/xdm/xdm-config"
  100. so that you get the system environment variables set:
  101.  
  102.     DisplayManager.exportList:      TZ LANG LOCPATH NLSPATH ODMDIR
  103.  
  104.  
  105. --------------------
  106.   Contrib patches
  107. --------------------
  108.  
  109. Patches to improve the performance of the colorgda adapter (aka, skyway)
  110. are available by anonymous ftp from export.lcs.mit.edu. Look for
  111.  
  112.     contrib/sky.README
  113.     contrib/sky-perf-1.tar.Z
  114.     contrib/sky-cfb.patch
  115.  
  116. The above BSD4.4 networking patch is also in
  117.  
  118.     contrib/sky-aix32.patch
  119.  
  120.  
  121. --
  122. Eng-Shien Wu (eswu@expo.lcs.mit.edu)
  123. IBM Graphic Systems/MIT X Consortium
  124.