[GRASS-dev] Re: [GRASS GIS] #111: r.los fails in WinGRASS with high
values for max_dis parameter
GRASS GIS
trac at osgeo.org
Mon Mar 2 10:11:42 EST 2009
#111: r.los fails in WinGRASS with high values for max_dis parameter
---------------------------+------------------------------------------------
Reporter: gsancho | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Resolution: | Keywords: wingrass r.los
Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Comment (by neteler):
Compiling the updated code with
{{{
MYCFLAGS="-g -Wall -fno-common"
MYCXXFLAGS="-g -Wall"
MYLDFLAGS="-Wl,--no-undefined"
LDFLAGS="$MYLDFLAGS" CFLAGS="$MYCFLAGS" CXXFLAGS="$MYCXXFLAGS" ./configure
...
}}}
leads to this problem:
{{{
gcc -L/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/lib -Wl,--no-
undefined -Wl,--export-dynamic
-L/usr/lib64 -Wl,-rpath-link,/home/neteler/grass64/dist.x86_64-unknown-
linux-gnu/lib -o /home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/bin/r.los OBJ.x86_64-unknown-linux-gnu/color_rnge.o
OBJ.x86_64-unknown-linux-gnu/delete.o OBJ.x86_64-unknown-linux-gnu/main.o
OBJ.x86_64-unknown-linux-gnu/make_list.o OBJ.x86_64-unknown-linux-
gnu/make_point.o OBJ.x86_64-unknown-linux-gnu/mark_pts.o OBJ.x86_64-
unknown-linux-gnu/pts_elim.o
OBJ.x86_64-unknown-linux-gnu/segment.o -lgrass_segment
-lgrass_gis -lgrass_datetime -lz -lgrass_gproj -lgrass_gis
-lgrass_datetime -lz -lproj -L/usr/local/lib -lgdal -lgrass_gis
-lgrass_datetime -lz -lm -lz
OBJ.x86_64-unknown-linux-gnu/main.o: In function `main':
/home/neteler/grass64/raster/r.los/main.c:60: multiple definition of
`DELAYED_DELETE'
OBJ.x86_64-unknown-linux-
gnu/delete.o:/home/neteler/grass64/raster/r.los/delete.c:26: first defined
here
OBJ.x86_64-unknown-linux-gnu/make_list.o: In function `make_list':
/home/neteler/grass64/raster/r.los/make_list.c:24: multiple definition of
`DELAYED_DELETE'
OBJ.x86_64-unknown-linux-
gnu/delete.o:/home/neteler/grass64/raster/r.los/delete.c:26: first defined
here
OBJ.x86_64-unknown-linux-gnu/mark_pts.o: In function
`mark_visible_points':
/home/neteler/grass64/raster/r.los/mark_pts.c:24: multiple definition of
`DELAYED_DELETE'
OBJ.x86_64-unknown-linux-
gnu/delete.o:/home/neteler/grass64/raster/r.los/delete.c:26: first defined
here
OBJ.x86_64-unknown-linux-gnu/pts_elim.o: In function
`hidden_point_elimination':
/home/neteler/grass64/raster/r.los/pts_elim.c:53: multiple definition of
`DELAYED_DELETE'
OBJ.x86_64-unknown-linux-
gnu/delete.o:/home/neteler/grass64/raster/r.los/delete.c:26: first defined
here
OBJ.x86_64-unknown-linux-gnu/segment.o: In function `segment':
/home/neteler/grass64/raster/r.los/segment.c:24: multiple definition of
`DELAYED_DELETE'
OBJ.x86_64-unknown-linux-
gnu/delete.o:/home/neteler/grass64/raster/r.los/delete.c:26: first defined
here
collect2: ld returned 1 exit status
make: *** [/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/bin/r.los]
Error 1
}}}
Attached patch cures it. Ok to submit?
Markus
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/111#comment:11>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list