Article View: gnu.g++.help
Article #142libg++ and SunOS 4.1.2
From: wayne
Date: Thu, 13 Aug 1992 13:40
Date: Thu, 13 Aug 1992 13:40
58 lines
2580 bytes
2580 bytes
I can't get libg++ 2.2 to make under
the SunOS 4.1.2 . Below is the output from the
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#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.awk
gcc -c -g -I. -I./../include ./dummy.c
(gcc 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
gcc -c -g -I. -I./../include basename.c
gcc -c -g -I. -I./../include getopt.c
gcc -c -g -I. -I./../include getopt1.c
gcc -c -g -I. -I./../include obstack.c
gcc -c -g -I. -I./../include spaces.c
gcc -c -g -I. -I./../include concat.c
gcc -c -g -I. -I./../include fdmatch.c
gcc -c -g -I. -I./../include argv.c
gcc -c -g -I. -I./../include strerror.c
gcc -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
gcc -c -g -I. -I./../include memmove.c
gcc -c -g -I. -I./../include strtoul.c
gcc -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 strerror.o strsignal.o memmove.o strtoul.o alloca.o
ranlib libiberty.a
rootme=`pwd` ; export rootme; CC="gcc `if [ -f ${rootme}/../gcc/gcc ] ; then echo -I${rootme}/../gcc/include ; else echo ; fi`"; export CC; \
./utils/gen-params >tmp-params.h
gcc: dummy.C: linker input file unused since linking not done
nm: dummy.o: cannot open
nm: dummy.o: cannot open
nm failed to find FUNC in dummy.o!
./utils/gen-params: -1: bad number
*** Error code 1
make: Fatal error: Command failed for target `_G_config.h'
Current working directory /pub/wayne/tmp/libg++-2.2/libg++
*** Error code 1
make: Fatal error: Command failed for target `all-libg++'
Technical Details
Message-ID:
<750@jahangir.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!jahangir!wayneShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!jahangir!wayne From: wayne@jahangir.UUCP (wayne) Newsgroups: gnu.g++.help Subject: libg++ and SunOS 4.1.2 Keywords: help Message-ID: <750@jahangir.UUCP> Date: 13 Aug 92 13:40:14 GMT Organization: MDC, NYC Lines: 58