MOO-cows Mailing List Archive


[ Re: Fileio and 1.8.0p6]

------- Start of forwarded message -------
From: Andrew Wilson <>
Subject: Re: Fileio and 1.8.0p6
To: Tijmen Ramakers <>
Date: Mon, 17 Mar 1997 10:52:49 PST
In-Reply-To: <> from "Tijmen Ramakers" at Mar 17, 97 02:27:38 am
X-Mailer: ELM [version 2.4 PL24 ME8a]
Content-Type: text
Precedence: bulk

Always tell people what operating system you're using...

Under FreeBSD-2.1.7 the fix is to add:

#include <errno.h>

to the list of headers in extension-fileio.c

Then change 'umode_t' to 'mode_t', wherever it appears in extension-fileio.c

Then change 'file_list_select(const struct dirent *d)' to

'file_list_select(struct dirent *d)' in extension-fileio.c

I'd mail a patch, but Ken's gonna have a new version out soon mebbies,
perhaps, whenever.


Tijmen Ramakers:
> When trying to compile p6 with the file-io extension I get the following 
> error:
> gcc -Wall -Wwrite-strings -g -O -c extension-fileio.c
> extension-fileio.c: In function `file_raise_errno':
> extension-fileio.c:303: `errno' undeclared (first use this function)
> extension-fileio.c:303: (Each undeclared identifier is reported only once
> extension-fileio.c:303: for each function it appears in.)
> extension-fileio.c: At top level:
> extension-fileio.c:1112: parse error before `st_mode'
> extension-fileio.c: In function `file_type_string':
> extension-fileio.c:1113: `st_mode' undeclared (first use this function)
> extension-fileio.c: At top level:
> extension-fileio.c:1127: parse error before `st_mode'
> extension-fileio.c: In function `file_mode_string':
> extension-fileio.c:1131: `st_mode' undeclared (first use this function)
> extension-fileio.c: In function `bf_file_list':
> extension-fileio.c:1345: warning: passing arg 3 of `scandir' from 
> incompatible pointer type
> *** Error code 1
> Stop.
> Is this because of differences between p5 and p6 or is there something 
> I'm doing wrong?
> Tijmen Ramakers
------- End of forwarded message -------

Home | Subject Index | Thread Index