← Back to team overview

dolfin team mailing list archive

Re: make error with dolfin-0.5.10

 

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

On Wed, Oct 12, 2005 at 03:43:44PM -0500, Dave Feustel wrote:
> Hi!
> 
> I just downloaded dolfin, configured dolfin, and then ran gnu make.
> Running with gcc version 3.3.5, I got the following errors:
> ========================
> g++ -DPACKAGE_NAME=\"dolfin\" -DPACKAGE_TARNAME=\"dolfin\" -DPACKAGE_VERSION=\"0.5.10\" -DPACKAGE_STRING=\"dolfin\ 0.5.10\" -DPACKAGE_BUGREPORT=\"dolfin@xxxxxxxxxx\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1  -I. -I.  -I../../../src/kernel/common -I../../../src/kernel/fem -I../../../src/kernel/form -I../../../src/kernel/function -I../../../src/kernel/io -I../../../src/kernel/la -I../../../src/kernel/log -I../../../src/kernel/main -I../../../src/kernel/math -I../../../src/kernel/mesh -I../../../src/kernel/ode -I../../../src/kernel/quadrature -I../../../src/kernel/settings -I../../../src/kernel/common   -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include    -DDEBUG=1 -g -O2 -Wall -Werror -ansi -std=c++98 -c utils.cpp
> utils.cpp: In function `void dolfin::delay(double)':
> utils.cpp:61: error: aggregate `timespec req' has incomplete type and cannot be
>    defined
> gmake[4]: *** [utils.o] Error 1
> gmake[4]: Leaving directory `/home/daf/Dolfin/dolfin-0.5.10/src/kernel/common'
> gmake[3]: *** [all-recursive] Error 1
> gmake[3]: Leaving directory `/home/daf/Dolfin/dolfin-0.5.10/src/kernel/common'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/home/daf/Dolfin/dolfin-0.5.10/src/kernel'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/home/daf/Dolfin/dolfin-0.5.10/src'
> gmake: *** [all-recursive] Error 1
> /home/daf/Dolfin/dolfin-0.5.10}
> ========================
> Is this something I can fix locally?
> 
> Thanks,
> Dave Feustel

-- 
Anders Logg
Research Assistant Professor
Toyota Technological Institute at Chicago
http://www.tti-c.org/logg/



Follow ups