home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / gcc / help / 2788 < prev    next >
Encoding:
Text File  |  1992-12-21  |  3.8 KB  |  92 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!umn.edu!csus.edu!netcom.com!jimlynch
  3. From: jimlynch@netcom.com (Jim Lynch)
  4. Subject: Problem with compiling libg++-2.2 and 2.3...
  5. Message-ID: <1992Dec21.022411.7842@netcom.com>
  6. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  7. Distribution: gnu
  8. Date: Mon, 21 Dec 1992 02:24:11 GMT
  9. Lines: 81
  10.  
  11. ... I'm compiling it on my dialup account which is a sparc-sun-sunos4.1.3.
  12.  
  13. A full make transcript follows, but I'll put the actual problem part here too:
  14.  
  15. gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c AllocRing.cc
  16. In file included from ./../g++-include/sys/types.h:15, from /usr/include/unistd.
  17. h:72, from ./../g++-include/unistd.h:25, from ./std.h:28, from AllocRing.cc:22:
  18. /usr/include/sys/types.h:24: conflicting types for `wchar_t'
  19. ./../g++-include/stddef.h:11: previous declaration of `wchar_t'
  20.  
  21. The gcc mentioned above happens to be gcc-2.3.2.
  22.  
  23. Now, here's the full make transcript:
  24.  
  25. {Netcom:17} configure sparc-sun-sunos4.1.3
  26. Created "Makefile" in /u31/jimlynch/libg++-2.2
  27. {Netcom:18} make
  28. echo "# !Automatically generated from ./functions.def"\
  29.   "- DO NOT EDIT!" >needed2.awk
  30. grep '^DEFVAR(' < ./functions.def \
  31.  | sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf \"#ifndef NEED_\1\\n#defin
  32. e NEED_\1\\n#endif\\n" }|' \
  33.  >>needed2.awk
  34. grep '^DEFFUNC(' < ./functions.def \
  35.  | sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf \"#ifndef NEED_\1\\n#def
  36. ine NEED_\1\\n#endif\\n" }|' \
  37.  >>needed2.awk
  38. cc -c -g -I. -I./../include  ./dummy.c
  39. (cc  dummy.o  ) >errors 2>&1 || true
  40. rm -f a.out dummy.o
  41. echo "/* !Automatically generated from ./functions.def"\
  42.   "- DO NOT EDIT! */" >config.h
  43. awk -f needed2.awk <errors >>config.h
  44. cc -c -g -I. -I./../include  basename.c
  45. cc -c -g -I. -I./../include  getopt.c
  46. cc -c -g -I. -I./../include  getopt1.c
  47. cc -c -g -I. -I./../include  obstack.c
  48. cc -c -g -I. -I./../include  spaces.c
  49. cc -c -g -I. -I./../include  concat.c
  50. cc -c -g -I. -I./../include  fdmatch.c
  51. cc -c -g -I. -I./../include  argv.c
  52. cc -c -g -I. -I./../include  strerror.c
  53. cc -c -g -I. -I./../include  strsignal.c
  54. echo "# !Automatically generated from ./functions.def"\
  55.   "- DO NOT EDIT!" >needed.awk
  56. grep '^DEF(' < ./functions.def \
  57.     | sed -e '/DEF/s|DEF.\([^,]*\).*|/\1/ { printf \"\1\.o " }|' \
  58.     >>needed.awk
  59. awk -f needed.awk <errors >needed-list
  60. echo  >>needed-list
  61. cc -c -g -I. -I./../include  memmove.c
  62. cc -c -g -I. -I./../include  strtoul.c
  63. cc -c -g -I. -I./../include  alloca.c
  64. rm -rf libiberty.a
  65. ar qc libiberty.a \
  66.   basename.o getopt.o getopt1.o obstack.o spaces.o concat.o  fdmatch.o argv.o st
  67. rerror.o strsignal.o memmove.o strtoul.o alloca.o
  68. ranlib libiberty.a
  69. rootme=`pwd` ; export rootme; CC="gcc `if [ -f ${rootme}/../gcc/gcc ] ;  then ec
  70. ho -I${rootme}/../gcc/include ;  else echo ; fi`"; export CC; \
  71. ./utils/gen-params  >tmp-params.h
  72. In file included from dummy.c:4:
  73. /usr/include/stdio.h:25: warning: `NULL' redefined
  74. /u31/jimlynch/lib/gcc-lib/sparc-sun-sunos4.1.3/2.3.2/include/stddef.h:187: warni
  75. ng: this is the location of the previous definition
  76. mv tmp-params.h _G_config.h
  77. gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c AllocRing.cc
  78. In file included from ./../g++-include/sys/types.h:15, from /usr/include/unistd.
  79. h:72, from ./../g++-include/unistd.h:25, from ./std.h:28, from AllocRing.cc:22:
  80. /usr/include/sys/types.h:24: conflicting types for `wchar_t'
  81. ./../g++-include/stddef.h:11: previous declaration of `wchar_t'
  82. *** Error code 1
  83. make: Fatal error: Command failed for target `AllocRing.o'
  84. Current working directory /u31/jimlynch/libg++-2.2/libg++/src
  85. *** Error code 1
  86. make: Fatal error: Command failed for target `in-src'
  87. Current working directory /u31/jimlynch/libg++-2.2/libg++
  88. *** Error code 1
  89. make: Fatal error: Command failed for target `all-libg++'
  90. .
  91.  
  92.