[GRASS-dev] [GRASS GIS] #2017: osgf compilation errro

GRASS GIS trac at osgeo.org
Sun Jun 30 05:33:27 PDT 2013


#2017: osgf compilation errro
-----------------------+----------------------------------------------------
 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     |  
-----------------------+----------------------------------------------------
 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

 {{{
 gcc --version
 gcc (Debian 4.7.3-5) 4.7.3
 }}}

 {{{
 Package: libc6-dev
 Versions:
 2.17-7
 }}}

 {{{
         CFLAGS="-g -Wall -Werror-implicit-function-declaration -fno-common
 -Wextra -Wunused" \
             CXXFLAGS="-g -Wall"  \
             ./configure --prefix=/home/martin/smetiste/g7 \
             --with-postgres --with-postgres-
 includes=/usr/include/postgresql \
             --with-gdal=/usr/local/bin/gdal-config  \
             --with-proj --with-cxx --enable-largefile --with-sqlite \
             --with-motif --with-glw --with-nls --with-readline \
             --with-freetype --with-freetype-
 includes=/usr/include/freetype2 \
             --with-odbc --with-python=/usr/bin/python-config --with-
 wxwidgets \
             --with-ffmpeg \
             --with-ffmpeg-includes="/usr/include/libavcodec
 /usr/include/libavformat/ /usr/include/libswscale /usr/include/libavutil/"
 \
             --with-geos=/usr/local/bin/geos-config --with-pthread \
             --with-mysql --with-mysql-includes=/usr/include/mysql --with-
 cairo \
             --with-liblas --with-readline-libs=/lib/x86_64-linux-gnu
 --with-openmp  --with-opencl \
             --with-netcdf --with-x --x-includes=/usr/include
 --x-libraries=/usr/lib/x86_64-linux-gnu
 }}}

 Any idea what could be wrong?

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2017>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list