🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #268

libg++ installation problems on decstation 5000

#268
From: Judy Russell
Date: Wed, 19 Aug 1992 17:56
96 lines
4685 bytes
won@dinka.cs.columbia.edu (Won Y. Kim) says
>the main problem seemed to be was that a file called "dummy.C" in the
>"libg++/" directory.
>did not get compiled properly and failed the next stage with the
>nm command


and tom@soda.berkeley.edu (Tom Holub) says
>If I try to make _G_config.h, I get:
>
>nm: dummy.o: cannot open
>nm: dummy.o: cannot open
>nm failed to find FUNC in dummy.o!
>./utils/gen-params: -1: bad number
>make: *** [_G_config.h] Error 1


ME TOO!

I am using gcc 2.2.2 to try to make libg++-2.2, and I get complaints about
dummy.o too.  My machine is a DECStation 5000 model 240 running ultrix V4.2A
I also tried gcc-2.1 and libg++-2.0 which got me other errors.  I'd
be happy with any working pair.

With gcc 2.2.2 and a make of libg++ 2.2  I get :

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#define NEED_\1\\n#endif\\n" }|'   >>needed2.awk
grep '^DEFFUNC(' < ./functions.def   | sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf \"#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|'   >>needed2.awkcc -Wf,-XNg1000 -c -g -I. -I./../include  ./dummy.c
(cc -Wf,-XNg1000  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 -Wf,-XNg1000 -c -g -I. -I./../include  basename.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  getopt.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  getopt1.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  obstack.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  spaces.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  concat.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  fdmatch.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  argv.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  strerror.c
cc -Wf,-XNg1000 -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 -Wf,-XNg1000 -c -g -I. -I./../include  strdup.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 strerror.o strsignal.o strdup.o
ranlib libiberty.a
rootme=`pwd` ; export rootme; CC="cc -Wf,-XNg1000 `if [ -f ${rootme}/../gcc/gcc
] ;  then echo -I${rootme}/../gcc/include ;  else echo ; fi`"; export CC;  ./utils/gen-params  >tmp-params.h
ldopen: cannot open dummy.o
nm: Error: cannot open dummy.o
ldopen: cannot open dummy.o
nm: Error: cannot open dummy.o
nm failed to find FUNC in dummy.o!
sh: -1: bad number
*** Error code 1
 
Stop.

And with gcc gcc-2.1 and a make of libg++-2.0 I get


gcc -I. -I./../iostream -I./../g++-include  -c RndInt.cc
gcc -I. -I./../iostream -I./../g++-include  -c Fix.cc
gcc -I. -I./../iostream -I./../g++-include  -c Fix16.cc
gcc -I. -I./../iostream -I./../g++-include  -c Fix24.cc
gcc -I. -I./../iostream -I./../g++-include  -c CursesW.cc
gcc -I. -I./../iostream -I./../g++-include  -c GetOpt.cc
gcc -I. -I./../iostream -I./../g++-include  -c new.cc
gcc -I. -I./../iostream -I./../g++-include  -c delete.cc
gcc -I. -I./../iostream -I./../g++-include  -c chr.cc
gcc -I. -I./../iostream -I./../g++-include  -c dtoa.cc
dtoa.cc: In function `char * dtoa (double, char (=  103 ), int (=  0 ), int (=  6 ))':
dtoa.cc:38: size of array `fwork' is negative
dtoa.cc:42: size of array `iwork' is negative
dtoa.cc:50: size of array `ework' is negative
*** Error code 1

Stop.
*** Error code 1

I'd appreciate any help,

judy
-------------------------------------------------------------------------------
Judy Russell                            Internet:  judy@qucis.queensu.ca
Dept of Computing                       Bitnet:    judy@qucis.bitnet
and Information Science                 Phone:     613-545-6734
Queen's University, Kingston, Ontario, Canada
-------------------------------------------------------------------------------
Technical Details
Message-ID: <1992Aug19.175653.749@qucis.queensu.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!qucis.queensu.ca!judy

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!qucis.queensu.ca!judy
From: judy@qucis.queensu.ca (Judy Russell)
Subject: libg++ installation problems on decstation 5000
Message-ID: <1992Aug19.175653.749@qucis.queensu.ca>
Sender: gnulists@ai.mit.edu
Organization: Computing & Information Science, Queen's University at Kingston
Distribution: gnu
Date: Wed, 19 Aug 1992 17:56:53 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 97