From: won@cs.columbia.edu (Won Y. Kim)
Subject: libg++ installation problems (still!)
Organization: Columbia University Department of Computer Science
Date: Sat, 26 Sep 1992 16:21:36 GMT


Some days ago, I posted the problem concerning installing the GNU
libg++-2.2 on the AmigaUnix using gcc2.2.2.

gcc2.2.2 compiled fine (i.e. produced an executable) but libg++2.2 does
not seem to compile fo some reason.

I uncompressed libg++2.2 and issued "$ configure amigaunix"
I then issued "$ make all CFLAGS="-v" " inside the libg++ directory.

This did not work. (nor did issuing the make cmd in the base 
~/libg++-2.2/ directory, that failed also. I don't have the transcript 
of it however.)

The solution that I have been getting, which was disable the -g option
from the compilation (I did this by  make all CFLAGS="-v")

This still did not work! (although it went longer this time! :-)

The compilation started inside ~/libg++-2.2/libg++ seemed to work, but
fails many steps later when it tries to compile libg++/iostream/makebuf.C.
with ../g++-include/sys/stat.h (which also includes <sys/stat.h>)
and it seems to cough on that particular AT&T include file.

I obviously can't post AT&T src code.

I do not know if this is a problem with stat.h or what, or if I forgot
to install some crucial files from gcc-2.2.2, (so I am recompiling it
now..) 

I am in the stage of testing the stat.h from /usr/include/stat.h, but
I do not know what the problem is!

Here's the part that failed.
If anyone has any ideas What I might be doing wrong, please enlighten me!

				Thanks in advance!
				- Won.

P.S. If at all possible, please post AND email all replies. Thanks.

-------------------------------------------------------------------------
	gcc -v -nostdinc++ -I. -I.. -I. -I./../src -I./../g++-include -c  stream.C
gcc version 2.2.2
 cpp -lang-c++ -nostdinc++ -v -I. -I.. -I. -I./../src -I./../g++-include -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dm68k -Dunix -DAMIX -D__m68k__ -D__unix__ -D__AMIX__ -D__m68k -D__unix -D__AMIX -Amachine(m68k) -Acpu(m68k) -Asystem(unix) -Alint(off) -D__HAVE_68881__ stream.C /var/tmp/cca000MK.i
GNU CPP version 2.2.2 (68k, SGS/AT&T syntax)
 cc1plus /var/tmp/cca000MK.i -quiet -dumpbase stream.cc -version -o /var/tmp/cca000MK.s
GNU C++ version 2.2.2 (68k, SGS/AT&T syntax) compiled by GNU C version 1.40.5.
 /usr/ccs/bin/as -V -Qy -o stream.o /var/tmp/cca000MK.s
as: C Development Set  (CDS) 5.0 1/2/90


	gcc -v -nostdinc++ -I. -I.. -I. -I./../src -I./../g++-include -c  makebuf.C
gcc version 2.2.2
 cpp -lang-c++ -nostdinc++ -v -I. -I.. -I. -I./../src -I./../g++-include -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dm68k -Dunix -DAMIX -D__m68k__ -D__unix__ -D__AMIX__ -D__m68k -D__unix -D__AMIX -Amachine(m68k) -Acpu(m68k) -Asystem(unix) -Alint(off) -D__HAVE_68881__ makebuf.C /var/tmp/cca000MO.i
GNU CPP version 2.2.2 (68k, SGS/AT&T syntax)
 cc1plus /var/tmp/cca000MO.i -quiet -dumpbase makebuf.cc -version -o /var/tmp/cca000MO.s
GNU C++ version 2.2.2 (68k, SGS/AT&T syntax) compiled by GNU C version 1.40.5.
In file included from ./../g++-include/sys/stat.h:14, from makebuf.C:27:
/usr/include/sys/stat.h:211: `path' undeclared, outside of functions
/usr/include/sys/stat.h:211: `buf' undeclared, outside of functions
/usr/include/sys/stat.h:212: parse error before `;'
/usr/include/sys/stat.h:214: parse error before `{'
/usr/include/sys/stat.h:216: warning: data definition has no type or storage class
/usr/include/sys/stat.h:217: parse error before `return'
/usr/include/sys/stat.h:223: parse error before `;'
/usr/include/sys/stat.h:225: parse error before `{'
/usr/include/sys/stat.h:227: redefinition of `ret'
/usr/include/sys/stat.h:216: here is the previous declaration of `ret'
/usr/include/sys/stat.h:227: multiple initializations given for `ret'
/usr/include/sys/stat.h:227: warning: data definition has no type or storage class
/usr/include/sys/stat.h:228: parse error before `return'
/usr/include/sys/stat.h:233: `fd' undeclared, outside of functions
/usr/include/sys/stat.h:234: parse error before `;'
/usr/include/sys/stat.h:236: parse error before `{'
/usr/include/sys/stat.h:238: redefinition of `ret'
/usr/include/sys/stat.h:227: here is the previous declaration of `ret'
/usr/include/sys/stat.h:238: multiple initializations given for `ret'
/usr/include/sys/stat.h:238: warning: data definition has no type or storage class
/usr/include/sys/stat.h:239: parse error before `return'
/usr/include/sys/stat.h:244: `mode' undeclared, outside of functions
/usr/include/sys/stat.h:244: `dev' undeclared, outside of functions
/usr/include/sys/stat.h:245: parse error before `;'
/usr/include/sys/stat.h:248: parse error before `{'
/usr/include/sys/stat.h:250: redefinition of `ret'
/usr/include/sys/stat.h:238: here is the previous declaration of `ret'
/usr/include/sys/stat.h:250: multiple initializations given for `ret'
/usr/include/sys/stat.h:250: warning: data definition has no type or storage class
/usr/include/sys/stat.h:251: parse error before `return'
In file included from makebuf.C:27:
./../g++-include/sys/stat.h:42: parse error before `}'
/usr/include/sys/stat.h:167: warning: `int  fstat (int, struct stat*)' declared `static' but never defined
*** Error code 1 (bu21)

make: fatal error.
*** Error code 1 (bu21)

make: fatal error.

galnet:/home/user1/ext/libg++-2.2/libg++>cat /usr/include/sys/stat.h
-- 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Won Kim. Programmer ReProgrammer..
"I am the SuperGrunt. The *ORIGINAL* SuperGrunt. Perhaps you have heard of me?"
						- The Orginal SuperGrunt