🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jim Lynch Mon, 21 Dec 1992 02:24
Problem with compiling libg++-2.2 and 2.3...
#789
Author: Jim Lynch
Date: Mon, 21 Dec 1992 02:24
80 lines
3955 bytes
... I'm compiling it on my dialup account which is a sparc-sun-sunos4.1.3.

A full make transcript follows, but I'll put the actual problem part here too:

gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c AllocRing.cc
In file included from ./../g++-include/sys/types.h:15, from /usr/include/unistd.
h:72, from ./../g++-include/unistd.h:25, from ./std.h:28, from AllocRing.cc:22:
/usr/include/sys/types.h:24: conflicting types for `wchar_t'
./../g++-include/stddef.h:11: previous declaration of `wchar_t'

The gcc mentioned above happens to be gcc-2.3.2.

Now, here's the full make transcript:

{Netcom:17} configure sparc-sun-sunos4.1.3
Created "Makefile" in /u31/jimlynch/libg++-2.2
{Netcom:18} make
echo "# !Automatically generated from ./functions.def"\
  "- DO NOT EDIT!" >needed2.awk
grep '^DEFVAR(' < ./functions.def \
 | sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf \"#ifndef NEED_\1\\n#defin
e NEED_\1\\n#endif\\n" }|' \
 >>needed2.awk
grep '^DEFFUNC(' < ./functions.def \
 | sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf \"#ifndef NEED_\1\\n#def
ine NEED_\1\\n#endif\\n" }|' \
 >>needed2.awk
cc -c -g -I. -I./../include  ./dummy.c
(cc  dummy.o  ) >errors 2>&1 || true
rm -f a.out dummy.o
echo "/* !Automatically generated from ./functions.def"\
  "- DO NOT EDIT! */" >config.h
awk -f needed2.awk <errors >>config.h
cc -c -g -I. -I./../include  basename.c
cc -c -g -I. -I./../include  getopt.c
cc -c -g -I. -I./../include  getopt1.c
cc -c -g -I. -I./../include  obstack.c
cc -c -g -I. -I./../include  spaces.c
cc -c -g -I. -I./../include  concat.c
cc -c -g -I. -I./../include  fdmatch.c
cc -c -g -I. -I./../include  argv.c
cc -c -g -I. -I./../include  strerror.c
cc -c -g -I. -I./../include  strsignal.c
echo "# !Automatically generated from ./functions.def"\
  "- DO NOT EDIT!" >needed.awk
grep '^DEF(' < ./functions.def \
    | sed -e '/DEF/s|DEF.\([^,]*\).*|/\1/ { printf \"\1\.o " }|' \
    >>needed.awk
awk -f needed.awk <errors >needed-list
echo  >>needed-list
cc -c -g -I. -I./../include  memmove.c
cc -c -g -I. -I./../include  strtoul.c
cc -c -g -I. -I./../include  alloca.c
rm -rf libiberty.a
ar qc libiberty.a \
  basename.o getopt.o getopt1.o obstack.o spaces.o concat.o  fdmatch.o argv.o st
rerror.o strsignal.o memmove.o strtoul.o alloca.o
ranlib libiberty.a
rootme=`pwd` ; export rootme; CC="gcc `if [ -f ${rootme}/../gcc/gcc ] ;  then ec
ho -I${rootme}/../gcc/include ;  else echo ; fi`"; export CC; \
./utils/gen-params  >tmp-params.h
In file included from dummy.c:4:
/usr/include/stdio.h:25: warning: `NULL' redefined
/u31/jimlynch/lib/gcc-lib/sparc-sun-sunos4.1.3/2.3.2/include/stddef.h:187: warni
ng: this is the location of the previous definition
mv tmp-params.h _G_config.h
gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c AllocRing.cc
In file included from ./../g++-include/sys/types.h:15, from /usr/include/unistd.
h:72, from ./../g++-include/unistd.h:25, from ./std.h:28, from AllocRing.cc:22:
/usr/include/sys/types.h:24: conflicting types for `wchar_t'
./../g++-include/stddef.h:11: previous declaration of `wchar_t'
*** Error code 1
make: Fatal error: Command failed for target `AllocRing.o'
Current working directory /u31/jimlynch/libg++-2.2/libg++/src
*** Error code 1
make: Fatal error: Command failed for target `in-src'
Current working directory /u31/jimlynch/libg++-2.2/libg++
*** Error code 1
make: Fatal error: Command failed for target `all-libg++'
.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads