Topic: libg++ 2.6.2 installation problems
Author: tong@fw.bluestone.com (Thomas Tong)
Date: 1995/07/25 Raw View
Hi everyone,
I'm trying to install gcc2.6.3 and libg++2.6.2 onto a
SunOS4.1.3. and having a bit of a problem. First of all, I'm
not root, so I'm installing this under /tools/tong/gcc-2.6.3,
and the libg++ is under /tools/tong/gcc-2.6.3/libg++-2.6.2 .
The gcc2.6.3 compiled OK by setting the "prefix" value
in the Makefile to /tools/tong/gcc-2.6.3 . The libg++'s 'con-
figure' script's "prefix" value was also changed to same, thus
all the Makefiles created by 'configure' also has the "prefix"
values pointing to /tools/tong/gcc-2.6.3 .
The compiling of libg++ goes happily along when I encounter
this error message:
gcc -c -g -nostdinc++ -I. -I/tools/tong/gcc-2.6.3/include
-I../../libio -I. -I./../../libio -I./../src AllocRing.cc
In file included from
/tools/tong/gcc-2.6.3/include/sys/fcntlcom.h:156,
from /usr/include/fcntl.h:6,
from ./std.h:29,
from AllocRing.cc:23:
/tools/tong/gcc-2.6.3/include/unistd.h:86: previous declaration of
`int chmod(const char *, short unsigned int)' with C++ linkage
/tools/tong/gcc-2.6.3/include/sys/stat.h:92: conflicts with new
declaration with C linkage
I opened all the files mentioned above to see what may be the
problem, but it's not obvious to me. Some of those files (sys/stat.h
& unistd.h) uses a #define _PARAMS. But I don't think that's the
problem. If any of you out there knows of this problem, please
let me know :)
Thanks in advance.
===============================================================
Thomas Tong Phone: (609) 727-4600
Bluestone
1000 Briggs Road Email: tong@bluestone.com
Mt. Laurel, NJ 08054
Web: http://www.bluestone.com/
===============================================================