home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 18844 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  5.7 KB

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: tmcconne@sedona.intel.com (Tom McConnell~)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Done! Re: X11R5 make World on SVR4.0 Intel platform. Help!
  5. Message-ID: <1992Dec22.185548.9359@sm.sony.co.jp>
  6. Date: 22 Dec 92 18:55:48 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Intel Corporation
  10. Lines: 167
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 22 Dec 1992 15:42:57 GMT
  14. Message-Id: <1h7d21INN7sn@chnews.intel.com>
  15. Newsgroups: comp.windows.x,gnu.gcc.help
  16. References: <1992Dec16.223104.28858@cbnewsj.cb.att.com>, <1h07c3INN5ge@chnews.intel.com>, <1h3adrINN1o5@chnews.intel.com>
  17. Sender: xpert-request@expo.lcs.mit.edu
  18.  
  19.  
  20. In article <1h3adrINN1o5@chnews.intel.com>, tmcconne@sedona.intel.com (Tom McConnell~) writes:
  21. >   Platform: NCR 3350, SVR4.02
  22. >             gcc-2.3.2
  23. > In article <1h07c3INN5ge@chnews.intel.com>, tmcconne@sedona.intel.com (Tom McConnell~) writes:
  24. > > 
  25. > > In article <1992Dec16.223104.28858@cbnewsj.cb.att.com>, mjma@cbnewsj.cb.att.com
  26. > >  (michael.j.matthews) writes:
  27. > > > 
  28. > > > Help,
  29. > > > 
  30. > > > I am trying to make World X11R5 on a SVR4.0 ATT/NCR Intel machine.
  31. > > > 
  32. > > > It doesn't get far before I get this idiotic message:
  33. >   Well, I just tried to build X11R5p21 with gcc-2.3.2 on an NCR 3350, and I
  34. > cannot get it done. The last time I built X11R5 (p17) was with gcc-2.2.2, and it
  35. > had some of the same problems, but did not exhibit this one.
  36. >   The problem is currently that "htonl" is defined twice in libX11.a, once in
  37. > XConnDis.o and once in XlibInt.o. It is actually defined in <sys/byteorder.h>,
  38. > which is part of gcc-2.3.2. <sys/byteorder.h> gets included from <sys/endian.h>,
  39. > which is included from <netinet/in.h>.
  40.  
  41.   Found the problem. I had to "fix" the include files for gcc-2.3.2 in order to
  42. make X11R5 build. No modifications to the X11R5 source was necessary. I have
  43. included a patch file for the gcc folks to peruse. I will place a more detailed
  44. bug report in gnu.gcc.bug.
  45.  
  46.  In the patch file, the files <netinet/in.h> and <sys/endian.h> were copied
  47. into the gcc include area, then modified. I am not saying that my patches are
  48. the correct ones, I am just saying they seem to work for me :)
  49.  
  50.     Cheers,
  51.  
  52.     Tom McConnell
  53.  
  54. This patch file was created on Tue Dec 22 08:04:35 MST 1992.
  55.  
  56. The top level directory was /a/stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/include
  57.  
  58.  
  59. *** ./sys/endian.h_orig    Mon Dec 21 20:37:52 1992
  60. --- ./sys/endian.h    Mon Dec 21 20:35:10 1992
  61. ***************
  62. *** 39,42 ****
  63. --- 39,43 ----
  64.   #define    htons(x)    (x)
  65.   #else
  66. + #   if !defined (__GNUC__) && !defined (__GNUG__)
  67.   #    ifdef    __STDC__
  68.           unsigned short    ntohs(unsigned int), htons(unsigned int);
  69. ***************
  70. *** 46,50 ****
  71.           unsigned long    ntohl(), htonl();
  72.   #    endif
  73. ! #        include    <sys/byteorder.h>
  74.   #endif
  75.   
  76. --- 47,52 ----
  77.           unsigned long    ntohl(), htonl();
  78.   #    endif
  79. ! #   endif /* !defined (__GNUC__) && !defined (__GNUG__) */
  80. ! #   include    <sys/byteorder.h>
  81.   #endif
  82.   
  83. *** ./sys/types.h_orig    Mon Dec 21 20:40:22 1992
  84. --- ./sys/types.h    Tue Dec 22 08:04:24 1992
  85. ***************
  86. *** 33,37 ****
  87.   typedef    short        index_t;
  88.   typedef    short        lock_t;        /* lock work for busy wait */
  89. ! typedef enum boolean { B_FALSE, B_TRUE } boolean_t;
  90.   /*
  91.    * New type from XENIX
  92. --- 33,37 ----
  93.   typedef    short        index_t;
  94.   typedef    short        lock_t;        /* lock work for busy wait */
  95. ! typedef enum { B_FALSE, B_TRUE } boolean_t;
  96.   /*
  97.    * New type from XENIX
  98. *** ./float.h_orig    Sun Dec 20 09:55:32 1992
  99. --- ./float.h    Sun Dec 20 01:46:58 1992
  100. ***************
  101. *** 17,21 ****
  102.   #define FLT_MIN_EXP (-125)
  103.      /* Minimum normalised float */
  104. ! #define FLT_MIN 1.17549435e-38F
  105.      /* Minimum int x such that 10**x is a normalised float */
  106.   #define FLT_MIN_10_EXP (-37)
  107. --- 17,21 ----
  108.   #define FLT_MIN_EXP (-125)
  109.      /* Minimum normalised float */
  110. ! #define FLT_MIN 1.17549435E-38F
  111.      /* Minimum int x such that 10**x is a normalised float */
  112.   #define FLT_MIN_10_EXP (-37)
  113. ***************
  114. *** 23,27 ****
  115.   #define FLT_MAX_EXP 128
  116.      /* Maximum float */
  117. ! #define FLT_MAX 3.40282347e+38F
  118.      /* Maximum int x such that 10**x is a representable float */
  119.   #define FLT_MAX_10_EXP 38
  120. --- 23,27 ----
  121.   #define FLT_MAX_EXP 128
  122.      /* Maximum float */
  123. ! #define FLT_MAX 3.40282347E+38F
  124.      /* Maximum int x such that 10**x is a representable float */
  125.   #define FLT_MAX_10_EXP 38
  126. ***************
  127. *** 36,40 ****
  128.   #define DBL_MIN_EXP (-1021)
  129.      /* Minimum normalised double */
  130. ! #define DBL_MIN 2.2250738585072014e-308
  131.      /* Minimum int x such that 10**x is a normalised double */
  132.   #define DBL_MIN_10_EXP (-307)
  133. --- 36,40 ----
  134.   #define DBL_MIN_EXP (-1021)
  135.      /* Minimum normalised double */
  136. ! #define DBL_MIN 2.2250738585072014E-308
  137.      /* Minimum int x such that 10**x is a normalised double */
  138.   #define DBL_MIN_10_EXP (-307)
  139. ***************
  140. *** 42,46 ****
  141.   #define DBL_MAX_EXP 1024
  142.      /* Maximum double */
  143. ! #define DBL_MAX 1.7976931348623157e+308
  144.      /* Maximum int x such that 10**x is a representable double */
  145.   #define DBL_MAX_10_EXP 308
  146. --- 42,46 ----
  147.   #define DBL_MAX_EXP 1024
  148.      /* Maximum double */
  149. ! #define DBL_MAX 1.7976931348623157E+308
  150.      /* Maximum int x such that 10**x is a representable double */
  151.   #define DBL_MAX_10_EXP 308
  152. *** ./netinet/in.h_orig    Tue Dec 22 07:13:13 1992
  153. --- ./netinet/in.h    Sun Dec 20 20:59:48 1992
  154. ***************
  155. *** 199,202 ****
  156. --- 199,203 ----
  157.   #endif
  158.   
  159. + #ifdef _KERNEL
  160.   #ifdef INKERNEL
  161.   
  162. ***************
  163. *** 225,228 ****
  164. --- 226,230 ----
  165.   
  166.   #endif    /* INKERNEL */
  167. + #endif /* _KERNEL */
  168.   #undef    _PROTO
  169.   
  170. -- 
  171.  Tom McConnell          |     Internet: tmcconne@sedona.intel.com
  172.  Intel, Corp. C3-91     |     Phone: (602)-554-8229
  173.  5000 W. Chandler Blvd. | The opinions expressed are my own. No one in 
  174.  Chandler, AZ  85226    | their right mind would claim them.
  175.