[GRASSLIST:5188] grass 5.7cvs - nviz compilation error on Mac OS X

Guido Lorenz glorenz at arnet.com.ar
Sat Dec 18 16:00:49 EST 2004


Dear GRASS-Users,

compiling grass 5.7cvs on Mac OS X (10.3.6) is giving me some trouble in
the nviz-module. According to the printout below (A.), there is some
conflict between OS X libraries and those provided by fink.
Nevertheless, in the configure-step (see detail below, B.), libraries-
and include-directories are given explicitely from the x-windows system
(fink installed). So, actually I don't know how to remove this conflict.

For any advice, thanking you in advance,

Guido Lorenz
Universidad Nacional de Santiago del Estero
Argentina



A. compiling-log:
nviz
cd src ; make
gcc -L/sw/lib -L/Applications/grass57/dist.powerpc-apple-darwin7.6.0/lib
-L/sw/lib/postgresql-7.4  -o nvwish
OBJ.powerpc-apple-darwin7.6.0/nvizAppInit.o
OBJ.powerpc-apple-darwin7.6.0/change_view.o
OBJ.powerpc-apple-darwin7.6.0/draw.o
OBJ.powerpc-apple-darwin7.6.0/exag.o
OBJ.powerpc-apple-darwin7.6.0/glwrappers.o
OBJ.powerpc-apple-darwin7.6.0/init_commands.o
OBJ.powerpc-apple-darwin7.6.0/lights.o
OBJ.powerpc-apple-darwin7.6.0/map_obj.o
OBJ.powerpc-apple-darwin7.6.0/misc.o
OBJ.powerpc-apple-darwin7.6.0/nviz_init.o
OBJ.powerpc-apple-darwin7.6.0/position.o
OBJ.powerpc-apple-darwin7.6.0/quick_draw.o
OBJ.powerpc-apple-darwin7.6.0/anim_support.o
OBJ.powerpc-apple-darwin7.6.0/cutplane_obj.o
OBJ.powerpc-apple-darwin7.6.0/script_support.o
OBJ.powerpc-apple-darwin7.6.0/do_zoom.o
OBJ.powerpc-apple-darwin7.6.0/label.o
OBJ.powerpc-apple-darwin7.6.0/nvizMain.o
OBJ.powerpc-apple-darwin7.6.0/togl.o
OBJ.powerpc-apple-darwin7.6.0/togl_cb.o
OBJ.powerpc-apple-darwin7.6.0/query_postgr.o
OBJ.powerpc-apple-darwin7.6.0/openvect.o
OBJ.powerpc-apple-darwin7.6.0/getCat.o
OBJ.powerpc-apple-darwin7.6.0/buildPg.o
OBJ.powerpc-apple-darwin7.6.0/runPg.o  -lgrass_ogsf -lgrass_image \
-lgrass_bitmap -lgrass_linkm -lgrass_vect -lgrass_dig2 -lgrass_dgl
-lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase 
-L/sw/lib -lgdal -lgrass_sites  -lgrass_dbmiclient -lgrass_dbmibase  \
-lgrass_gis -lgrass_datetime -lz   -lintl  -lz  \
-lgrass_datetime  -L/sw/lib/tcl -L/sw/lib/tk -ltk   -ltcl 
-L/usr/X11R6/lib  -lGLU  -L/usr/X11R6/lib  -lGL   -lSM -lICE -lX11 -lXmu
-lXext   -lz   -L/usr/X11R6/lib -L/sw/lib/postgresql-7.4 -lpq  -ltiff
-lSM -lICE -lX11
ld: warning multiple definitions of symbol _tclPlatStubsPtr
/sw/lib/libtk.dylib(tclStubLib.o) definition of _tclPlatStubsPtr
/sw/lib/libtcl.dylib(tclStubLib.o) definition of _tclPlatStubsPtr
ld: warning multiple definitions of symbol _tclIntStubsPtr
/sw/lib/libtk.dylib(tclStubLib.o) definition of _tclIntStubsPtr
/sw/lib/libtcl.dylib(tclStubLib.o) definition of _tclIntStubsPtr
ld: warning multiple definitions of symbol _Tcl_InitStubs
/sw/lib/libtk.dylib(tclStubLib.o) definition of _Tcl_InitStubs
/sw/lib/libtcl.dylib(tclStubLib.o) definition of _Tcl_InitStubs
ld: warning multiple definitions of symbol _tclStubsPtr
/sw/lib/libtk.dylib(tclStubLib.o) definition of _tclStubsPtr
/sw/lib/libtcl.dylib(tclStubLib.o) definition of _tclStubsPtr
ld: warning multiple definitions of symbol _tclIntPlatStubsPtr
/sw/lib/libtk.dylib(tclStubLib.o) definition of _tclIntPlatStubsPtr
/sw/lib/libtcl.dylib(tclStubLib.o) definition of _tclIntPlatStubsPtr
ld: warning multiple definitions of symbol _main
OBJ.powerpc-apple-darwin7.6.0/nvizMain.o definition of _main in section
(__TEXT,__text)
/Applications/grass57/dist.powerpc-apple-darwin7.6.0/lib/libgrass_rtree.dylib(single module) definition of _main
ld: warning suggest use of -bind_at_load, as lazy binding may result in
errors or different symbols being used
symbol _DrawText used from dynamic library
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD(QD.o) not from earlier dynamic library /sw/lib/libgif.4.dylib(gif_font.lo)
ld: Undefined symbols:
_isosurf_add
_isosurf_del
_isosurf_get_att
_isosurf_get_drawmode
_isosurf_get_flags
_isosurf_get_mask_mode
_isosurf_get_res
_isosurf_move_down
_isosurf_move_up
_isosurf_num_isosurfs
_isosurf_set_att
_isosurf_set_drawmode
_isosurf_set_flags
_isosurf_set_mask_mode
_isosurf_set_res
_isosurf_unset_att
_slice_add
_slice_del
_slice_get_drawmode
_slice_get_pos
_slice_get_res
_slice_get_transp
_slice_move_down
_slice_move_up
_slice_num_slices
_slice_set_drawmode
_slice_set_pos
_slice_set_res
_slice_set_transp
_query_vect
_V2_area_att
_V2_line_att
_dig_point_to_area
_dig_point_to_line
make[3]: *** [nvwish] Error 1
make[2]: *** [nvwish] Error 2



B. configure-options

./configure --with-includes="/sw/include /usr/X11R6/include"
--with-libs=/sw/lib --enable-shared --with-opengl
--with-opengl-includes=/usr/X11R6/include
--with-opengl-libs=/usr/X11R6/lib
--with-postgres-includes=/sw/include/postgresql
--with-postgres-libs=/sw/lib/postgresql-7.4
--with-jpeg-includes=/sw/include --with-dbm --with-gdal --with-readline
--with-nls --with-cxx --with-motif --with-freetype
--with-freetype-includes="/usr/X11R6/include/freetype2
/usr/X11R6/include" --with-freetype-libs=/usr/X11R6/lib --with-glw
--with-glw-includes=/usr/X11R6/include --with-tcltk-includes=/sw/include
--with-tcltk-libs="/sw/lib/tcl  /sw/lib/tk"




More information about the grass-user mailing list