[GRASS-dev] G6.4 compilation issue on Debian Jessie: togl.o: undefined reference to symbol 'XUnmapWindow'

Markus Neteler neteler at osgeo.org
Tue Aug 4 09:27:28 PDT 2015


Hi,

after the installation of needed compile environment on the new
grass.osgeo.org VM, I noted this problem:

configure ...
make
...
make[4]: Leaving directory
'/home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/visualization/nviz/src'
gcc -I/home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/include
 -g -Wall -Werror-implicit-function-declaration -fno-common
-I/usr/include/tcl8.6/ -I/usr/include/tcl8.6/
-I/home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/include
  -I/usr/include/gdal -I/usr/include     -DPACKAGE=\""grassmods"\"
-I/home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/include
-o OBJ.x86_64-unknown-linux-gnu/site_highlight_commands.o -c
site_highlight_commands.c
gcc -L/home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/lib
-Wl,--export-dynamic
-Wl,-rpath-link,/home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/lib
  -o nvwish OBJ.x86_64-unknown-linux-gnu/nvizAppInit.o
OBJ.x86_64-unknown-linux-gnu/change_view.o
OBJ.x86_64-unknown-linux-gnu/draw.o
OBJ.x86_64-unknown-linux-gnu/exag.o
OBJ.x86_64-unknown-linux-gnu/glwrappers.o
OBJ.x86_64-unknown-linux-gnu/init_commands.o
OBJ.x86_64-unknown-linux-gnu/lights.o
OBJ.x86_64-unknown-linux-gnu/map_obj.o
OBJ.x86_64-unknown-linux-gnu/misc.o
OBJ.x86_64-unknown-linux-gnu/nviz_init.o
OBJ.x86_64-unknown-linux-gnu/position.o
OBJ.x86_64-unknown-linux-gnu/quick_draw.o
OBJ.x86_64-unknown-linux-gnu/anim_support.o
OBJ.x86_64-unknown-linux-gnu/cutplane_obj.o
OBJ.x86_64-unknown-linux-gnu/script_support.o
OBJ.x86_64-unknown-linux-gnu/do_zoom.o
OBJ.x86_64-unknown-linux-gnu/label.o
OBJ.x86_64-unknown-linux-gnu/nvizMain.o
OBJ.x86_64-unknown-linux-gnu/togl.o
OBJ.x86_64-unknown-linux-gnu/togl_cb.o
OBJ.x86_64-unknown-linux-gnu/query_vect.o
OBJ.x86_64-unknown-linux-gnu/volume.o
OBJ.x86_64-unknown-linux-gnu/togl_flythrough.o
OBJ.x86_64-unknown-linux-gnu/pick_vect_commands.o
OBJ.x86_64-unknown-linux-gnu/site_attr_commands.o
OBJ.x86_64-unknown-linux-gnu/site_highlight_commands.o
-lgrass_ogsf.6.4.6svn -lgrass_bitmap.6.4.6svn -lgrass_linkm.6.4.6svn
-lgrass_g3d.6.4.6svn -lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn
-lz      -lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn -lz
-lgrass_sites.6.4.6svn -lgrass_datetime.6.4.6svn
-lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_dbmiclient.6.4.6svn
-lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz     -lgrass_vect.6.4.6svn
-lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_dbmiclient.6.4.6svn
-lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_dgl.6.4.6svn
-lgrass_dig2.6.4.6svn -lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn
-lz     -lgrass_rtree.6.4.6svn  -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz     -lgrass_linkm.6.4.6svn
-lgrass_rtree.6.4.6svn   -lgrass_vect.6.4.6svn
-lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_dbmiclient.6.4.6svn
-lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_dgl.6.4.6svn
-lgrass_dig2.6.4.6svn -lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn
-lz     -lgrass_rtree.6.4.6svn  -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz     -lgrass_linkm.6.4.6svn
-lgrass_rtree.6.4.6svn    -ltk -lm  -ltcl -lm -lGLU  -lGL    -lXmu
-lXext  -lm  \
-lgrass_bitmap.6.4.6svn -lgrass_linkm.6.4.6svn  -lgrass_linkm.6.4.6svn
-lgrass_vect.6.4.6svn -lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_dbmiclient.6.4.6svn
-lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_dgl.6.4.6svn
-lgrass_dig2.6.4.6svn -lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn
-lz     -lgrass_rtree.6.4.6svn  -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz     -lgrass_linkm.6.4.6svn
-lgrass_rtree.6.4.6svn  -lgrass_dig2.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz     -lgrass_rtree.6.4.6svn
-lgrass_dgl.6.4.6svn -lgrass_rtree.6.4.6svn -lgrass_linkm.6.4.6svn
-lgrass_dbmiclient.6.4.6svn -lgrass_dbmibase.6.4.6svn
-lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn -lz
-lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn -lz
-lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz       -L/usr/lib -lgdal -L/usr/lib
-lgeos-3.4.2 -lgeos_c  -lgrass_sites.6.4.6svn
-lgrass_datetime.6.4.6svn -lgrass_dbmibase.6.4.6svn
-lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn -lz
-lgrass_dbmiclient.6.4.6svn -lgrass_dbmibase.6.4.6svn
-lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn -lz
-lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn -lz
-lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn -lz
-lgrass_vect.6.4.6svn -lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_dbmiclient.6.4.6svn
-lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_dgl.6.4.6svn
-lgrass_dig2.6.4.6svn -lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn
-lz     -lgrass_rtree.6.4.6svn  -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz     -lgrass_linkm.6.4.6svn
-lgrass_rtree.6.4.6svn   -lgrass_form.6.4.6svn
-lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_dbmiclient.6.4.6svn
-lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_dbmiclient.6.4.6svn
-lgrass_dbmibase.6.4.6svn -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_gis.6.4.6svn
-lgrass_datetime.6.4.6svn -lz      -lgrass_dbmibase.6.4.6svn
-lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn -lz       \
-lgrass_g3d.6.4.6svn -lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn
-lz      -lgrass_gis.6.4.6svn -lgrass_datetime.6.4.6svn -lz     -lz  \
-lgrass_datetime.6.4.6svn  -ltiff  \
-lm
/usr/bin/ld: OBJ.x86_64-unknown-linux-gnu/togl.o: undefined reference
to symbol 'XUnmapWindow'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
Makefile:68: recipe for target 'nvwish' failed

Somewhere I found a hint that the library order may be wrong but I
have no idea how it should be.

All except for nviz is compiled.

gcc version 4.9.2 (Debian 4.9.2-10)
Linux osgeo6 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u2
(2015-07-17) x86_64 GNU/Linux

Help/fixes welcome,

Markus


More information about the grass-dev mailing list