[GRASS-user] r.sim.water compiling error

Hi everyone,
I’m trying to compile the r.sim.water module on GRASS6.3.0, but I have this message error:



~
/home/roberto/grass/grass-6.3.0RC6/raster/simwe/r.sim.water/main.c:464: undefined reference to input_data'<br>/home/roberto/grass/grass-6.3.0RC6/raster/simwe/r.sim.water/main.c:510: undefined reference to seeds’
/home/roberto/grass/grass-6.3.0RC6/raster/simwe/r.sim.water/main.c:511: undefined reference to grad_check'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to gasdev’
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to max'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_open_cell_old(char const*, char
const*)‘
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_fopen_sites_old(char*, char*)'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_find_cell(char*, char const*)’
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_allocate_f_raster_buf()'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_sites_close(_IO_FILE*)‘
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_is_f_null_value(float const*)'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_message(char const*, …)’
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_find_sites(char*, char<br> const*)'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_site_new_struct(int, int, int, int)‘
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_debug(int, char const*, ...)'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_fatal_error(char const*, …)’
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_get_f_raster_row(int, float*, int)'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to amax1’
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to amin1'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_is_d_null_value(double
const*)‘
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_site_describe(_IO_FILE*, int*, int*, int*, int*)'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to min’
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_get_d_raster_row(int, double*, int)'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_close_cell(int)‘
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_malloc(unsigned int)'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_site_get(_IO_FILE*, Site*)’
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to
erod(double**)'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_realloc(void*, unsigned int)‘
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to output_et()'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_allocate_d_raster_buf()’
/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to G_warning(char const*, ...)'<br>/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib/libgrass_sim.so: undefined reference to ulec’
~

I’m a newbie and I’d need a little help from you? I only think it’s a linker/compiler error.

Roberto


Posta, news, sport, oroscopo: tutto in una sola pagina
Crea l’home page che piace a te!.

Hi Roberto,

On Mon, Jul 7, 2008 at 2:27 PM, roberto caselli
<roberto.caselli@yahoo.it> wrote:

Hi everyone,
I'm trying to compile the r.sim.water module on GRASS6.3.0, but I have this
message error:

/home/roberto/grass/grass-6.3.0RC6/raster/simwe/r.sim.water/main.c:464:
undefined reference to `input_data'

you are using a release candidate (grass-6.3.0RC6), please comsider
to use the official 6.3.0 version.

Which linux distro do you use? Here it compiles...

Markus

Markus Neteler wrote:

> I'm trying to compile the r.sim.water module on GRASS6.3.0, but I have this
> message error:
>
> /home/roberto/grass/grass-6.3.0RC6/raster/simwe/r.sim.water/main.c:464:
> undefined reference to `input_data'

you are using a release candidate (grass-6.3.0RC6), please comsider
to use the official 6.3.0 version.

Which linux distro do you use? Here it compiles...

Note that I have disabled the raster/simwe directory in SVN trunk.

I was performing clean-up regarding lib/sites, and initially
discovered that the simwe code has some outstanding bugs[1] from when
the G_site_* functions were changed to use vector maps. On further
inspection, I discovered that the code is something of a mess[2], and
needs substantial refactoring rather than just minor tweaks.

[1] E.g. the fact that code is treating the sites "file" like a plain
text file, which it isn't any more, and that it assumes that it will
be closed automatically when the program terminates (true for a plain
text file, not for a vector map).

[2] E.g. the r.sim.* modules each have their own copy of waterglobs.h,
which don't match the library's version.

--
Glynn Clements <glynn@gclements.plus.com>