[GRASS-dev] [GRASS GIS] #1395: osgf generates error compiling on Mac OS X

#1395: osgf generates error compiling on Mac OS X
-----------------------+----------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Keywords: osgf nviz | Platform: MacOSX
      Cpu: OSX/Intel |
-----------------------+----------------------------------------------------
I just updated from the SVN and also installed the newest frameworks. osgf
fails to compile with the following error. This (I think) also causes nviz
to fail to compile too.

{{{
cmb-mbp-3:grass70_dev cmbarton$ cd
/Users/Shared/grass_dev/grass70_dev/lib/ogsf
cmb-mbp-3:ogsf cmbarton$ make
cc -dynamiclib -compatibility_version 7.0 -current_version 7.0
-install_name
/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/lib/libgrass_ogsf.7.0.svn.dylib
-o /Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
darwin10.8.0/lib/libgrass_ogsf.7.0.svn.dylib
-L/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-darwin10.8.0/lib
-L/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-darwin10.8.0/lib
-arch i386 -arch x86_64 OBJ.i386-apple-darwin10.8.0/GK2.o OBJ.i386
-apple-darwin10.8.0/GP2.o OBJ.i386-apple-darwin10.8.0/GS2.o OBJ.i386
-apple-darwin10.8.0/GSX.o OBJ.i386-apple-darwin10.8.0/GS_util.o OBJ.i386
-apple-darwin10.8.0/GV2.o OBJ.i386-apple-darwin10.8.0/GVL2.o OBJ.i386
-apple-darwin10.8.0/Gp3.o OBJ.i386-apple-darwin10.8.0/Gs3.o OBJ.i386
-apple-darwin10.8.0/Gv3.o OBJ.i386-apple-darwin10.8.0/Gvl3.o OBJ.i386
-apple-darwin10.8.0/gk.o OBJ.i386-apple-darwin10.8.0/gp.o OBJ.i386-apple-
darwin10.8.0/gpd.o OBJ.i386-apple-darwin10.8.0/gs.o OBJ.i386-apple-
darwin10.8.0/gs_bm.o OBJ.i386-apple-darwin10.8.0/gs_norms.o OBJ.i386
-apple-darwin10.8.0/gs_query.o OBJ.i386-apple-darwin10.8.0/gsd_cplane.o
OBJ.i386-apple-darwin10.8.0/gsd_fonts.o OBJ.i386-apple-
darwin10.8.0/gsd_fringe.o OBJ.i386-apple-darwin10.8.0/gsd_img_mpeg.o
OBJ.i386-apple-darwin10.8.0/gsd_img_ppm.o OBJ.i386-apple-
darwin10.8.0/gsd_img_tif.o OBJ.i386-apple-darwin10.8.0/gsd_label.o
OBJ.i386-apple-darwin10.8.0/gsd_legend.o OBJ.i386-apple-
darwin10.8.0/gsd_objs.o OBJ.i386-apple-darwin10.8.0/gsd_prim.o OBJ.i386
-apple-darwin10.8.0/gsd_surf.o OBJ.i386-apple-darwin10.8.0/gsd_views.o
OBJ.i386-apple-darwin10.8.0/gsd_wire.o OBJ.i386-apple-
darwin10.8.0/gsdiff.o OBJ.i386-apple-darwin10.8.0/gsdrape.o OBJ.i386
-apple-darwin10.8.0/gsds.o OBJ.i386-apple-darwin10.8.0/gsget.o OBJ.i386
-apple-darwin10.8.0/gv.o OBJ.i386-apple-darwin10.8.0/gv_quick.o OBJ.i386
-apple-darwin10.8.0/gvd.o OBJ.i386-apple-darwin10.8.0/gvl.o OBJ.i386
-apple-darwin10.8.0/gvl_calc.o OBJ.i386-apple-darwin10.8.0/gvl_calc2.o
OBJ.i386-apple-darwin10.8.0/gvl_file.o OBJ.i386-apple-darwin10.8.0/gvld.o
OBJ.i386-apple-darwin10.8.0/trans.o -lgrass_bitmap.7.0.svn
-lgrass_g3d.7.0.svn -lgrass_vector.7.0.svn -lgrass_raster.7.0.svn
-lgrass_gis.7.0.svn -L/Library/Frameworks/UnixImageIO.framework/unix/lib
-ltiff -framework OpenGL -framework AGL -framework ApplicationServices
Undefined symbols:
   "_db_get_value_int", referenced from:
       _Gp_load_sites_thematic in Gp3.o
       _Gp_load_sites_thematic in Gp3.o
   "_db_select_value", referenced from:
       _Gp_load_sites_thematic in Gp3.o
       _Gp_load_sites_thematic in Gp3.o
       _Gp_load_sites_thematic in Gp3.o
       _Gp_load_sites_thematic in Gp3.o
   "_db_start_driver_open_database", referenced from:
       _Gp_load_sites_thematic in Gp3.o
   "_db_get_value_string", referenced from:
       _Gp_load_sites_thematic in Gp3.o
       _Gp_load_sites_thematic in Gp3.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Undefined symbols:
   "_db_get_value_int", referenced from:
       _Gp_load_sites_thematic in Gp3.o
       _Gp_load_sites_thematic in Gp3.o
   "_db_select_value", referenced from:
       _Gp_load_sites_thematic in Gp3.o
       _Gp_load_sites_thematic in Gp3.o
       _Gp_load_sites_thematic in Gp3.o
       _Gp_load_sites_thematic in Gp3.o
   "_db_start_driver_open_database", referenced from:
       _Gp_load_sites_thematic in Gp3.o
   "_db_get_value_string", referenced from:
       _Gp_load_sites_thematic in Gp3.o
       _Gp_load_sites_thematic in Gp3.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-//ccAxZpeP.out (No such
file or directory)
make: *** [/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
darwin10.8.0/lib/libgrass_ogsf.7.0.svn.dylib] Error 1
cmb-mbp-3:ogsf cmbarton$

}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1395&gt;
GRASS GIS <http://grass.osgeo.org>

#1395: osgf generates error compiling on Mac OS X
-----------------------+----------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Keywords: osgf nviz | Platform: MacOSX
      Cpu: OSX/Intel |
-----------------------+----------------------------------------------------

Comment(by helena):

I can confirm this, I get the same even after make distclean. I already
emailed Martin
as it appears to be related to the recent addition of the thematic display
of point data
(which will be most welcome).

Helena

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1395#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1395: osgf generates error compiling on Mac OS X
-----------------------+----------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Keywords: osgf nviz | Platform: MacOSX
      Cpu: OSX/Intel |
-----------------------+----------------------------------------------------

Comment(by cmbarton):

I saw a recent note from Anna that said she was having trouble with
thematic points and decided to finish other tasks first. This is fine, but
the broken points display shoul be commented out/deactivated until it can
be fixed because it breaks all the rest of nviz.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1395#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1395: osgf generates error compiling on Mac OS X
-----------------------+----------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Keywords: osgf nviz | Platform: MacOSX
      Cpu: OSX/Intel |
-----------------------+----------------------------------------------------

Comment(by mmetz):

Replying to [comment:1 helena]:
> I can confirm this, I get the same even after make distclean. I already
emailed Martin
> as it appears to be related to the recent addition of the thematic
display of point data
> (which will be most welcome).
>

Please try r46837.

Markus M

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1395#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1395: osgf generates error compiling on Mac OS X
------------------------+---------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Resolution: fixed | Keywords: osgf nviz
  Platform: MacOSX | Cpu: OSX/Intel
------------------------+---------------------------------------------------
Changes (by helena):

  * status: new => closed
  * resolution: => fixed

Comment:

that fixed it - it works now.

Helena

Replying to [comment:3 mmetz]:
> Replying to [comment:1 helena]:
> > I can confirm this, I get the same even after make distclean. I
already emailed Martin
> > as it appears to be related to the recent addition of the thematic
display of point data
> > (which will be most welcome).
> >
>
> Please try r46837.
>
> Markus M

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1395#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1395: osgf generates error compiling on Mac OS X
------------------------+---------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Resolution: fixed | Keywords: osgf nviz
  Platform: MacOSX | Cpu: OSX/Intel
------------------------+---------------------------------------------------

Comment(by cmbarton):

I can also confirm that this works and fixes the osgf error in compiling.
Thanks much for the really quick fix!

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1395#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>