← Back to team overview

dolfin team mailing list archive

Re: Re: make error with dolfin-0.5.10

 

On Wed, Oct 12, 2005 at 11:44:47PM +0200, Johan Jansson wrote:
> On Wed, Oct 12, 2005 at 04:12:23PM -0500, Anders Logg wrote:
> > The stuct timespec should be defined by time.h, which is included from
> > ctime, which in turn is included in utils.cpp in DOLFIN.
> > 
> > For some reason, the definition of timespec seems to be missing on
> > your system. You could try adding it and see if it works.
> > 
> > Edit line 61 in src/kernel/common/utils.cpp, changing from
> > 
> >     struct timespec req;
> > 
> > to
> >     struct { __time_t tv_sec; long int tv_nsec; } req;
> > 
> > Does that help?
> > 
> > I haven't seen this problem before. Anyone else has a suggestion?
> > 
> > /Anders
> > 
> 
> I don't have a suggestion, but are you running Solaris Dave? We
> haven't tested DOLFIN on that for quite a long time, maybe we're
> including something non-standard? Maybe it should be time.h?
> 
>   Johan

Old C headers foo.h should be included as cfoo from C++ according to
C++ standard, so it should be time.h.

I would suspect Dave is using Solaris (since he's calling gmake). I
haven't compiled on Solaris for quite a while and from what I can
remember, it was a real pain to get things to compile (curses, PETSc
etc).

/Anders



References