[GRASS-dev] [GRASS GIS] #2017: osgf compilation error
GRASS GIS
trac at osgeo.org
Sun Jun 30 12:37:47 PDT 2013
#2017: osgf compilation error
-----------------------+----------------------------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Keywords: libc | Platform: Linux
Cpu: x86-64 |
-----------------------+----------------------------------------------------
Comment(by mmetz):
Replying to [ticket:2017 martinl]:
> Hi, recently I discovered problem when compiling `ogsflib`.
>
{{{
In file included from /usr/include/x86_64-linux-gnu/sys/stat.h:106:0,
from /home/martin/src/grass_trunk/dist.x86_64-unknown-
linux-gnu/include/grass/config.h:311,
from /home/martin/src/grass_trunk/dist.x86_64-unknown-
linux-gnu/include/grass/gis.h:28,
from GK2.c:21:
/usr/include/x86_64-linux-gnu/bits/stat.h:91:21: error: field ‘st_atim’
has incomplete type
/usr/include/x86_64-linux-gnu/bits/stat.h:92:21: error: field ‘st_mtim’
has incomplete type
/usr/include/x86_64-linux-gnu/bits/stat.h:93:21: error: field ‘st_ctim’
has incomplete type
In file included from /home/martin/src/grass_trunk/dist.x86_64-unknown-
linux-gnu/include/grass/config.h:311:0,
from /home/martin/src/grass_trunk/dist.x86_64-unknown-
linux-gnu/include/grass/gis.h:28,
from GK2.c:21:
/usr/include/x86_64-linux-gnu/sys/stat.h:366:31: error: array type has
incomplete element type
/usr/include/x86_64-linux-gnu/sys/stat.h:373:54: error: array type has
incomplete element type
}}}
>
> Debian GNU/Linux Unstable
> Any idea what could be wrong?
Yes, my recent addition of `#include <sys/stat.h>` to config.h.in. Try to
add `#include <sys/stat.h>` or `#include <unistd.h>` or both as in
{{{
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
}}}
to config.h.in:311.
Weird that it works on different Linux systems, FreeBSD, Solaris, IBM AIX,
but not on Debian GNU/Linux Unstable. If it works on Debian Stable, I
would recommend to hack your local copy.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2017#comment:2>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list