[GRASS-user] Grass 7 compile errors

Hi all,

Just updated to the latest svn version of grass 7. Configure went OK
but I got a bunch off errors on make, the first one being in
display/d.path. So I went into that directory and issued make. The
output is the following:

daniel@debian:~/grass/grass_trunk/display/d.path$ make
: && gcc -L/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/lib
-L/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/lib
-Wl,--export-dynamic
-Wl,-rpath-link,/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/lib
-o /home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/bin/d.path
OBJ.i686-pc-linux-gnu/main.o OBJ.i686-pc-linux-gnu/select.o
-lgrass_display.7.0.svn -lgrass_vector.7.0.svn -lgrass_gis.7.0.svn
-lm
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_vector.7.0.svn.so:
undefined reference to `OGR_L_GetName'
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_vector.7.0.svn.so:
undefined reference to `OGR_L_GetGeomType'
collect2: ld returned 1 exit status
make: *** [/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/bin/d.path]
Error 1
daniel@debian:~/grass/grass_trunk/display/d.path$

Am I missing some library? I could not understand anything from the
error message. I'm running grass on a Debian system

Thanks
Daniel

Hi Daniel,
i faced the same problem. OGR_L_GetGeomType was introduced in r51126 [1].
I solved this by removing the default Ubuntu gdal package and
compiling+installing the gdal version 1.9.0 from sources. I would have
expected an announcement about this changes, since OGR_L_GetGeomType
was introduced recently in gdal version > 1.7.2?

A gdal version check should be provided to detect this dependency at
configuration time or at least an announcement in the
REQUIREMENTS.html file (... dear Martin).

Best regards
Soeren

[1] https://trac.osgeo.org/grass/changeset/51126

2012/3/23 Daniel Victoria <daniel.victoria@gmail.com>:

Hi all,

Just updated to the latest svn version of grass 7. Configure went OK
but I got a bunch off errors on make, the first one being in
display/d.path. So I went into that directory and issued make. The
output is the following:

daniel@debian:~/grass/grass_trunk/display/d.path$ make
: && gcc -L/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/lib
-L/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/lib
-Wl,--export-dynamic
-Wl,-rpath-link,/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/lib
-o /home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/bin/d.path
OBJ.i686-pc-linux-gnu/main.o OBJ.i686-pc-linux-gnu/select.o
-lgrass_display.7.0.svn -lgrass_vector.7.0.svn -lgrass_gis.7.0.svn
-lm
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_vector.7.0.svn.so:
undefined reference to `OGR_L_GetName'
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_vector.7.0.svn.so:
undefined reference to `OGR_L_GetGeomType'
collect2: ld returned 1 exit status
make: *** [/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/bin/d.path]
Error 1
daniel@debian:~/grass/grass_trunk/display/d.path$

Am I missing some library? I could not understand anything from the
error message. I'm running grass on a Debian system

Thanks
Daniel
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi,

2012/3/23 Sören Gebbert <soerengebbert@googlemail.com>:

compiling+installing the gdal version 1.9.0 from sources. I would have
expected an announcement about this changes, since OGR_L_GetGeomType
was introduced recently in gdal version > 1.7.2?

hm, introduced in 1.8.0 [1] (released 2011/1). Sorry, I will fix it ASAP.

Martin

[1] http://gdal.org/ogr/ogr__api_8h.html#a0adea8ce1ca795ce0a6a76505f90f078

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

2012/3/23 Martin Landa <landa.martin@gmail.com>:

hm, introduced in 1.8.0 [1] (released 2011/1). Sorry, I will fix it ASAP.

hopefully fixed in r51151, sorry for inconvenience.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi Martin,

Updated to the latest release and all is good

Thanks
Daniel

2012/3/23 Martin Landa <landa.martin@gmail.com>:

2012/3/23 Martin Landa <landa.martin@gmail.com>:

hm, introduced in 1.8.0 [1] (released 2011/1). Sorry, I will fix it ASAP.

hopefully fixed in r51151, sorry for inconvenience.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa