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