9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] My hoc not compiling: pcc errors?
@ 2007-12-12  2:47 Pietro Gagliardi
  2007-12-12 15:21 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Pietro Gagliardi @ 2007-12-12  2:47 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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.

The archive is /n/sources/contrib/pietro/hoc_experimental.bundle
The errors are in /n/sources/contrib/pietro/mkout

Does anyone know what's going on?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] My hoc not compiling: pcc errors?
  2007-12-12  2:47 [9fans] My hoc not compiling: pcc errors? Pietro Gagliardi
@ 2007-12-12 15:21 ` Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2007-12-12 15:21 UTC (permalink / raw)
  To: 9fans

> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-12 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-12  2:47 [9fans] My hoc not compiling: pcc errors? Pietro Gagliardi
2007-12-12 15:21 ` Russ Cox

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).