[GRASS-dev] v.what compiling error

Well, I just updated and recompiled from the cvs and v.what won’t compile. I’ll list the error below.

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

========= v.what compile error ===============

cmb-MBP:~/grass_dev/grass6/vector/v.what cmbarton$ make clean
rm -rf OBJ.i686-apple-darwin8.10.1
cmb-MBP:~/grass_dev/grass6/vector/v.what cmbarton$ make
gcc -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/include -g -O2 -I/Library/Frameworks/GDAL.framework/unix/include -DPACKAGE="“grassmods”" -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/include
-o OBJ.i686-apple-darwin8.10.1/main-1.12work.o -c main-1.12work.c
gcc -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/include -g -O2 -I/Library/Frameworks/GDAL.framework/unix/include -DPACKAGE="“grassmods”" -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/include
-o OBJ.i686-apple-darwin8.10.1/main.o -c main.c
gcc -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/include -g -O2 -I/Library/Frameworks/GDAL.framework/unix/include -DPACKAGE="“grassmods”" -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/include
-o OBJ.i686-apple-darwin8.10.1/what.o -c what.c
gcc -L/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib -I/Library/Frameworks/GDAL.framework/unix/include -DPACKAGE="“grassmods”" -o /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/v.what OBJ.i686-apple-darwin8.10.1/main-1.12work.o OBJ.i686-apple-darwin8.10.1/main.o OBJ.i686-apple-darwin8.10.1/what.o -lgrass_display -lgrass_gis -lgrass_datetime -lz -lgrass_raster -lgrass_pngdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/UnixImageIO.framework/unix/lib -lpng -lz -lgrass_psdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -lgrass_raster -lgrass_pngdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/UnixImageIO.framework/unix/lib -lpng -lz -lgrass_psdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -lgrass_vect -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lgrass_dgl -lgrass_dig2 -lgrass_gis -lgrass_datetime -lz -lgrass_rtree -lgrass_gis -lgrass_datetime -lz -lgrass_linkm -lgrass_rtree -lgrass_dig2 -lgrass_gis -lgrass_datetime -lz -lgrass_rtree -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/GDAL.framework/unix/lib -lgdal -lgrass_form -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lz
/usr/bin/ld: multiple definitions of symbol _main
OBJ.i686-apple-darwin8.10.1/main-1.12work.o definition of _main in section (__TEXT,__text)
OBJ.i686-apple-darwin8.10.1/main.o definition of _main in section (__TEXT,__text)
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_rtree.dylib(gammavol.o) definition of _main
/usr/bin/ld: warning multiple definitions of symbol _init_color_table
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_psdriver.dylib(Color_table.o) definition of _init_color_table
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_pngdriver.dylib(Color_table.o) definition of _init_color_table
/usr/bin/ld: warning multiple definitions of symbol _true_color
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_pngdriver.dylib(Graph_set.o) definition of _true_color
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_psdriver.dylib(Graph_set.o) definition of _true_color
/usr/bin/ld: warning multiple definitions of symbol _file_name
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_pngdriver.dylib(Graph_set.o) definition of _file_name
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_psdriver.dylib(Graph_set.o) definition of _file_name
/usr/bin/ld: warning multiple definitions of symbol _height
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_pngdriver.dylib(Graph_set.o) definition of _height
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_psdriver.dylib(Graph_set.o) definition of _height
/usr/bin/ld: warning multiple definitions of symbol _width
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_pngdriver.dylib(Graph_set.o) definition of _width
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_psdriver.dylib(Graph_set.o) definition of _width
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
symbol _init_color_table used from dynamic library /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_psdriver.dylib(Color_table.o) not from earlier dynamic library /Applications/Grass/GRASS-6.3.app/Contents/Resources/lib/libgrass_pngdriver.dylib(Color_table.o)
collect2: ld returned 1 exit status
make: *** [/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/v.what] Error 1

Michael Barton wrote:

Well, I just updated and recompiled from the cvs and v.what won't compile.
I'll list the error below.

...

========= v.what compile error ===============

...

gcc -L/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib
-I/Library/Frameworks/GDAL.framework/unix/include
-DPACKAGE=\""grassmods"\" -o
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/v.what
OBJ.i686-apple-darwin8.10.1/main-1.12work.o
OBJ.i686-apple-darwin8.10.1/main.o OBJ.i686-apple-darwin8.10.1/what.o
-lgrass_display -lgrass_gis -lgrass_datetime -lz -lgrass_raster
-lgrass_pngdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz
-L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv
-lgrass_gis -lgrass_datetime -lz
-L/Library/Frameworks/UnixImageIO.framework/unix/lib -lpng -lz
-lgrass_psdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz
-L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv
-lgrass_gis -lgrass_datetime -lz -lgrass_driver -lgrass_gis
-lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib
-lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -lgrass_raster
-lgrass_pngdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz
-L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv
-lgrass_gis -lgrass_datetime -lz
-L/Library/Frameworks/UnixImageIO.framework/unix/lib -lpng -lz
-lgrass_psdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz
-L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv
-lgrass_gis -lgrass_datetime -lz -lgrass_driver -lgrass_gis
-lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib
-lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -lgrass_vect
-lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_dbmiclient
-lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis
-lgrass_datetime -lz -lgrass_dgl -lgrass_dig2 -lgrass_gis
-lgrass_datetime -lz -lgrass_rtree -lgrass_gis -lgrass_datetime -lz
-lgrass_linkm -lgrass_rtree -lgrass_dig2 -lgrass_gis -lgrass_datetime -lz
-lgrass_rtree -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient
-lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis
-lgrass_datetime -lz -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz
-L/Library/Frameworks/GDAL.framework/unix/lib -lgdal -lgrass_form
-lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_dbmiclient
-lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis
-lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz
-lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz
-lgrass_gis -lgrass_datetime -lz -lgrass_dbmibase -lgrass_gis
-lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lz
/usr/bin/ld: multiple definitions of symbol _main
OBJ.i686-apple-darwin8.10.1/main-1.12work.o definition of _main in section
(__TEXT,__text)
OBJ.i686-apple-darwin8.10.1/main.o definition of _main in section
(__TEXT,__text)

...

collect2: ld returned 1 exit status
make: ***
[/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/v.what]
Error 1

(no idea; what() or a global var name used somewhere else in the namespace?)

slightly off-topic annoyance:
Could the -l{$LIBNAME} strings be processed to remove duplicates? It makes
pulling the signal out of the noise in these situations that much more
difficult. IIRC library order can matter, so a simple sort|uniq approach may
not be a quick fix, and that combinations are only specified in each modules'
Makefile, so would have to happen after that.

?

thanks,
Hamish

____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC

No problems here.

The obvious: I see you did "make clean" in the v.what dir. What about make clean the whole GRASS source?

I have exactly the same warnings at the end, AND NO MORE. The only difference with my compile is that I use different optimization settings. I turn off debug symbols and optimize with Apple's default, -Os. Before configuring:

export CFLAGS=-Os
export CXXFLAGS=-Os

I don't know if that could affect the link step (that long gcc line).

On Aug 24, 2007, at 1:22 AM, Michael Barton wrote:

Well, I just updated and recompiled from the cvs and v.what won't compile. I'll list the error below.

========= v.what compile error ===============

cmb-MBP:~/grass_dev/grass6/vector/v.what cmbarton$ make clean
rm -rf OBJ.i686-apple-darwin8.10.1
cmb-MBP:~/grass_dev/grass6/vector/v.what cmbarton$ make
gcc -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/include -g -O2 -I/Library/Frameworks/GDAL.framework/unix/include -DPACKAGE=\""grassmods"\" -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/include \
        -o OBJ.i686-apple-darwin8.10.1/main-1.12work.o -c main-1.12work.c
gcc -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/include -g -O2 -I/Library/Frameworks/GDAL.framework/unix/include -DPACKAGE=\""grassmods"\" -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/include \
        -o OBJ.i686-apple-darwin8.10.1/main.o -c main.c
gcc -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/include -g -O2 -I/Library/Frameworks/GDAL.framework/unix/include -DPACKAGE=\""grassmods"\" -I/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/include \
        -o OBJ.i686-apple-darwin8.10.1/what.o -c what.c
gcc -L/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib -I/Library/Frameworks/GDAL.framework/unix/include -DPACKAGE=\""grassmods"\" -o /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/v.what OBJ.i686-apple-darwin8.10.1/main-1.12work.o OBJ.i686-apple-darwin8.10.1/main.o OBJ.i686-apple-darwin8.10.1/what.o -lgrass_display -lgrass_gis -lgrass_datetime -lz -lgrass_raster -lgrass_pngdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/UnixImageIO.framework/unix/lib -lpng -lz -lgrass_psdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -lgrass_raster -lgrass_pngdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/UnixImageIO.framework/unix/lib -lpng -lz -lgrass_psdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -lgrass_driver -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/FreeType.framework/unix/lib -lfreetype -liconv -lgrass_gis -lgrass_datetime -lz -lgrass_vect -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lgrass_dgl -lgrass_dig2 -lgrass_gis -lgrass_datetime -lz -lgrass_rtree -lgrass_gis -lgrass_datetime -lz -lgrass_linkm -lgrass_rtree -lgrass_dig2 -lgrass_gis -lgrass_datetime -lz -lgrass_rtree -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -L/Library/Frameworks/GDAL.framework/unix/lib -lgdal -lgrass_form -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lz
/usr/bin/ld: multiple definitions of symbol _main
OBJ.i686-apple-darwin8.10.1/main-1.12work.o definition of _main in section (__TEXT,__text)
OBJ.i686-apple-darwin8.10.1/main.o definition of _main in section (__TEXT,__text)
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_rtree.dylib(gammavol.o) definition of _main
/usr/bin/ld: warning multiple definitions of symbol _init_color_table
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_psdriver.dylib(Color_table.o) definition of _init_color_table
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_pngdriver.dylib(Color_table.o) definition of _init_color_table
/usr/bin/ld: warning multiple definitions of symbol _true_color
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_pngdriver.dylib(Graph_set.o) definition of _true_color
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_psdriver.dylib(Graph_set.o) definition of _true_color
/usr/bin/ld: warning multiple definitions of symbol _file_name
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_pngdriver.dylib(Graph_set.o) definition of _file_name
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_psdriver.dylib(Graph_set.o) definition of _file_name
/usr/bin/ld: warning multiple definitions of symbol _height
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_pngdriver.dylib(Graph_set.o) definition of _height
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_psdriver.dylib(Graph_set.o) definition of _height
/usr/bin/ld: warning multiple definitions of symbol _width
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_pngdriver.dylib(Graph_set.o) definition of _width
/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_psdriver.dylib(Graph_set.o) definition of _width
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
symbol _init_color_table used from dynamic library /Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/lib/libgrass_psdriver.dylib(Color_table.o) not from earlier dynamic library /Applications/Grass/GRASS-6.3.app/Contents/Resources/lib/libgrass_pngdriver.dylib(Color_table.o)
collect2: ld returned 1 exit status
make: *** [/Users/cmbarton/grass_dev/grass6/dist.i686-apple-darwin8.10.1/bin/v.what] Error 1

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

[Trillian] What are you supposed to do WITH a maniacally depressed robot?

[Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...

- HitchHiker's Guide to the Galaxy

On 8/24/07 7:25 AM, "William Kyngesburye" <woklist@kyngchaos.com> wrote:

No problems here.

The obvious: I see you did "make clean" in the v.what dir. What
about make clean the whole GRASS source?

I did that. I regularly do a make distclean before compiling, just in
case...

I have exactly the same warnings at the end, AND NO MORE. The only
difference with my compile is that I use different optimization
settings. I turn off debug symbols and optimize with Apple's
default, -Os. Before configuring:

export CFLAGS=-Os
export CXXFLAGS=-Os

I don't know if that could affect the link step (that long gcc line).

Dunno. I could try it. Do you get an error when you call v.what from the GUI
menu?

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

On Aug 24, 2007, at 9:59 AM, Michael Barton wrote:

I have exactly the same warnings at the end, AND NO MORE. The only
difference with my compile is that I use different optimization
settings. I turn off debug symbols and optimize with Apple's
default, -Os. Before configuring:

export CFLAGS=-Os
export CXXFLAGS=-Os

I don't know if that could affect the link step (that long gcc line).

Dunno. I could try it. Do you get an error when you call v.what from the GUI
menu?

Tcl or Python gui? I haven't reverted to wx 2.8.4.0 from 2.8.4.2, so my python gui doesn't run.

In the Tcl gui, it opens a tiny empty "dialog0" window and spits out some tcl code in the Terminal:

begin_dialog {v.what} {
label {}
desc {Queries a vector map layer at given locations.}
key {vector, querying}
}
add_flag 1 {
name {d}
desc {Print topological information (debugging)}
answer 0
label {}
guisection {}
}
add_flag 2 {
name {a}
desc {Print attribute information}
answer 0
label {}
guisection {}
}
add_option 3 {
name {map}
type {name}
multi 1
desc {Name of input vector map}
required 1
options {}
descs {}
answer {}
prompt {old,vector,vector}
label {}
guisection {}
}
add_option 4 {
name {east_north}
type {east,north}
multi 1
desc {If not given reads from standard input}
required 0
options {}
descs {}
answer {}
prompt {}
label {Coordinates for query}
guisection {}
}
add_option 5 {
name {distance}
type {float}
multi 0
desc {Query threshold distance}
required 0
options {}
descs {}
answer {0}
prompt {}
label {}
guisection {}
}
add_xflag 6 {
name {quiet}
desc {Run with minimal output messages}
answer 0
label {Run quietly}
guisection {}
}
end_dialog 6
PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file:
/Users/kyngchaos/Documents/gis/grassdb/spearfish60/PERMANENT/.tmp/Sumomo.local/8554.0.ppm,
GRASS_WIDTH=641, GRASS_HEIGHT=482

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe

This is the problem I'm talking about. It doesn't happen if v.what is called
from the command line or from wxPython, I think because they parse interface
information differently.

Michael

On 8/24/07 9:29 AM, "William Kyngesburye" <woklist@kyngchaos.com> wrote:

In the Tcl gui, it opens a tiny empty "dialog0" window and spits out
some tcl code in the Terminal:

begin_dialog {v.what} {
label {}

snip snip

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

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

Michael Barton wrote:

Well, I just updated and recompiled from the cvs and v.what won't compile.
I'll list the error below.

/usr/bin/ld: multiple definitions of symbol _main
OBJ.i686-apple-darwin8.10.1/main-1.12work.o definition of _main in section
(__TEXT,__text)

main-1.12work.o?

Do you have a file called main-1.12work.c in that directory?

The 1.12 is almost certainly a CVS revision (the latest is 1.13,
committed 4 days ago).

It may be that your development tools are creating copies of source
files.

This will cause problems due to the fact that the GRASS Makefiles will
attempt to compile and link every .c file in the directory into the
module unless explicitly told otherwise.

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