From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] My hoc not compiling: pcc errors? From: "Russ Cox" Date: Wed, 12 Dec 2007 10:21:40 -0500 In-Reply-To: <88851565-075B-482A-B77A-B92FA54EB3F4@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20071212152142.EB2571E8C63@holo.morphisms.net> Topicbox-Message-UUID: 1621c39c-ead3-11e9-9d60-3106f5b1d025 > Hello. I was working on generalizing my version of hoc so that you > can have strings, numbers, and sets all in an expression. But when I > tried to compile it, I got strange errors about undefined standard > functions. I looked at the include files and at the pcc -E output, > and they show declarations. > pcc $LDFLAGS -o hoc y.tab.8 code.8 gamma.8 init.8 math.8 symbol.8 > yytokname: undefined: sprintf in yytokname > errcheck: undefined: strerror in errcheck > ungetc: undefined: _IO_setvbuf in ungetc > stat: _IO_stream: not defined For some reason the current /n/sources/plan9/386/lib/ape/libap.a is missing a few object files. You can correct this yourself by cd /sys/src/ape/lib/ap mk mk clean Russ