9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] My hoc not compiling: pcc errors?
Date: Wed, 12 Dec 2007 10:21:40 -0500	[thread overview]
Message-ID: <20071212152142.EB2571E8C63@holo.morphisms.net> (raw)
In-Reply-To: <88851565-075B-482A-B77A-B92FA54EB3F4@mac.com>

> 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


      reply	other threads:[~2007-12-12 15:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-12  2:47 Pietro Gagliardi
2007-12-12 15:21 ` Russ Cox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071212152142.EB2571E8C63@holo.morphisms.net \
    --to=rsc@swtch.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).