dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]Portable.NET 0.4.6 released


From: Rhys Weatherley
Subject: Re: [DotGNU]Portable.NET 0.4.6 released
Date: Wed, 06 Nov 2002 14:07:27 +1000

Glenn Chambers wrote:

> On FreeBSD 4.4:
> 
> > ../include/il_system.h:138: syntax error before `ILCLIToUnixTime'
> > ../include/il_system.h:138: warning: type defaults to `int' in
> > declaration of `ILCLIToUnixTime'
> > ../include/il_system.h:138: warning: data definition has no type or
> > storage class
> > ../include/il_system.h:141: syntax error before `time'
> > gmake[1]: *** [aes.o] Error 1
> > gmake[1]: Leaving directory `/usr/home/glenn/pnet/pnet-0.4.6/support'
> > gmake: *** [all-recursive] Error 1

Fixed this by removing "time_t" from "il_system.h".  Adding the
include for it would have polluted the namespace too much.

> On NetBSD 1.5:
> 
> > gcc -DHAVE_CONFIG_H -I. -I. -I../include    -I../libgc/include
> > -I../include -g -O2 -Wall -c dir.c
> > dir.c: In function `ILReadDir':
> > dir.c:117: `alocatedResult' undeclared (first use in this function)
> > dir.c:117: (Each undeclared identifier is reported only once
> > dir.c:117: for each function it appears in.)
> > gmake[1]: *** [dir.o] Error 1
> > gmake[1]: Leaving directory `/usr/home/glenn/pnet/pnet-0.4.6/support'
> > gmake: *** [all-recursive] Error 1

Easy fix - done.

> On Solaris 2.8:
> 
> > lib_dir.c: In function `_IL_DirMethods_GetFilesInDirectory':
> > lib_dir.c:233: structure has no member named `d_type'
> > make[1]: *** [lib_dir.o] Error 1
> > make[1]: Leaving directory `/export/home/glennc/pnet/pnet-0.4.6/engine'
> > make: *** [all-recursive] Error 1
> >
> > The Solaris DIRENT man page says:
> >
> >      The  dirent structure is defined:
> >
> >      struct  dirent {
> >              ino_t           d_ino;
> >              off_t           d_off;
> >              unsigned short  d_reclen;
> >              char            d_name[1];
> >      };

Yep, you're right.  The "d_type" field is not portable.  I've
rearranged the directory scanning code to make it more portable
and opaque.

These changes are now in CVS.  Let me know if there is anything else.

Cheers,

Rhys.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]