Article View: gnu.utils.bug
Article #965bison-1.19 doesn't build under HP-UX (with fix)
From: Cliff Krumvieda
Date: Tue, 29 Sep 1992 06:05
Date: Tue, 29 Sep 1992 06:05
42 lines
2413 bytes
2413 bytes
Howdy: I had some trouble building bison-1.19 on an HP 9000/834 running HP-UX 7.00: ====================================================================== gcc -O -c -g -DSTDC_HEADERS=1 -DUSG=1 -DHAVE_STRERROR=1 -I./../include LR0.c cc1: warning: `-g' option not supported on this version of GCC gcc -O -c -g -DSTDC_HEADERS=1 -DUSG=1 -DHAVE_STRERROR=1 -I./../include allocate.c cc1: warning: `-g' option not supported on this version of GCC gcc -O -c -g -DSTDC_HEADERS=1 -DUSG=1 -DHAVE_STRERROR=1 -I./../include closure.c cc1: warning: `-g' option not supported on this version of GCC gcc -O -c -g -DSTDC_HEADERS=1 -DUSG=1 -DHAVE_STRERROR=1 -I./../include conflicts.c cc1: warning: `-g' option not supported on this version of GCC gcc -O -c -g -DSTDC_HEADERS=1 -DUSG=1 -DHAVE_STRERROR=1 -I./../include derives.c cc1: warning: `-g' option not supported on this version of GCC gcc -O -c -g -DXPFILE=\"/usr/local/gnu/bison-1.19/lib/bison.simple\" -DXPFILE1=\"/usr/local/gnu/bison-1.19/lib/bison.hairy\" ./files.c -o files.o In file included from ./files.c:33: ./system.h:12: strings.h: No such file or directory make: *** [files.o] Error 1 ====================================================================== The problem seems to be that "$(DEFS)" was left out of the rule for files.o: ====================================================================== files.o: files.c $(CC) -c $(CFLAGS) $(PFILES) $(srcdir)/files.c $(OUTPUT_OPTION) ====================================================================== instead of, say: ====================================================================== .c.o: $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir)/../include $< ====================================================================== Adding "$(DEFS)" to the files.o rule fixed the problem (system.h, included by files.c, needed to know that it was being read by a USG system). --Cliff
Technical Details
Message-ID:
<9209291405.AA14447@ask.cs.cornell.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.cornell.edu!cliffShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.cornell.edu!cliff From: cliff@cs.cornell.edu (Cliff Krumvieda) Subject: bison-1.19 doesn't build under HP-UX (with fix) Message-ID: <9209291405.AA14447@ask.cs.cornell.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 29 Sep 1992 06:05:18 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 43