From: adams@ee.utah.edu (Mike Adams)
Subject: (none)
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 1 Sep 1992 12:27:42 GMT

Script started on Tue Sep  1 17:38:05 1992

To whom it may concern: In trying to install the gdb tools on an HP9000 375
using hpux 8.0 I ran into the following makefile bug.  Please send me a reply
if you can be at all helpful.  





adams@btsswsf: cd gdb-4.6
adams@btsswsf: ls
Makefile.in      config.sub*      glob/            readline/
README           configure*       include/         texinfo/
bfd/             configure.in     libiberty/
cfg-paper.texi   configure.man    mmalloc/
config/          gdb/             move-if-change*
adams@btsswsf: configure hp9k375
Created "Makefile" in /users/adams/gnu/gdb_tools/gdb-4.6
adams@btsswsf: 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
        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  getpagesize.c
        cc -c -g -I. -I./../include  insque.c
        cc -c -g -I. -I./../include  random.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 strerror.o strsignal.o getpagesize.o insque.o random.o alloca.o 
        ranlib libiberty.a
ranlib: ar already did it for you, see ar(1).
        cc -c -g -I. -I./../include  mcalloc.c
        cc -c -g -I. -I./../include  mfree.c
        cc -c -g -I. -I./../include  mmalloc.c
        cc -c -g -I. -I./../include  mmcheck.c
        cc -c -g -I. -I./../include  mmemalign.c
        cc -c -g -I. -I./../include  mmstats.c
        cc -c -g -I. -I./../include  mmtrace.c
        cc -c -g -I. -I./../include  mrealloc.c
        cc -c -g -I. -I./../include  mvalloc.c
        cc -c -g -I. -I./../include  mmap-sup.c
        cc -c -g -I. -I./../include  attach.c
        cc -c -g -I. -I./../include  detach.c
        cc -c -g -I. -I./../include  keys.c
        cc -c -g -I. -I./../include  sbrk-sup.c
        rm -rf libmmalloc.a
        ar qc libmmalloc.a mcalloc.o mfree.o mmalloc.o mmcheck.o mmemalign.o mmstats.o  mmtrace.o mrealloc.o mvalloc.o mmap-sup.o attach.o detach.o  keys.o sbrk-sup.o
        ranlib libmmalloc.a
ranlib: ar already did it for you, see ar(1).
Make:  Don't know how to make all.  Stop.
*** Error code 1

Stop.
adams@btsswsf: exit
adams@btsswsf: 
script done on Tue Sep  1 17:41:04 1992


Newsgroups: gnu.gdb.bug