[GRASS-dev] Re: [bug #4768] (grass) nviz segfault on startup when

On Jul 23, 2006, at 12:33 PM, Michael Barton via RT wrote:

William,

This is great news.

Could you send me the details of how you set this up and configured it
(including your list of configure flags) so that I can duplicate it? I won't
be able to do it until at least Tuesday or maybe Wednesday, so there is no
hurry. But I'd like to try it to see if I can do it too.

Actually, simple standard stuff for configuration. In addition to setting includes/libs options for the various graphics, GIS and DB libraries, these are the important settings:

--with-tcltk-includes=/usr/local/grasslibs/include \
--with-tcltk-libs=/usr/local/grasslibs/lib \
--with-x --without-motif --without-glw --with-opengl=x11

I suppose with an X11-only build like this, you could add motif and glw. This example assumes an X11 tcltk build in /usr/local/grasslibs, which is where I installed mine. I think Lorenzo uses 'grasslib', without the plural, so you could try his tcltk. Or build your own wherever you like, but I suggest an isolated location like this so other alternate builds of GRASS (ie Aqua) don't get confused. ie, if you build the X11 tcltk in /usr/X11R6, an Aqua build of GRASS that includes X11 support might pick up the X11 tcltk at link time, not the Aqua version.

Which brings me to the key here with TclTk - I think the X11 NVIZ crash is because of GRASS getting accidentally linked to Apple's Aqua TclTk (which is quite old BTW, 8.4.7) instead of the intended X11 TclTk. I guess one thing to do is make sure you use --with-tcltk-libs=. And in my case, I had a broken X11 TclTk install, so even then it didn't link to it until I fixed it. If a -L/usr/lib gets somehow inserted in the link step before -L/path/to/your/X11/tcltk/lib, that could cause it to grab Apple's TclTk.

A way to check if it linked right is to use otool:

$ otool -L /usr/local/grass-6.1.cvs/bin/nviz

(or you can check the nviz binary in the grass source/dist/bin before make install)

This will list all the library paths nviz needs. Make sure tcl and tk libs have the right paths. Fixing it is another matter, but hopefully it will be right the first time.

-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?
Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal?
First Pogril: I don't know either. Wretched, isn't it?

-HitchHiker's Guide to the Galaxy

Well,

I had a few bits of time and squeezed in a couple of attempts to recompile
GRASS for Mac OSX PPC.

In the end, I reverted to Lorenzo Moretti's libraries and the configure
script that had worked before with them.

GRASS compiles, but has errors in d.path, d.vect, and v.digit (these are new
since my last attempt at compiling last week). It also has errors in reading
the makefile for gism and dm (these have occurred every time and refer to a
problem with the last line of make for these 2 modules). I'll put the errors
I get when trying to recompile each of the offending modules below.

But first I want to report on the results. GRASS starts and seems to work
fine. But...

rasters won't display in the TclTk canvas. Vectors will display, but rasters
won't. They are present (I can test with r.what), but you can't see them.
I'm pretty sure that it has to do with transparency, mask, or the like in
the PNG driver. Have there been any very recent changes that might affect
this?

NVIZ is still broken, even in the x11 version (which is what I compiled).

v.digit has the reported bugs--which it doesn't have when runing Lorenzo's
10 June binaries on my laptop.

Here are the compilation errors. I've rerun make for each module that
reported an error and list the results below. I have no idea what's wrong.
The frustrating thing is that it has gotten progressively worse each time I
update and compile over the past 2 weeks--and I've tried make clean's. Any
suggestion would be welcome. If I'm the only one with a problem, then
hopefully someone can help sort it out. But I'm worried that others might be
having similar issues with the current cvs version for Mac.

Michael

GRASS GIS compilation log
-------------------------
Started compilation: Tue Jul 25 12:52:38 MST 2006
--
Errors in:
/Users/cmbarton/grass_dev/grass6/display/d.path
/Users/cmbarton/grass_dev/grass6/display/d.vect
/Users/cmbarton/grass_dev/grass6/gui/tcltk/d.m
/Users/cmbarton/grass_dev/grass6/gui/tcltk/gis.m
/Users/cmbarton/grass_dev/grass6/vector/v.digit
--

D.PATH
anthgradpc7:~/grass_dev/grass6/display cmbarton$ cd d.path
anthgradpc7:~/grass_dev/grass6/display/d.path cmbarton$ make
gcc -L/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib
-L/usr/local/grasslib/lib -L/usr/local/pgsql/lib
-I/usr/local/grasslib/include -DPACKAGE=\""grassmods"\" -o
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/d.path
OBJ.powerpc-apple-darwin8.7.0/main.o OBJ.powerpc-apple-darwin8.7.0/select.o
-lgrass_display -lgrass_raster -lgrass_vect -lgrass_dig2 -lgrass_dgl
-lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase
-L/usr/local/grasslib/lib -lgdal -lgrass_dgl -lgrass_dbmiclient
-lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lintl -lz
/usr/bin/ld: warning prebinding disabled because dependent library:
/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/lib/libg
rass_display.dylib is not prebound
/usr/bin/ld: multiple definitions of symbol _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_raster.dylib(com_io.o) definition of _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_gis.dylib(icon.o) definition of _trans
collect2: ld returned 1 exit status
make: ***
[/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/d.path]
Error 1

D.VECT
anthgradpc7:~/grass_dev/grass6/display cmbarton$ cd d.vect
anthgradpc7:~/grass_dev/grass6/display/d.vect cmbarton$ make
gcc -L/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib
-L/usr/local/grasslib/lib -L/usr/local/pgsql/lib
-I/usr/local/grasslib/include -DPACKAGE=\""grassmods"\" -o
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/d.vect
OBJ.powerpc-apple-darwin8.7.0/area.o OBJ.powerpc-apple-darwin8.7.0/attr.o
OBJ.powerpc-apple-darwin8.7.0/dir.o OBJ.powerpc-apple-darwin8.7.0/label.o
OBJ.powerpc-apple-darwin8.7.0/main.o OBJ.powerpc-apple-darwin8.7.0/plot1.o
OBJ.powerpc-apple-darwin8.7.0/topo.o OBJ.powerpc-apple-darwin8.7.0/zcoor.o
-lgrass_display -lgrass_raster -lgrass_vect -lgrass_dig2 -lgrass_dgl
-lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase
-L/usr/local/grasslib/lib -lgdal -lgrass_dbmiclient -lgrass_dbmibase
-lgrass_gis -lgrass_datetime -lz -lintl -lgrass_symb -lz
/usr/bin/ld: warning prebinding disabled because dependent library:
/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/lib/libg
rass_display.dylib is not prebound
/usr/bin/ld: multiple definitions of symbol _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_gis.dylib(icon.o) definition of _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_raster.dylib(com_io.o) definition of _trans
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may
result in errors or different symbols being used
symbol _trans used from dynamic library
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_gis.dylib(icon.o) not from earlier dynamic library
/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/lib/libg
rass_raster.dylib(com_io.o)
collect2: ld returned 1 exit status
make: ***
[/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/d.vect]
Error 1

V.DIGIT
anthgradpc7:~/grass_dev/grass6/vector cmbarton$ cd v.digit
anthgradpc7:~/grass_dev/grass6/vector/v.digit cmbarton$ make
gcc -L/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib
-L/usr/local/grasslib/lib -L/usr/local/pgsql/lib -I/usr/X11R6/include
-I/usr/local/grasslib/include -I/usr/local/grasslib/include
-I/usr/local/grasslib/include -DPACKAGE=\""grassmods"\" -o
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/v.digit
OBJ.powerpc-apple-darwin8.7.0/attr.o
OBJ.powerpc-apple-darwin8.7.0/background.o
OBJ.powerpc-apple-darwin8.7.0/c_face.o OBJ.powerpc-apple-darwin8.7.0/cat.o
OBJ.powerpc-apple-darwin8.7.0/centre.o
OBJ.powerpc-apple-darwin8.7.0/display.o
OBJ.powerpc-apple-darwin8.7.0/driver.o
OBJ.powerpc-apple-darwin8.7.0/i_face.o OBJ.powerpc-apple-darwin8.7.0/line.o
OBJ.powerpc-apple-darwin8.7.0/main.o OBJ.powerpc-apple-darwin8.7.0/symb.o
OBJ.powerpc-apple-darwin8.7.0/util.o OBJ.powerpc-apple-darwin8.7.0/var.o
OBJ.powerpc-apple-darwin8.7.0/vertex.o OBJ.powerpc-apple-darwin8.7.0/zoom.o
-lgrass_D -lgrass_display -lgrass_raster -lgrass_vect -lgrass_dig2
-lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase
-L/usr/local/grasslib/lib -lgdal -lgrass_form -lgrass_gis -lgrass_datetime
-lz -lintl -L/usr/local/grasslib/lib -ltk8.4 -ltcl8.4 -lz
/usr/bin/ld: warning prebinding disabled because dependent library:
/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/lib/libg
rass_D.dylib is not prebound
/usr/bin/ld: multiple definitions of symbol _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_gis.dylib(icon.o) definition of _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_raster.dylib(com_io.o) definition of _trans
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may
result in errors or different symbols being used
symbol _trans used from dynamic library
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_gis.dylib(icon.o) not from earlier dynamic library
/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/lib/libg
rass_raster.dylib(com_io.o)
collect2: ld returned 1 exit status
make: ***
[/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/v.digit
] Error 1

GIS.M
anthgradpc7:~/grass_dev/grass6/gui/tcltk cmbarton$ cd gis.m
anthgradpc7:~/grass_dev/grass6/gui/tcltk/gis.m cmbarton$ make
GISRC=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/demolo
cation/.grassrc61
GISBASE=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0
PATH=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin:$PA
TH
DYLD_LIBRARY_PATH="/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwi
n8.7.0/lib:"
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts/gis.
m --html-description | grep -v '</body>\|</html>' > gis.m.tmp.html ; true
mkdir -p
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html
mv -f gis.m.tmp.html
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html/gi
s.m.html
for file in *.png *.jpg ; do \
        head -n 1 $file | grep '^#!' > /dev/null ; \
        if [ $? -ne 0 ] ; then \
           /usr/bin/install -c -m 644 $file
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html ;
\
        fi \
        done 2> /dev/null ; true
if [ ! -d
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts ] ;
then mkdir -p
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts; fi
/usr/bin/install -c -m 755 gis.m
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts
if [ ! -d
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm ] ;
then mkdir -p
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm; fi
if [ ! -d
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm/scrip
t/ ] ; then mkdir -p
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm/scrip
t/ ; fi
/usr/bin/install -c -m 755 *.tcl
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm
/usr/bin/install -c -m 644 *.gif
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm
/usr/bin/install -c -m 755 script/*.*
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm/scrip
t
install: script/CVS.sandboxinfo: Inappropriate file type or format
make: *** [default] Error 71

D.M
anthgradpc7:~/grass_dev/grass6/gui/tcltk cmbarton$ cd d.m
anthgradpc7:~/grass_dev/grass6/gui/tcltk/d.m cmbarton$ make
GISRC=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/demolo
cation/.grassrc61
GISBASE=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0
PATH=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin:$PA
TH
DYLD_LIBRARY_PATH="/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwi
n8.7.0/lib:"
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts/d.m
--html-description | grep -v '</body>\|</html>' > d.m.tmp.html ; true
mkdir -p
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html
mv -f d.m.tmp.html
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html/d.
m.html
for file in *.png *.jpg ; do \
        head -n 1 $file | grep '^#!' > /dev/null ; \
        if [ $? -ne 0 ] ; then \
           /usr/bin/install -c -m 644 $file
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html ;
\
        fi \
        done 2> /dev/null ; true
__________________________________________
Michael Barton, Professor of Anthropology
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

From: William Kyngesburye <woklist@kyngchaos.com>
Reply-To: William Kyngesburye <kyngchaos@kyngchaos.com>
Date: Sun, 23 Jul 2006 13:00:52 -0500
To: Michael Barton <michael.barton@asu.edu>, <grass-bugs@intevation.de>
Cc: <grass-dev@grass.itc.it>
Subject: Re: [bug #4768] (grass) nviz segfault on startup when

On Jul 23, 2006, at 12:33 PM, Michael Barton via RT wrote:

William,

This is great news.

Could you send me the details of how you set this up and configured it
(including your list of configure flags) so that I can duplicate
it? I won't
be able to do it until at least Tuesday or maybe Wednesday, so
there is no
hurry. But I'd like to try it to see if I can do it too.

Actually, simple standard stuff for configuration. In addition to
setting includes/libs options for the various graphics, GIS and DB
libraries, these are the important settings:

--with-tcltk-includes=/usr/local/grasslibs/include \
--with-tcltk-libs=/usr/local/grasslibs/lib \
--with-x --without-motif --without-glw --with-opengl=x11

I suppose with an X11-only build like this, you could add motif and
glw. This example assumes an X11 tcltk build in /usr/local/
grasslibs, which is where I installed mine. I think Lorenzo uses
'grasslib', without the plural, so you could try his tcltk. Or build
your own wherever you like, but I suggest an isolated location like
this so other alternate builds of GRASS (ie Aqua) don't get
confused. ie, if you build the X11 tcltk in /usr/X11R6, an Aqua
build of GRASS that includes X11 support might pick up the X11 tcltk
at link time, not the Aqua version.

Which brings me to the key here with TclTk - I think the X11 NVIZ
crash is because of GRASS getting accidentally linked to Apple's Aqua
TclTk (which is quite old BTW, 8.4.7) instead of the intended X11
TclTk. I guess one thing to do is make sure you use --with-tcltk-
libs=. And in my case, I had a broken X11 TclTk install, so even
then it didn't link to it until I fixed it. If a -L/usr/lib gets
somehow inserted in the link step before -L/path/to/your/X11/tcltk/
lib, that could cause it to grab Apple's TclTk.

A way to check if it linked right is to use otool:

$ otool -L /usr/local/grass-6.1.cvs/bin/nviz

(or you can check the nviz binary in the grass source/dist/bin before
make install)

This will list all the library paths nviz needs. Make sure tcl and
tk libs have the right paths. Fixing it is another matter, but
hopefully it will be right the first time.

-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled
with hyena offal?
Second Pogril: I don't know. Why IS life like sticking your head in
a bucket filled with hyena offal?
First Pogril: I don't know either. Wretched, isn't it?

-HitchHiker's Guide to the Galaxy

Michael Barton wrote:

D.PATH
anthgradpc7:~/grass_dev/grass6/display cmbarton$ cd d.path
anthgradpc7:~/grass_dev/grass6/display/d.path cmbarton$ make
gcc -L/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib -L/usr/local/grasslib/lib -L/usr/local/pgsql/lib -I/usr/local/grasslib/include -DPACKAGE=\""grassmods"\" -o /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/d.path OBJ.powerpc-apple-darwin8.7.0/main.o OBJ.powerpc-apple-darwin8.7.0/select.o -lgrass_display -lgrass_raster -lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -L/usr/local/grasslib/lib -lgdal -lgrass_dgl -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lintl -lz
/usr/bin/ld: warning prebinding disabled because dependent library: /Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/lib/libgrass_display.dylib is not prebound
/usr/bin/ld: multiple definitions of symbol _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_raster.dylib(com_io.o) definition of _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_gis.dylib(icon.o) definition of _trans

[Is it possible to avoid line-wrapping the output from make?]

The one in libgis doesn't need to be exported:

  --- lib/gis/icon.c 9 Feb 2006 03:08:56 -0000 1.3
  +++ lib/gis/icon.c 26 Jul 2006 00:07:36 -0000
  @@ -2,7 +2,7 @@
   #include <math.h>
   #include <grass/gis.h>
   
  -int trans ( double *x, double *y, int n_points, double angle, double scale,
  +static int trans ( double *x, double *y, int n_points, double angle, double scale,
                        double xc, double yc ) {
       int i;
       double r, a;

The odd thing is that I can't see any reason why this issue wouldn't
affect every d.* command.

GIS.M
anthgradpc7:~/grass_dev/grass6/gui/tcltk cmbarton$ cd gis.m
anthgradpc7:~/grass_dev/grass6/gui/tcltk/gis.m cmbarton$ make
GISRC=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/demolocation/.grassrc61
GISBASE=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0
PATH=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin:$PATH
DYLD_LIBRARY_PATH="/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib:"
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts/gis.m --html-description | grep -v '</body>\|</html>' > gis.m.tmp.html ; true
mkdir -p /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html
mv -f gis.m.tmp.html
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html/gis.m.html
for file in *.png *.jpg ; do \
        head -n 1 $file | grep '^#!' > /dev/null ; \
        if [ $? -ne 0 ] ; then \
           /usr/bin/install -c -m 644 $file
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html ; \
        fi \
        done 2> /dev/null ; true
if [ ! -d /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts ] ; then mkdir -p /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts; fi
/usr/bin/install -c -m 755 gis.m /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts
if [ ! -d /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm ] ; then mkdir -p /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm; fi
if [ ! -d /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm/script/ ] ; then mkdir -p /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm/script/ ; fi
/usr/bin/install -c -m 755 *.tcl /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm
/usr/bin/install -c -m 644 *.gif /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm
/usr/bin/install -c -m 755 script/*.* /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm/script
install: script/CVS.sandboxinfo: Inappropriate file type or format

The only robust solution is to list the specific files rather than
using "*.*". You can't make any assumptions about what other files or
directories might get added by the OS or development tools (e.g.
Windows' Explorer likes to put Desktop.ini files everywhere).

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

On Jul 25, 2006, at 6:52 PM, Michael Barton wrote:

Well,

I had a few bits of time and squeezed in a couple of attempts to recompile
GRASS for Mac OSX PPC.

In the end, I reverted to Lorenzo Moretti's libraries and the configure
script that had worked before with them.

Were you having other problems?

rasters won't display in the TclTk canvas. Vectors will display, but rasters
won't. They are present (I can test with r.what), but you can't see them.
I'm pretty sure that it has to do with transparency, mask, or the like in
the PNG driver. Have there been any very recent changes that might affect
this?

NVIZ is still broken, even in the x11 version (which is what I compiled).

Still? Hmm, I just built the snapshot from this weekend, and everything works as expected (NVIZ/X11 OK, gis.m display OK).

D.PATH
anthgradpc7:~/grass_dev/grass6/display cmbarton$ cd d.path
anthgradpc7:~/grass_dev/grass6/display/d.path cmbarton$ make
gcc -L/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib
-L/usr/local/grasslib/lib -L/usr/local/pgsql/lib
-I/usr/local/grasslib/include -DPACKAGE=\""grassmods"\" -o
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/d.path
OBJ.powerpc-apple-darwin8.7.0/main.o OBJ.powerpc-apple-darwin8.7.0/select.o
-lgrass_display -lgrass_raster -lgrass_vect -lgrass_dig2 -lgrass_dgl
-lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase
-L/usr/local/grasslib/lib -lgdal -lgrass_dgl -lgrass_dbmiclient
-lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lintl -lz
/usr/bin/ld: warning prebinding disabled because dependent library:
/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/lib/libg
rass_display.dylib is not prebound
/usr/bin/ld: multiple definitions of symbol _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_raster.dylib(com_io.o) definition of _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_gis.dylib(icon.o) definition of _trans
collect2: ld returned 1 exit status
make: ***
[/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/d.path]
Error 1

The gcc line looks comparable to what I get. The first warning about not prebinding makes me wonder - which version of GCC are you using? I think prebinding on on by default in GCC 3.3, and I've found that ported stuff generally in not configured for prebinding and fails. Probably nothing to do with the make errors causing problems itself, but GCC 3.3... that might cause multiple defs to be considered errors.

I suspect that, with Lorenzo's script, it's switching to GCC 3.3 to maintain Panther compatibility (tho that would have to happen with a sudo). The other thing that might affect prebinding and other linking options is MACOSX_DEPLOYMENT_TARGET, which defaults to 10.1. I have mine set to 10.3 in my .bash_profile.

PS. very close to frameworks and a standalone universal GRASS app. :slight_smile: Lorenzo - do you have any description on how to use your GRASS start app Xcode project or how it works? Any updates to it? (it's over a year old)

-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/

"I ache, therefore I am. Or in my case - I am, therefore I ache."

- Marvin

I got these errors with Kyngesburye's flags.
Agustin
Imac G5
Started compilation: Fri Jul 28 00:49:21 CEST 2006
--
Errors in:
/Users/agus/grass6/lib/gmath
/Users/agus/grass6/lib/imagery
/Users/agus/grass6/lib/rst/interp_float
/Users/agus/grass6/general/g.transform
/Users/agus/grass6/imagery/i.class
/Users/agus/grass6/imagery/i.cluster
/Users/agus/grass6/imagery/i.gensig
/Users/agus/grass6/imagery/i.gensigset
/Users/agus/grass6/imagery/i.group
/Users/agus/grass6/imagery/i.his.rgb
/Users/agus/grass6/imagery/i.maxlik
/Users/agus/grass6/imagery/i.ortho.photo/libes
/Users/agus/grass6/imagery/i.ortho.photo/menu
/Users/agus/grass6/imagery/i.ortho.photo/photo.2image
/Users/agus/grass6/imagery/i.ortho.photo/photo.2target
/Users/agus/grass6/imagery/i.ortho.photo/photo.camera
/Users/agus/grass6/imagery/i.ortho.photo/photo.elev
/Users/agus/grass6/imagery/i.ortho.photo/photo.init
/Users/agus/grass6/imagery/i.ortho.photo/photo.rectify
/Users/agus/grass6/imagery/i.ortho.photo/photo.target
/Users/agus/grass6/imagery/i.points
/Users/agus/grass6/imagery/i.rectify
/Users/agus/grass6/imagery/i.rgb.his
/Users/agus/grass6/imagery/i.smap/shapiro
/Users/agus/grass6/imagery/i.target
/Users/agus/grass6/imagery/i.vpoints
/Users/agus/grass6/imagery/i.pca
/Users/agus/grass6/imagery/i.cca
/Users/agus/grass6/imagery/i.fft
/Users/agus/grass6/imagery/i.ifft
/Users/agus/grass6/imagery/i.zc
/Users/agus/grass6/ps/ps.map
/Users/agus/grass6/raster/r.param.scale
/Users/agus/grass6/raster/r.resamp.rst
/Users/agus/grass6/raster/simwe/simlib
/Users/agus/grass6/raster/simwe/r.sim.water
/Users/agus/grass6/raster/simwe/r.sim.sediment
/Users/agus/grass6/raster/r.in.gdal
/Users/agus/grass6/raster/r.surf.fractal
/Users/agus/grass6/vector/v.kernel
/Users/agus/grass6/vector/v.surf.rst
81-202-194-12:/Users/agus/grass6/lib/gmath root# make
cc -dynamiclib -flat_namespace -compatibility_version 6.1 -current_version 6.1 -install_name /usr/local/grass-6.1.cvs/lib/libgrass_gmath.dylib -o /Users/agus/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_gmath.6.1.cvs.dylib -L/Users/agus/grass6/dist.powerpc-apple-darwin8.7.0/lib -L/usr/local/grasslib/lib -L/usr/local/pgsql/lib OBJ.powerpc-apple-darwin8.7.0/brent.o OBJ.powerpc-apple-darwin8.7.0/dalloc.o OBJ.powerpc-apple-darwin8.7.0/del2g.o OBJ.powerpc-apple-darwin8.7.0/eigen.o OBJ.powerpc-apple-darwin8.7.0/eigen_tools.o OBJ.powerpc-apple-darwin8.7.0/fft.o OBJ.powerpc-apple-darwin8.7.0/gauss.o OBJ.powerpc-apple-darwin8.7.0/getg.o OBJ.powerpc-apple-darwin8.7.0/ialloc.o OBJ.powerpc-apple-darwin8.7.0/jacobi.o OBJ.powerpc-apple-darwin8.7.0/la.o OBJ.powerpc-apple-darwin8.7.0/lu.o OBJ.powerpc-apple-darwin8.7.0/max_pow2.o OBJ.powerpc-apple-darwin8.7.0/mult.o OBJ.powerpc-apple-darwin8.7.0/rand1.o OBJ.powerpc-apple-darwin8.7.0/svd.o -lgrass_gis -lgrass_datetime -lz -lfftw3 && if [ -z "" ] ; then ln -f -s libgrass_gmath.6.1.cvs.dylib /Users/agus/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_gmath.dylib; fi
ld: Undefined symbols:
_fftw2d_create_plan
_fftwnd_destroy_plan
_fftwnd_one
/usr/bin/libtool: internal link edit command failed
make: *** [/Users/agus/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_gmath.6.1.cvs.dylib] Error 1
Agustin

On 26/07/2006, at 01:52 AM, Michael Barton wrote:

Well,

I had a few bits of time and squeezed in a couple of attempts to recompile
GRASS for Mac OSX PPC.

In the end, I reverted to Lorenzo Moretti's libraries and the configure
script that had worked before with them.

GRASS compiles, but has errors in d.path, d.vect, and v.digit (these are new
since my last attempt at compiling last week). It also has errors in reading
the makefile for gism and dm (these have occurred every time and refer to a
problem with the last line of make for these 2 modules). I'll put the errors
I get when trying to recompile each of the offending modules below.

But first I want to report on the results. GRASS starts and seems to work
fine. But...

rasters won't display in the TclTk canvas. Vectors will display, but rasters
won't. They are present (I can test with r.what), but you can't see them.
I'm pretty sure that it has to do with transparency, mask, or the like in
the PNG driver. Have there been any very recent changes that might affect
this?

NVIZ is still broken, even in the x11 version (which is what I compiled).

v.digit has the reported bugs--which it doesn't have when runing Lorenzo's
10 June binaries on my laptop.

Here are the compilation errors. I've rerun make for each module that
reported an error and list the results below. I have no idea what's wrong.
The frustrating thing is that it has gotten progressively worse each time I
update and compile over the past 2 weeks--and I've tried make clean's. Any
suggestion would be welcome. If I'm the only one with a problem, then
hopefully someone can help sort it out. But I'm worried that others might be
having similar issues with the current cvs version for Mac.

Michael

GRASS GIS compilation log
-------------------------
Started compilation: Tue Jul 25 12:52:38 MST 2006
--
Errors in:
/Users/cmbarton/grass_dev/grass6/display/d.path
/Users/cmbarton/grass_dev/grass6/display/d.vect
/Users/cmbarton/grass_dev/grass6/gui/tcltk/d.m
/Users/cmbarton/grass_dev/grass6/gui/tcltk/gis.m
/Users/cmbarton/grass_dev/grass6/vector/v.digit
--

D.PATH
anthgradpc7:~/grass_dev/grass6/display cmbarton$ cd d.path
anthgradpc7:~/grass_dev/grass6/display/d.path cmbarton$ make
gcc -L/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib
-L/usr/local/grasslib/lib -L/usr/local/pgsql/lib
-I/usr/local/grasslib/include -DPACKAGE=\""grassmods"\" -o
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/d.path
OBJ.powerpc-apple-darwin8.7.0/main.o OBJ.powerpc-apple-darwin8.7.0/select.o
-lgrass_display -lgrass_raster -lgrass_vect -lgrass_dig2 -lgrass_dgl
-lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase
-L/usr/local/grasslib/lib -lgdal -lgrass_dgl -lgrass_dbmiclient
-lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lintl -lz
/usr/bin/ld: warning prebinding disabled because dependent library:
/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/lib/libg
rass_display.dylib is not prebound
/usr/bin/ld: multiple definitions of symbol _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_raster.dylib(com_io.o) definition of _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_gis.dylib(icon.o) definition of _trans
collect2: ld returned 1 exit status
make: ***
[/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/d.path]
Error 1

D.VECT
anthgradpc7:~/grass_dev/grass6/display cmbarton$ cd d.vect
anthgradpc7:~/grass_dev/grass6/display/d.vect cmbarton$ make
gcc -L/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib
-L/usr/local/grasslib/lib -L/usr/local/pgsql/lib
-I/usr/local/grasslib/include -DPACKAGE=\""grassmods"\" -o
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/d.vect
OBJ.powerpc-apple-darwin8.7.0/area.o OBJ.powerpc-apple-darwin8.7.0/attr.o
OBJ.powerpc-apple-darwin8.7.0/dir.o OBJ.powerpc-apple-darwin8.7.0/label.o
OBJ.powerpc-apple-darwin8.7.0/main.o OBJ.powerpc-apple-darwin8.7.0/plot1.o
OBJ.powerpc-apple-darwin8.7.0/topo.o OBJ.powerpc-apple-darwin8.7.0/zcoor.o
-lgrass_display -lgrass_raster -lgrass_vect -lgrass_dig2 -lgrass_dgl
-lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase
-L/usr/local/grasslib/lib -lgdal -lgrass_dbmiclient -lgrass_dbmibase
-lgrass_gis -lgrass_datetime -lz -lintl -lgrass_symb -lz
/usr/bin/ld: warning prebinding disabled because dependent library:
/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/lib/libg
rass_display.dylib is not prebound
/usr/bin/ld: multiple definitions of symbol _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_gis.dylib(icon.o) definition of _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_raster.dylib(com_io.o) definition of _trans
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may
result in errors or different symbols being used
symbol _trans used from dynamic library
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_gis.dylib(icon.o) not from earlier dynamic library
/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/lib/libg
rass_raster.dylib(com_io.o)
collect2: ld returned 1 exit status
make: ***
[/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/d.vect]
Error 1

V.DIGIT
anthgradpc7:~/grass_dev/grass6/vector cmbarton$ cd v.digit
anthgradpc7:~/grass_dev/grass6/vector/v.digit cmbarton$ make
gcc -L/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib
-L/usr/local/grasslib/lib -L/usr/local/pgsql/lib -I/usr/X11R6/include
-I/usr/local/grasslib/include -I/usr/local/grasslib/include
-I/usr/local/grasslib/include -DPACKAGE=\""grassmods"\" -o
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/v.digit
OBJ.powerpc-apple-darwin8.7.0/attr.o
OBJ.powerpc-apple-darwin8.7.0/background.o
OBJ.powerpc-apple-darwin8.7.0/c_face.o OBJ.powerpc-apple-darwin8.7.0/cat.o
OBJ.powerpc-apple-darwin8.7.0/centre.o
OBJ.powerpc-apple-darwin8.7.0/display.o
OBJ.powerpc-apple-darwin8.7.0/driver.o
OBJ.powerpc-apple-darwin8.7.0/i_face.o OBJ.powerpc-apple-darwin8.7.0/line.o
OBJ.powerpc-apple-darwin8.7.0/main.o OBJ.powerpc-apple-darwin8.7.0/symb.o
OBJ.powerpc-apple-darwin8.7.0/util.o OBJ.powerpc-apple-darwin8.7.0/var.o
OBJ.powerpc-apple-darwin8.7.0/vertex.o OBJ.powerpc-apple-darwin8.7.0/zoom.o
-lgrass_D -lgrass_display -lgrass_raster -lgrass_vect -lgrass_dig2
-lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase
-L/usr/local/grasslib/lib -lgdal -lgrass_form -lgrass_gis -lgrass_datetime
-lz -lintl -L/usr/local/grasslib/lib -ltk8.4 -ltcl8.4 -lz
/usr/bin/ld: warning prebinding disabled because dependent library:
/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/lib/libg
rass_D.dylib is not prebound
/usr/bin/ld: multiple definitions of symbol _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_gis.dylib(icon.o) definition of _trans
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_raster.dylib(com_io.o) definition of _trans
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may
result in errors or different symbols being used
symbol _trans used from dynamic library
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass
_gis.dylib(icon.o) not from earlier dynamic library
/Applications/Grass/grass61cvs.app/Contents/Resources/grass-6.1.cvs/lib/libg
rass_raster.dylib(com_io.o)
collect2: ld returned 1 exit status
make: ***
[/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin/v.digit
] Error 1

GIS.M
anthgradpc7:~/grass_dev/grass6/gui/tcltk cmbarton$ cd gis.m
anthgradpc7:~/grass_dev/grass6/gui/tcltk/gis.m cmbarton$ make
GISRC=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/demolo
cation/.grassrc61
GISBASE=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0
PATH=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin:$PA
TH
DYLD_LIBRARY_PATH="/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwi
n8.7.0/lib:"
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts/gis.
m --html-description | grep -v '</body>\|</html>' > gis.m.tmp.html ; true
mkdir -p
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html
mv -f gis.m.tmp.html
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html/gi
s.m.html
for file in *.png *.jpg ; do \
        head -n 1 $file | grep '^#!' > /dev/null ; \
        if [ $? -ne 0 ] ; then \
           /usr/bin/install -c -m 644 $file
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html ;
\
        fi \
        done 2> /dev/null ; true
if [ ! -d
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts ] ;
then mkdir -p
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts; fi
/usr/bin/install -c -m 755 gis.m
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts
if [ ! -d
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm ] ;
then mkdir -p
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm; fi
if [ ! -d
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm/scrip
t/ ] ; then mkdir -p
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm/scrip
t/ ; fi
/usr/bin/install -c -m 755 *.tcl
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm
/usr/bin/install -c -m 644 *.gif
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm
/usr/bin/install -c -m 755 script/*.*
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/etc/gm/scrip
t
install: script/CVS.sandboxinfo: Inappropriate file type or format
make: *** [default] Error 71

D.M
anthgradpc7:~/grass_dev/grass6/gui/tcltk cmbarton$ cd d.m
anthgradpc7:~/grass_dev/grass6/gui/tcltk/d.m cmbarton$ make
GISRC=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/demolo
cation/.grassrc61
GISBASE=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0
PATH=/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/bin:$PA
TH
DYLD_LIBRARY_PATH="/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwi
n8.7.0/lib:"
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/scripts/d.m
--html-description | grep -v '</body>\|</html>' > d.m.tmp.html ; true
mkdir -p
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html
mv -f d.m.tmp.html
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html/d.
m.html
for file in *.png *.jpg ; do \
        head -n 1 $file | grep '^#!' > /dev/null ; \
        if [ $? -ne 0 ] ; then \
           /usr/bin/install -c -m 644 $file
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/docs/html ;
\
        fi \
        done 2> /dev/null ; true
__________________________________________
Michael Barton, Professor of Anthropology
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

From: William Kyngesburye <woklist@kyngchaos.com>
Reply-To: William Kyngesburye <kyngchaos@kyngchaos.com>
Date: Sun, 23 Jul 2006 13:00:52 -0500
To: Michael Barton <michael.barton@asu.edu>, <grass-bugs@intevation.de>
Cc: <grass-dev@grass.itc.it>
Subject: Re: [bug #4768] (grass) nviz segfault on startup when

On Jul 23, 2006, at 12:33 PM, Michael Barton via RT wrote:

William,

This is great news.

Could you send me the details of how you set this up and configured it
(including your list of configure flags) so that I can duplicate
it? I won't
be able to do it until at least Tuesday or maybe Wednesday, so
there is no
hurry. But I'd like to try it to see if I can do it too.

Actually, simple standard stuff for configuration. In addition to
setting includes/libs options for the various graphics, GIS and DB
libraries, these are the important settings:

--with-tcltk-includes=/usr/local/grasslibs/include \
--with-tcltk-libs=/usr/local/grasslibs/lib \
--with-x --without-motif --without-glw --with-opengl=x11

I suppose with an X11-only build like this, you could add motif and
glw. This example assumes an X11 tcltk build in /usr/local/
grasslibs, which is where I installed mine. I think Lorenzo uses
'grasslib', without the plural, so you could try his tcltk. Or build
your own wherever you like, but I suggest an isolated location like
this so other alternate builds of GRASS (ie Aqua) don't get
confused. ie, if you build the X11 tcltk in /usr/X11R6, an Aqua
build of GRASS that includes X11 support might pick up the X11 tcltk
at link time, not the Aqua version.

Which brings me to the key here with TclTk - I think the X11 NVIZ
crash is because of GRASS getting accidentally linked to Apple's Aqua
TclTk (which is quite old BTW, 8.4.7) instead of the intended X11
TclTk. I guess one thing to do is make sure you use --with-tcltk-
libs=. And in my case, I had a broken X11 TclTk install, so even
then it didn't link to it until I fixed it. If a -L/usr/lib gets
somehow inserted in the link step before -L/path/to/your/X11/tcltk/
lib, that could cause it to grab Apple's TclTk.

A way to check if it linked right is to use otool:

$ otool -L /usr/local/grass-6.1.cvs/bin/nviz

(or you can check the nviz binary in the grass source/dist/bin before
make install)

This will list all the library paths nviz needs. Make sure tcl and
tk libs have the right paths. Fixing it is another matter, but
hopefully it will be right the first time.

-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled
with hyena offal?
Second Pogril: I don't know. Why IS life like sticking your head in
a bucket filled with hyena offal?
First Pogril: I don't know either. Wretched, isn't it?

-HitchHiker's Guide to the Galaxy

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

On Jul 27, 2006, at 6:35 PM, Agustin Diez Castillo wrote:

I got these errors with Kyngesburye's flags.
Agustin
Imac G5
Started compilation: Fri Jul 28 00:49:21 CEST 2006
--
Errors in:
/Users/agus/grass6/lib/gmath

...

cc -dynamiclib -flat_namespace -compatibility_version 6.1 -current_version 6.1 -install_name /usr/local/grass-6.1.cvs/lib/libgrass_gmath.dylib -o /Users/agus/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_gmath.6.1.cvs.dylib -L/Users/agus/grass6/dist.powerpc-apple-darwin8.7.0/lib -L/usr/local/grasslib/lib -L/usr/local/pgsql/lib OBJ.powerpc-apple-darwin8.7.0/brent.o OBJ.powerpc-apple-darwin8.7.0/dalloc.o OBJ.powerpc-apple-darwin8.7.0/del2g.o OBJ.powerpc-apple-darwin8.7.0/eigen.o OBJ.powerpc-apple-darwin8.7.0/eigen_tools.o OBJ.powerpc-apple-darwin8.7.0/fft.o OBJ.powerpc-apple-darwin8.7.0/gauss.o OBJ.powerpc-apple-darwin8.7.0/getg.o OBJ.powerpc-apple-darwin8.7.0/ialloc.o OBJ.powerpc-apple-darwin8.7.0/jacobi.o OBJ.powerpc-apple-darwin8.7.0/la.o OBJ.powerpc-apple-darwin8.7.0/lu.o OBJ.powerpc-apple-darwin8.7.0/max_pow2.o OBJ.powerpc-apple-darwin8.7.0/mult.o OBJ.powerpc-apple-darwin8.7.0/rand1.o OBJ.powerpc-apple-darwin8.7.0/svd.o -lgrass_gis -lgrass_datetime -lz -lfftw3 && if [ -z "" ] ; then ln -f -s libgrass_gmath.6.1.cvs.dylib /Users/agus/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_gmath.dylib; fi
ld: Undefined symbols:
_fftw2d_create_plan
_fftwnd_destroy_plan
_fftwnd_one
/usr/bin/libtool: internal link edit command failed
make: *** [/Users/agus/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_gmath.6.1.cvs.dylib] Error 1
Agustin

Well, that one is a problem with FFTW. From the -L options present, it looks like it's expecting it in Lorenzo's grasslib. And as the newer FFTW3. Those functions are a part of the old FFTW2, so configure somehow misidentified FFTW3 as FFTW2. Maybe both are in grasslib and configure is getting confused?

--with-tcltk-includes=/usr/local/grasslibs/include \
--with-tcltk-libs=/usr/local/grasslibs/lib \
--with-x --without-motif --without-glw --with-opengl=x11

-----
William Kyngesburye <kyngchaos@kyngchaos.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

Agustin Diez Castillo wrote:

Errors in:
/Users/agus/grass6/lib/gmath

81-202-194-12:/Users/agus/grass6/lib/gmath root# make
cc -dynamiclib -flat_namespace -compatibility_version 6.1 -

[snip]

apple-darwin8.7.0/svd.o -lgrass_gis -lgrass_datetime -lz -lfftw3
   && if [ -z "" ] ; then ln -f -s libgrass_gmath.
6.1.cvs.dylib /Users/agus/grass6/dist.powerpc-apple-darwin8.7.0/lib/
libgrass_gmath.dylib; fi
ld: Undefined symbols:
_fftw2d_create_plan
_fftwnd_destroy_plan
_fftwnd_one

It's trying to use FFTW 2.x headers with the FFTW 3.x library.

You need to determine why the check for the FFTW 3.x headers fails;
look in config.log.

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

Thanks Glynn,
in a Dual Power Mac7.2 (Power Mac G5)
things went bettet but ...
Started compilation: Fri Jul 28 02:28:39 CEST 2006
--
Errors in:
/private/var/root/cvs_grass/grass6/raster/simwe/simlib
/private/var/root/cvs_grass/grass6/raster/simwe/r.sim.water
/private/var/root/cvs_grass/grass6/raster/simwe/r.sim.sediment
--
Finished compilation: Fri Jul 28 02:41:22 CEST 2006
(In case of errors please change into the directory with error and run 'make')
smigol:~/cvs_grass/grass6 root# cd /private/var/root/cvs_grass/grass6/raster/simwe/simlib
smigol:/private/var/root/cvs_grass/grass6/raster/simwe/simlib root# make
cc -dynamiclib -flat_namespace -compatibility_version 6.1 -current_version 6.1 -install_name /usr/local/grass-6.1.cvs/lib/libgrass_sim.dylib -o /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sim.6.1.cvs.dylib -L/private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib -L/usr/local/grasslib/lib -L/usr/local/pgsql/lib OBJ.powerpc-apple-darwin8.7.0/input.o OBJ.powerpc-apple-darwin8.7.0/random.o OBJ.powerpc-apple-darwin8.7.0/hydro.o OBJ.powerpc-apple-darwin8.7.0/output.o OBJ.powerpc-apple-darwin8.7.0/erod.o -lgrass_gis -lgrass_datetime -lz -lgrass_bitmap -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gmath -L/usr/local/grasslib/lib -lfftw3 -lgrass_linkm -lz -lgrass_sites && if [ -z "" ] ; then ln -f -s libgrass_sim.6.1.cvs.dylib /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sim.dylib; fi
ld: warning can't open dynamic library: /usr/local/grass-6.1.cvs/lib/libgrass_vect.dylib referenced from: /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sites.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: warning can't open dynamic library: /usr/local/grass-6.1.cvs/lib/libgrass_dig2.dylib referenced from: /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sites.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: warning can't open dynamic library: /usr/local/grass-6.1.cvs/lib/libgrass_dgl.dylib referenced from: /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sites.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: warning can't open dynamic library: /usr/local/grass-6.1.cvs/lib/libgrass_rtree.dylib referenced from: /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sites.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:
_Vect_append_point
_Vect_build
_Vect_cat_get
_Vect_cat_set
_Vect_close
_Vect_get_comment
_Vect_get_field
_Vect_get_name
_Vect_is_3d
_Vect_new_cats_struct
_Vect_new_line_struct
_Vect_open_new
_Vect_open_old
_Vect_read_next_line
_Vect_reset_cats
_Vect_reset_line
_Vect_set_comment
_Vect_set_date
_Vect_set_map_name
_Vect_set_open_level
_Vect_write_line
/usr/bin/libtool: internal link edit command failed
make: *** [/private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sim.6.1.cvs.dylib] Error 1
smigol:/private/var/root/cvs_grass/grass6/raster/simwe/simlib root# cd /private/var/root/cvs_grass/grass6/raster/simwe/r.sim.water
smigol:/private/var/root/cvs_grass/grass6/raster/simwe/r.sim.water root# make
gcc -L/private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib -L/usr/local/grasslib/lib -L/usr/local/pgsql/lib -I/usr/local/gislibs/include -DPACKAGE=\""grassmods"\" -o /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/bin/r.sim.water OBJ.powerpc-apple-darwin8.7.0/main.o -lgrass_sim -lgrass_bitmap -lgrass_linkm -lgrass_sites -lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -L/usr/local/gislibs/lib -lgdal -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_datetime -lgrass_gmath -L/usr/local/grasslib/lib -lfftw3 -lz
/usr/bin/ld: can't locate file for: -lgrass_sim
collect2: ld returned 1 exit status
make: *** [/private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/bin/r.sim.water] Error 1
smigol:/private/var/root/cvs_grass/grass6/raster/simwe/r.sim.water root# cd /private/var/root/cvs_grass/grass6/raster/simwe/r.sim.sediment
smigol:/private/var/root/cvs_grass/grass6/raster/simwe/r.sim.sediment root# make
gcc -L/private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib -L/usr/local/grasslib/lib -L/usr/local/pgsql/lib -I/usr/local/gislibs/include -DPACKAGE=\""grassmods"\" -o /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/bin/r.sim.sediment OBJ.powerpc-apple-darwin8.7.0/main.o -lgrass_sim -lgrass_bitmap -lgrass_linkm -lgrass_sites -lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -L/usr/local/gislibs/lib -lgdal -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz -lgrass_datetime -lgrass_gmath -L/usr/local/grasslib/lib -lfftw3 -lz
/usr/bin/ld: can't locate file for: -lgrass_sim
collect2: ld returned 1 exit status
make: *** [/private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/bin/r.sim.sediment] Error 1
Agustin

On 28/07/2006, at 03:00 AM, Glynn Clements wrote:

Agustin Diez Castillo wrote:

Errors in:
/Users/agus/grass6/lib/gmath

81-202-194-12:/Users/agus/grass6/lib/gmath root# make
cc -dynamiclib -flat_namespace -compatibility_version 6.1 -

[snip]

apple-darwin8.7.0/svd.o -lgrass_gis -lgrass_datetime -lz -lfftw3
   && if [ -z "" ] ; then ln -f -s libgrass_gmath.
6.1.cvs.dylib /Users/agus/grass6/dist.powerpc-apple-darwin8.7.0/lib/
libgrass_gmath.dylib; fi
ld: Undefined symbols:
_fftw2d_create_plan
_fftwnd_destroy_plan
_fftwnd_one

It's trying to use FFTW 2.x headers with the FFTW 3.x library.

You need to determine why the check for the FFTW 3.x headers fails;
look in config.log.

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

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

Odd. I have one big suggestion that *might* help, but should be taken seriously nonetheless.

Don't use the ROOT account to do this. Or anything, really. I presume you are using sudo su to change to root to build stuff.

You can simply use your normal login account to do the building. And in your home folder, or /Users/Shared (I use /Users/Shared/src). Then use 'sudo make install' for the final installation after make - you only temporarily switch to root to do the install, and your current environment sticks.

That said, I've had problems with simlib myself. This looks very similar. The problem is that libgrass_sites, which is used by simlib, itself uses libgrass_vect, not directly used by simlib. So it looks for libgrass_vect where libgrass_sites says it is, in the install location where it probably does not exist yet. My case is a little different, but the effect is the same - "No such file or directory".

Edit the makefile in raster/simwe/simlib and add $(VECTLIB) to the EXTRA_LIBS line and $(VECTDEP) to the DEPENDENCIES line.

I'm not sure this is really a bug, so I haven't reported it yet. In a fresh build it looks like it may well be a bug.

On Jul 27, 2006, at 11:23 PM, Agustin Diez Castillo wrote:

Thanks Glynn,
in a Dual Power Mac7.2 (Power Mac G5)
things went bettet but ...
Started compilation: Fri Jul 28 02:28:39 CEST 2006
--
Errors in:
/private/var/root/cvs_grass/grass6/raster/simwe/simlib
/private/var/root/cvs_grass/grass6/raster/simwe/r.sim.water
/private/var/root/cvs_grass/grass6/raster/simwe/r.sim.sediment
--
Finished compilation: Fri Jul 28 02:41:22 CEST 2006
(In case of errors please change into the directory with error and run 'make')
smigol:~/cvs_grass/grass6 root# cd /private/var/root/cvs_grass/grass6/raster/simwe/simlib
smigol:/private/var/root/cvs_grass/grass6/raster/simwe/simlib root# make
cc -dynamiclib -flat_namespace -compatibility_version 6.1 -current_version 6.1 -install_name /usr/local/grass-6.1.cvs/lib/libgrass_sim.dylib -o /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sim.6.1.cvs.dylib -L/private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib -L/usr/local/grasslib/lib -L/usr/local/pgsql/lib OBJ.powerpc-apple-darwin8.7.0/input.o OBJ.powerpc-apple-darwin8.7.0/random.o OBJ.powerpc-apple-darwin8.7.0/hydro.o OBJ.powerpc-apple-darwin8.7.0/output.o OBJ.powerpc-apple-darwin8.7.0/erod.o -lgrass_gis -lgrass_datetime -lz -lgrass_bitmap -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gmath -L/usr/local/grasslib/lib -lfftw3 -lgrass_linkm -lz -lgrass_sites && if [ -z "" ] ; then ln -f -s libgrass_sim.6.1.cvs.dylib /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sim.dylib; fi
ld: warning can't open dynamic library: /usr/local/grass-6.1.cvs/lib/libgrass_vect.dylib referenced from: /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sites.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: warning can't open dynamic library: /usr/local/grass-6.1.cvs/lib/libgrass_dig2.dylib referenced from: /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sites.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: warning can't open dynamic library: /usr/local/grass-6.1.cvs/lib/libgrass_dgl.dylib referenced from: /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sites.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: warning can't open dynamic library: /usr/local/grass-6.1.cvs/lib/libgrass_rtree.dylib referenced from: /private/var/root/cvs_grass/grass6/dist.powerpc-apple-darwin8.7.0/lib/libgrass_sites.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:

-----
William Kyngesburye <kyngchaos@kyngchaos.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

Platform: Mac PowerPC 64-bit
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: cvs_head_20060727
Following William’s indications No errors:
Started compilation: Fri Jul 28 07:40:05 CEST 2006

Errors in:

Finished compilation: Fri Jul 28 07:54:25 CEST 2006

Can nviz flaws related to that?

gcc -I/Users/Shared/src/grass6/dist.powerpc-apple-darwin8.7.0/include -I/usr/include -g -O3 -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/X11R6/include -I/usr/X11R6/include -I/Users/Shared/src/grass6/dist.powerpc-apple-darwin8.7.0/include -I/usr/local/grasslib/include -I/usr/local/gislibs/include -I/usr/X11R6/include -DPACKAGE="“grassmods”" -I/Users/Shared/src/grass6/dist.powerpc-apple-darwin8.7.0/include
-o OBJ.powerpc-apple-darwin8.7.0/nviz_init.o -c nviz_init.c
nviz_init.c: In function ‘parse_command’:
nviz_init.c:129: warning: passing argument 2 of ‘G_parser’ from incompatible pointer type
gcc -I/Users/Shared/src/grass6/dist.powerpc-apple-darwin8.7.0/include -I/usr/include -g -O3 -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/X11R6/include -I/usr/X11R6/include -I/Users/Shared/src/grass6/dist.powerpc-apple-darwin8.7.0/include -I/usr/local/grasslib/include -I/usr/local/gislibs/include -I/usr/X11R6/include -DPACKAGE="“grassmods”" -I/Users/Shared/src/grass6/dist.powerpc-apple-darwin8.7.0/include
-o OBJ.powerpc-apple-darwin8.7.0/position.o -c position.c
position.c: In function ‘Nget_to_cmd’:
position.c:39: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c: In function ‘Nget_from_cmd’:
position.c:64: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c: In function ‘Nget_focus_gui_cmd’:
position.c:179: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c: In function ‘Nget_real_position_cmd’:
position.c:211: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c:223: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c: In function ‘Nget_fov_cmd’:
position.c:461: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c: In function ‘Nget_twist_cmd’:
position.c:500: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c: In function ‘Nget_region_cmd’:
position.c:527: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c: In function ‘Nget_point_on_surf_cmd’:
position.c:553: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c:570: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c: In function ‘Nget_point_on_surf_vect’:
position.c:602: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c:620: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c: In function ‘Nget_focus_cmd’:
position.c:741: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c: In function ‘Nget_zrange_cmd’:
position.c:793: warning: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type
position.c: In function ‘Nget_zextents_cmd’:

Agustin

On 28/07/2006, at 06:47 AM, William Kyngesburye wrote:

$(VECTDEP)

Agustin Diez Castillo wrote:

Can nviz flaws related to that?

gcc -I/Users/Shared/src/grass6/dist.powerpc-apple-darwin8.7.0/include
-I/usr/include -g -O3 -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/
X11R6/include -I/usr/X11R6/include -I/Users/Shared/src/grass6/
dist.powerpc-apple-darwin8.7.0/include -I/usr/local/grasslib/
include -I/usr/local/gislibs/include -I/usr/X11R6/include -
DPACKAGE=\""grassmods"\" -I/Users/Shared/src/grass6/dist.powerpc-
apple-darwin8.7.0/include \
         -o OBJ.powerpc-apple-darwin8.7.0/nviz_init.o -c nviz_init.c
nviz_init.c: In function 'parse_command':
nviz_init.c:129: warning: passing argument 2 of 'G_parser' from incompatible pointer type

gcc -I/Users/Shared/src/grass6/dist.powerpc-apple-darwin8.7.0/include
-I/usr/include -g -O3 -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/
X11R6/include -I/usr/X11R6/include -I/Users/Shared/src/grass6/
dist.powerpc-apple-darwin8.7.0/include -I/usr/local/grasslib/
include -I/usr/local/gislibs/include -I/usr/X11R6/include -
DPACKAGE=\""grassmods"\" -I/Users/Shared/src/grass6/dist.powerpc-
apple-darwin8.7.0/include \
         -o OBJ.powerpc-apple-darwin8.7.0/position.o -c position.c
position.c: In function 'Nget_to_cmd':
position.c:39: warning: passing argument 2 of 'Tcl_Merge' from incompatible pointer type

[snip]

These warnings are harmless. They occur even on systems where NVIZ
runs fine.

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