[gnu.g++] Problems installing libg++ with Sun OS 3.4

menzee@thor.acc.stolaf.edu (Ed Menze) (04/30/89)

I am trying to install g++ and its library on a Sun-3 running OS release 3.4. 

Installation of gcc (1.34) and g++ (1.34.2) worked without any problems.

When building libg++ (1.34.0), I get the following errors:

--------------------------------
g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -c  File.cc
/usr/include/sys/fcntl.h:64: warning: type declaration of flock shadows previous declaration
/usr/include/sys/fcntl.h:64: warning: `flock' was declared `extern' and later `static'
In method File::File (int, char *, enum io_mode):

.
.
.

g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -c  Integer.cc
../g++-include/Integer.h:187: friend `even' implicitly overloaded
../g++-include/builtin.h:122: after declaration of non-overloaded `int even (long int)'
../g++-include/Integer.h:188: friend `odd' implicitly overloaded
../g++-include/builtin.h:127: after declaration of non-overloaded `int odd (long int)'
*** Error code 1

Stop.
*** Error code 1

Stop.
--------------------------------

Can anyone offer a clue as to what I might be doing wrong?


---------------------------------------------------------------------

Ed Menze			menzee@carleton.edu
Carleton College		menzee@stolaf.edu
Northfield, MN  55057
(507) 663-5155

kevin%kalli@Sun.COM (Kevin Sheehan {Consulting Poster Child}) (05/01/89)

In article <1956@thor.acc.stolaf.edu> menzee@thor.acc.stolaf.edu (Ed Menze) writes:

I get the same problems on sun3/4.0 with the same critters. Any help out there?

	l & h,
	kev

>
>When building libg++ (1.34.0), I get the following errors:
>
>--------------------------------
>g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -c  File.cc
>/usr/include/sys/fcntl.h:64: warning: type declaration of flock shadows previous declaration
>/usr/include/sys/fcntl.h:64: warning: `flock' was declared `extern' and later `static'
>In method File::File (int, char *, enum io_mode):
>
> ...
>
>g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -c  Integer.cc
>../g++-include/Integer.h:187: friend `even' implicitly overloaded
>../g++-include/builtin.h:122: after declaration of non-overloaded `int even (long int)'
>../g++-include/Integer.h:188: friend `odd' implicitly overloaded
>../g++-include/builtin.h:127: after declaration of non-overloaded `int odd (long int)'

bletch, etc.