home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9041 < prev    next >
Encoding:
Text File  |  1992-08-25  |  2.9 KB  |  65 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!microsoft!wingnut!t-piersh
  3. From: t-piersh@microsoft.com (Piers Haken)
  4. Subject: Re: Errors building tools/build.c
  5. Message-ID: <1992Aug24.234817.19276@microsoft.com>
  6. Date: 24 Aug 92 23:48:17 GMT
  7. Organization: Microsoft Corp., Redmond, WA 98052
  8. References: <1992Aug14.034700.15023@athena.mit.edu>
  9. Lines: 53
  10.  
  11. In article <1992Aug14.034700.15023@athena.mit.edu> hammond@kwhpc.caseng.com (Kevin W. Hammond) writes:
  12. >I installed the inc.tar.Z and 0.97pl1inc.tar.Z files you sent me under
  13. >/usr, as per your instructions.  Once again, I am performing the
  14. >build with 0.97 source (no patches) and GCC 2.2.2.  I also installed
  15. >type symlink from /usr/include/linux to /usr/src/include/linux/include.
  16. >I have not replaced the linux include files with the GCC 2.2.2 include
  17. >files as is indicated in the README.  I also have the -nostdinc in my
  18. >Makefile.
  19. >
  20. >When the make reaches tools/build.c, the following errors occur:
  21. >
  22. >In file included from tools/build.c:25:
  23. >/usr/include/stdlib.h:55: conflicting types for `div_t'
  24. >/usr/include/linux/types.h:68: previous declaration of `div_t'
  25. >/usr/include/stdlib.h:62: conflicting types for `ldiv_t'
  26. >/usr/include/linux/types.h:69: previous declaration of `ldiv_t'
  27. >In file included from /usr/include/unistd.h:188, from tools/build.c:29:
  28. >/usr/include/sys/utsname.h:16: `MAXHOSTNAMELEN' undeclared, outside of functions
  29. >/usr/include/sys/utsname.h:16: size of array `nodename' has non-integer type
  30. >In file included from /usr/include/unistd.h:191, from tools/build.c:29:
  31. >/usr/include/signal.h:14: parse error before `SignalHandler'
  32. >/usr/include/signal.h:14: warning: data definition has no type or storage class
  33. >/usr/include/signal.h:35: parse error before `signal'
  34. >/usr/include/signal.h:35: parse error before `__sighandler_t'
  35. >/usr/include/signal.h:35: warning: data definition has no type or storage class
  36. >tools/build.c: In function `main':
  37. >tools/build.c:90: `O_RDONLY' undeclared (first use this function)
  38. >tools/build.c:90: (Each undeclared identifier is reported only once
  39. >tools/build.c:90: for each function it appears in.)
  40. >
  41. >What would be causing this problem?  I'm almost there....  unfortunatly I go on
  42. >vacation tomorrow and won't have a chance to test any corrections, but I'll
  43. >still be checking my mail to keep updated.
  44. >
  45. >Thanks.
  46. >
  47. >-kwh-
  48. >-- 
  49. >Kevin W. Hammond
  50. >hammond@kwhpc.caseng.com
  51. >
  52. >                 Looking for a real operating system?  Try Linux.
  53. >
  54. >  CASE Engineering * 575 W. Madison #1601 * Chicago, IL 60661 * (312)902-2161
  55.  
  56. I get these errors as well. I have installed the kernel sources and
  57. gcc 2.2.2d using install.2.x and removed the -nostdinc -Ixxx flags from
  58. the makefile(s). I haven't applied any patches (that I know of) to my
  59. .97 kernel. Is there something missing or is this something new?
  60.  
  61. Piers.
  62. -- 
  63. Disclaimer: These views are my own and not necessarily
  64.             those of the company for which I work.
  65.