[GRASS-dev] problems compiling r.neighbors

I just did a cvs update and tried to compile GRASS. I did a make distclean.

I got the following error compilng r.neighbors.

cmb-MBP:~/grass_dev/grass6 cmbarton$ cd ./raster/r.neighbors
cmb-MBP:~/grass_dev/grass6/raster/r.neighbors cmbarton$ make
gcc -L/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib -DPACKAGE="“grassmods”" -o /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/r.neighbors OBJ.i686-apple-darwin8.10.1/bufs.o OBJ.i686-apple-darwin8.10.1/divr_cats.o OBJ.i686-apple-darwin8.10.1/gather.o OBJ.i686-apple-darwin8.10.1/intr_cats.o OBJ.i686-apple-darwin8.10.1/main.o OBJ.i686-apple-darwin8.10.1/null_cats.o OBJ.i686-apple-darwin8.10.1/readcell.o -lgrass_stats -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lz
/usr/bin/ld: Undefined symbols:
_read_weights
collect2: ld returned 1 exit status
make: *** [/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/r.neighbors] Error 1
cmb-MBP:~/grass_dev/grass6/raster/r.neighbors cmbarton$

Any suggestions?

Michael


Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Michael Barton escribió:

I just did a cvs update and tried to compile GRASS. I did a make distclean.

I got the following error compilng r.neighbors.

cmb-MBP:~/grass_dev/grass6 cmbarton$ cd ./raster/r.neighbors
cmb-MBP:~/grass_dev/grass6/raster/r.neighbors cmbarton$ make
gcc -L/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib -DPACKAGE=\""grassmods"\" -o /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/r.neighbors OBJ.i686-apple-darwin8.10.1/bufs.o OBJ.i686-apple-darwin8.10.1/divr_cats.o OBJ.i686-apple-darwin8.10.1/gather.o OBJ.i686-apple-darwin8.10.1/intr_cats.o OBJ.i686-apple-darwin8.10.1/main.o OBJ.i686-apple-darwin8.10.1/null_cats.o OBJ.i686-apple-darwin8.10.1/readcell.o -lgrass_stats -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lz
/usr/bin/ld: Undefined symbols:
_read_weights
collect2: ld returned 1 exit status
make: *** [/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/r.neighbors] Error 1
cmb-MBP:~/grass_dev/grass6/raster/r.neighbors cmbarton$

I have the same problem. Last changes in r.neighbors seem to have generated some problems.
Carlos

On Mon, Aug 06, 2007 at 05:23:52PM +0200, Carlos Dávila wrote:

Michael Barton escribió:

...

/usr/bin/ld: Undefined symbols:
_read_weights
collect2: ld returned 1 exit status
make: ***
[/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/r.neighbors]
Error 1
cmb-MBP:~/grass_dev/grass6/raster/r.neighbors cmbarton$

I have the same problem. Last changes in r.neighbors seem to have generated
some problems.

I think that file read_weights.c wasn't submitted to CVS.

Markus

Markus Neteler wrote:

>> /usr/bin/ld: Undefined symbols:
>> _read_weights
>> collect2: ld returned 1 exit status
>> make: ***
>> [/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/r.neighbors]
>> Error 1
>> cmb-MBP:~/grass_dev/grass6/raster/r.neighbors cmbarton$
> I have the same problem. Last changes in r.neighbors seem to have generated
> some problems.

I think that file read_weights.c wasn't submitted to CVS.

That's correct; sorry. It's there now.

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

Thanks. We'll try compiling again.

Michael

On 8/6/07 9:19 AM, "Glynn Clements" <glynn@gclements.plus.com> wrote:

Markus Neteler wrote:

/usr/bin/ld: Undefined symbols:
_read_weights
collect2: ld returned 1 exit status
make: ***
[/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/r.neighb
ors]
Error 1
cmb-MBP:~/grass_dev/grass6/raster/r.neighbors cmbarton$

I have the same problem. Last changes in r.neighbors seem to have generated
some problems.

I think that file read_weights.c wasn't submitted to CVS.

That's correct; sorry. It's there now.

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton