9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Jerry W Johnson jwjohn@ecst.csuchico.edu
Subject: U9fs Compile Help?
Date: Mon,  7 Mar 1994 21:09:29 -0500	[thread overview]
Message-ID: <19940308020929.1vU8rKD4bJW_2cerRGS-jZfMQ_GNbShzQYLC_hH6gtQ@z> (raw)

Hi,
we've essentially got plan9 right out of the box (not a lot of
kernel changes). Anyway, while trying to compile u9fs on an hp-715
running hp-ux 9.01, the following error is displayed:
cc: "u9fs.c", line 50: error 1000: Unexpected symbol: "DIR".
cc: "u9fs.c", line 50: error 1573: Type of "dir" is undefined.
cc: "u9fs.c", line 50: error 1578: Size of member is unknown.
cc: "u9fs.c", line 67: error 1574: Unknown size for "stbuf".
cc: "u9fs.c", line 67: error 1578: Size of member is unknown.
cc: "u9fs.c", line 369: error 1000: Unexpected symbol: "int".
cc: "u9fs.c", line 368: error 1588: "DIR" undefined.
cc: "u9fs.c", line 368: error 1588: "dir" undefined.
cc: "u9fs.c", line 369: error 1588: "m" undefined.
cc: "u9fs.c", line 372: error 1558: The ! operator takes a scalar operand.
cc: "u9fs.c", line 369: error 1588: "trunc" undefined.
cc: "u9fs.c", line 376: error 1530: Undefined struct or union.
cc: "u9fs.c", line 376: error 1588: "S_IFCHR" undefined.
cc: "u9fs.c", line 376: error 1563: Expression in if must be scalar.
cc: "u9fs.c", line 380: error 1567: Switch expression must be an integral type.
cc: "u9fs.c", line 401: warning 563: Argument #1 is not the correct type.

The source has been updated with some changes Rob Pike sent out last 
August(?), and is otherwise unchanged. Here is the modified makefile:
CFLAGS=-N -I. -I/usr/include -I/usr/include/sys -Aa  -DBIGEND -DSYSV -DNEEDPROTO -DLOG='"/tmp/u9fs.log"'

u9fs:	u9fs.o conv.o memmove.o mfmt.o 
	cc -o u9fs u9fs.o conv.o memmove.o mfmt.o -lbsd

%.o:	%.c  u.h libc.h 9p.h 
	cc -c $(CFLAGS) $<

Any suggestions, please? Any "gotcha's" I should be aware of?
TIA. Cheers, --Jerry




                 reply	other threads:[~1994-03-08  2:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=19940308020929.1vU8rKD4bJW_2cerRGS-jZfMQ_GNbShzQYLC_hH6gtQ@z \
    --to=9fans@9fans.net \
    /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).