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

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