[GRASS-dev] [GRASS GIS] #2352: Conflicting definitions of db__driver_describe_table

GRASS GIS trac at osgeo.org
Mon Nov 9 05:16:34 PST 2015


#2352: Conflicting definitions of db__driver_describe_table
-----------------------+-------------------------------
  Reporter:  hamish    |      Owner:  grass-dev@…
      Type:  defect    |     Status:  new
  Priority:  normal    |  Milestone:  6.4.6
 Component:  Database  |    Version:  6.4.3
Resolution:            |   Keywords:  dbf driver, libdb
       CPU:  All       |   Platform:  All
-----------------------+-------------------------------

Comment (by neteler):

 Travis-CI shows now some issues:


 {{{
 (cd /home/travis/build/GRASS-GIS/grass-ci/dist.x86_64-pc-linux-gnu/lib; ln
 -f -s libgrass_dbmibase.7.1.svn.so /home/travis/build/GRASS-GIS/grass-
 ci/dist.x86_64-pc-linux-gnu/lib/libgrass_dbmibase.so)
 if [ "" != "" -a -f "".html ] ; then make html ; fi
 make[4]: Leaving directory `/home/travis/build/GRASS-GIS/grass-
 ci/lib/db/dbmi_base'
 make -C dbmi_client || echo /home/travis/build/GRASS-GIS/grass-
 ci/lib/db/dbmi_client >> /home/travis/build/GRASS-GIS/grass-ci/error.log
 make -C stubs || echo /home/travis/build/GRASS-GIS/grass-ci/lib/db/stubs
 >> /home/travis/build/GRASS-GIS/grass-ci/error.log
 make[4]: Entering directory `/home/travis/build/GRASS-GIS/grass-
 ci/lib/db/stubs'
 test -d OBJ.x86_64-pc-linux-gnu || mkdir -p OBJ.x86_64-pc-linux-gnu
 make[4]: Entering directory `/home/travis/build/GRASS-GIS/grass-
 ci/lib/db/dbmi_client'
 test -d OBJ.x86_64-pc-linux-gnu || mkdir -p OBJ.x86_64-pc-linux-gnu
 gcc  -g -O2  -fPIC  -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64
 -pc-linux-gnu/include -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64
 -pc-linux-gnu/include    -DPACKAGE=\""grasslibs"\"   -I/home/travis/build
 /GRASS-GIS/grass-ci/dist.x86_64-pc-linux-gnu/include -I/home/travis/build
 /GRASS-GIS/grass-ci/dist.x86_64-pc-linux-gnu/include
 -DRELDIR=\"lib/db/stubs\" -o OBJ.x86_64-pc-linux-gnu/add_col.o -c
 add_col.c
 gcc  -g -O2  -fPIC  -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64
 -pc-linux-gnu/include -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64
 -pc-linux-gnu/include     -I../dbmi_base -DPACKAGE=\""grasslibs"\"
 -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64-pc-linux-gnu/include
 -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64-pc-linux-gnu/include
 -DRELDIR=\"lib/db/dbmi_client\" -o OBJ.x86_64-pc-linux-gnu/c_add_col.o -c
 c_add_col.c
 add_col.c:2:27: fatal error: grass/dbstubs.h: No such file or directory
 compilation terminated.

 ...

 gcc  -g -O2  -fPIC  -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64
 -pc-linux-gnu/include -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64
 -pc-linux-gnu/include     -I../dbmi_base -DPACKAGE=\""grasslibs"\"
 -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64-pc-linux-gnu/include
 -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64-pc-linux-gnu/include
 -DRELDIR=\"lib/db/dbmi_client\" -o OBJ.x86_64-pc-linux-
 gnu/c_list_drivers.o -c c_list_drivers.c
 d_error.c: In function ‘db_d_append_error’:
 d_error.c:78:11: warning: ignoring return value of ‘fread’, declared
 with attribute warn_unused_result [-Wunused-result]

 ...

 gcc  -g -O2  -fPIC  -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64
 -pc-linux-gnu/include -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64
 -pc-linux-gnu/include     -I../dbmi_base -DPACKAGE=\""grasslibs"\"
 -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64-pc-linux-gnu/include
 -I/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64-pc-linux-gnu/include
 -DRELDIR=\"lib/db/dbmi_client\" -o OBJ.x86_64-pc-linux-gnu/select.o -c
 select.c
 gcc -shared -o /home/travis/build/GRASS-GIS/grass-ci/dist.x86_64-pc-linux-
 gnu/lib/libgrass_dbmidriver.7.1.svn.so -L/home/travis/build/GRASS-GIS
 /grass-ci/dist.x86_64-pc-linux-gnu/lib -L/home/travis/build/GRASS-GIS
 /grass-ci/dist.x86_64-pc-linux-gnu/lib -Wl,--export-dynamic -Wl,-rpath-
 link,/home/travis/build/GRASS-GIS/grass-ci/dist.x86_64-pc-linux-gnu/lib
 -Wl,-soname,libgrass_dbmidriver.7.1.svn.so OBJ.x86_64-pc-linux-
 gnu/d_add_col.o OBJ.x86_64-pc-linux-gnu/d_bindupdate.o OBJ.x86_64-pc-
 linux-gnu/d_close_cur.o OBJ.x86_64-pc-linux-gnu/d_closedb.o OBJ.x86_64-pc-
 linux-gnu/d_createdb.o OBJ.x86_64-pc-linux-gnu/d_create_idx.o OBJ.x86_64
 -pc-linux-gnu/d_create_tab.o OBJ.x86_64-pc-linux-gnu/d_delete.o OBJ.x86_64
 -pc-linux-gnu/d_deletedb.o OBJ.x86_64-pc-linux-gnu/d_desc_table.o
 OBJ.x86_64-pc-linux-gnu/d_drop_col.o OBJ.x86_64-pc-linux-
 gnu/d_drop_index.o OBJ.x86_64-pc-linux-gnu/d_drop_tab.o OBJ.x86_64-pc-
 linux-gnu/d_error.o OBJ.x86_64-pc-linux-gnu/d_execute.o OBJ.x86_64-pc-
 linux-gnu/d_fetch.o OBJ.x86_64-pc-linux-gnu/d_finddb.o OBJ.x86_64-pc-
 linux-gnu/d_insert.o OBJ.x86_64-pc-linux-gnu/d_listdb.o OBJ.x86_64-pc-
 linux-gnu/d_list_idx.o OBJ.x86_64-pc-linux-gnu/d_list_tabs.o OBJ.x86_64
 -pc-linux-gnu/d_mkdir.o OBJ.x86_64-pc-linux-gnu/d_opendb.o OBJ.x86_64-pc-
 linux-gnu/d_openinsert.o OBJ.x86_64-pc-linux-gnu/d_openselect.o OBJ.x86_64
 -pc-linux-gnu/d_openupdate.o OBJ.x86_64-pc-linux-gnu/d_priv.o OBJ.x86_64
 -pc-linux-gnu/driver.o OBJ.x86_64-pc-linux-gnu/driver_state.o OBJ.x86_64
 -pc-linux-gnu/d_rows.o OBJ.x86_64-pc-linux-gnu/d_update.o OBJ.x86_64-pc-
 linux-gnu/d_version.o  -lgrass_dbmibase.7.1.svn -lgrass_dbstubs.7.1.svn
 -lgrass_gis.7.1.svn -lm
 /usr/bin/ld: cannot find -lgrass_dbstubs.7.1.svn
 collect2: ld returned 1 exit status
 }}}

 The first issue will cause the third (and the second is "just" a warning).

 Interestingly, changing into lib/db/stubs/ and running make on my local
 machine for a second time resolved it. Probably only a Makefile issue?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2352#comment:6>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list