[GRASS-dev] [GRASS GIS] #1918: Missing $(RASTERLIB) $(RASTERDEP) in vector/v.in.region/Makefile
GRASS GIS
trac at osgeo.org
Fri Apr 5 05:45:24 PDT 2013
#1918: Missing $(RASTERLIB) $(RASTERDEP) in vector/v.in.region/Makefile
-------------------------+--------------------------------------------------
Reporter: torsti | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Keywords: | Platform: Linux
Cpu: Unspecified |
-------------------------+--------------------------------------------------
r55629 #include <raster.h> was added to main.c in v.in.region and it now
uses symbols declared in raster.h there but wasn't an update to the
Makefile, so for me compilation fails with a linker error:
{{{
make
: && gcc -L/home/torsti/Lataukset/Kehitys/grass_trunk/dist.x86_64-unknown-
linux-gnu/lib -L/home/torsti/Lataukset/Kehitys/grass_trunk/dist.x86_64
-unknown-linux-gnu/lib -Wl,--export-dynamic -Wl,-rpath-
link,/home/torsti/Lataukset/Kehitys/grass_trunk/dist.x86_64-unknown-linux-
gnu/lib -o /home/torsti/Lataukset/Kehitys/grass_trunk/dist.x86_64
-unknown-linux-gnu/bin/v.in.region OBJ.x86_64-unknown-linux-gnu/main.o
-lgrass_vector.7.0.svn -lgrass_gis.7.0.svn -lm
/usr/bin/ld: OBJ.x86_64-unknown-linux-gnu/main.o: undefined reference to
symbol 'Rast_row_to_northing'
/usr/bin/ld: note: 'Rast_row_to_northing' is defined in DSO
/home/torsti/Lataukset/Kehitys/grass_trunk/dist.x86_64-unknown-linux-
gnu/lib/libgrass_raster.7.0.svn.so so try adding it to the linker command
line
/home/torsti/Lataukset/Kehitys/grass_trunk/dist.x86_64-unknown-linux-
gnu/lib/libgrass_raster.7.0.svn.so: could not read symbols: Invalid
operation
collect2: error: ld returned 1 exit status
make: *** [/home/torsti/Lataukset/Kehitys/grass_trunk/dist.x86_64-unknown-
linux-gnu/bin/v.in.region] Virhe 1
}}}
I guess it should be something like this:
{{{
Index: vector/v.in.region/Makefile
===================================================================
--- vector/v.in.region/Makefile (revision 55638)
+++ vector/v.in.region/Makefile (working copy)
@@ -5,9 +5,9 @@
include $(MODULE_TOPDIR)/include/Make/Module.make
-DEPENDENCIES = $(VECTORDEP) $(GISDEP)
+DEPENDENCIES = $(VECTORDEP) $(RASTERDEP) $(GISDEP)
-LIBES = $(VECTORLIB) $(GISLIB)
+LIBES = $(VECTORLIB) $(RASTERLIB) $(GISLIB)
EXTRA_INC = $(VECT_INC)
EXTRA_CFLAGS = $(VECT_CFLAGS)
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1918>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list