home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / gnu / gcc / help / 2314 < prev    next >
Encoding:
Internet Message Format  |  1992-10-12  |  2.9 KB

  1. Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!nigel.msen.com!emory!ogicse!plains!plains.NoDak.edu!rand
  2. From: rand@plains.NoDak.edu (Douglas K. Rand)
  3. Newsgroups: gnu.gcc.help
  4. Subject: Problem building libg++ 2.2 with gcc 2.2.2
  5. Summary: Definition for ioctl conflicts.
  6. Keywords: gcc libg++ HELP!
  7. Message-ID: <21152@plains.NoDak.edu>
  8. Date: 12 Oct 92 19:38:41 GMT
  9. Sender: Unknown@plains.NoDak.edu
  10. Distribution: gnu
  11. Organization: North Dakota Higher Education Computing Network
  12. Lines: 37
  13. Nntp-Posting-Host: plains.nodak.edu
  14.  
  15. I'm having difficulities building libg++ 2.2. I have gcc 2.2.2 installed and
  16. working. (I think it works anyway.) I have also installed glibc 1.05, which 
  17. worked just fine. However, I get the following error while building libg++.
  18.  
  19. It seems taht the definition for ioctl conflicts between glibc and libg++.
  20. (Oh, this is a Sun 670 running SunOS 4.1.2.) Here are the definitions for 
  21. ioctl in the include files:
  22.  
  23. /usr/local/include/sys/ioctl.h:  int __ioctl __P ((int __fd, int __request, __ptr_t __arg));
  24. /usr/local/include/sys/ioctl.h:  int __P ioctl ((int __fd, int __request, __ptr_t __arg));
  25. libg++-2.2/g++-include/unistd.h: extern int ioctl (int, int ...);
  26.  
  27. Here is the last part of the make transcipt that produces the error. Sure I
  28. can go and edit the include file(s) to make it compile, but there is probably
  29. something else wrong. Am I using incompatable versions of these things? 
  30.  
  31. gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c CursesW.cc
  32. In file included from ./../g++-include/fcntl.h:14, from ./std.h:31, from ./builtin.h:32, from CursesW.cc:22:
  33. /usr/local/include/fcntl.h:111: warning: `fcntl' redefined
  34. ./../g++-include/fcntl.h:8: warning: this is the location of the previous definition
  35. /usr/local/include/fcntl.h:112: warning: `open' redefined
  36. ./../g++-include/fcntl.h:9: warning: this is the location of the previous definition
  37. In file included from /usr/local/include/sgtty.h:23, from /usr/include/curses.h:13, from ./../g++-include/curses.h:10, from ./CursesW.h:26, from CursesW.cc:30:
  38. /usr/local/include/sys/ioctl.h:105: conflicting types for `int  ioctl (int, int, void *)'
  39. ./../g++-include/unistd.h:103: previous declaration of `int  ioctl (int, int, ...)'
  40. gnumake[2]: *** [CursesW.o] Error 1
  41. gnumake[2]: Leaving directory `/usr/local/src/libg++-2.2/libg++/src'
  42. gnumake[1]: *** [in-src] Error 1
  43. gnumake[1]: Leaving directory `/usr/local/src/libg++-2.2/libg++'
  44. gnumake: *** [all-libg++] Error 1
  45. gnumake: Leaving directory `/usr/local/src/libg++-2.2'
  46. -- 
  47. Douglas K. Rand    University of North Dakota -- Center for Aerospace Sciences
  48. UNIX/VMS System Administrator                    And sleepless gradute student
  49. Phone: +1 701 777 2814                   US Snail: Box 8216 University Station
  50.        +1 218 773 0120                             Grand Forks, ND  58202-8216
  51. NFS Net: rand@plains.NoDak.Edu                     UUCP: ...!uunet!plains!rand
  52.