[GRASS-dev] Re: [GRASS GIS] #110: db/drivers/dbf fail to build due to undefined reference to 'SASetupDefaultHooks' (SHAPELIB)

Glynn Clements glynn at gclements.plus.com
Sat Apr 12 19:54:32 EDT 2008


GRASS GIS wrote:

> #110: db/drivers/dbf fail to build due to undefined reference to
> 'SASetupDefaultHooks' (SHAPELIB)
> -----------------------+----------------------------------------------------
>   Reporter:  marisn    |       Owner:  grass-dev at lists.osgeo.org
>       Type:  defect    |      Status:  new                      
>   Priority:  critical  |   Milestone:  6.4.0                    
>  Component:  default   |     Version:  svn-trunk                
> Resolution:            |    Keywords:  dbf                      
> -----------------------+----------------------------------------------------
> Comment (by rouault):
> 
>  In the Valgrind log, it's clear that it was the GDAL's SASetupDefaultHooks
>  version that was used. I guess that if things are right now with GRASS
>  r30956, it's because safileio.c has been added to the GRASS tree now, and
>  that its SASetupDefaultHooks version that is used now.
> 
>  However, it's really risky to have a library 'A', namely GRASS, that
>  contains SHAPELIB symbols and that links with another library 'B', namely
>  GDAL, that also contains SHAPELIB symbols...

The DBF driver isn't linked against GDAL any more, so this shouldn't
be an issue.

There could be a problem if you use shapelib in some other library or
executable which *is* linked against GDAL but, right now, shapelib is
only used by the DBF driver.

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


More information about the grass-dev mailing list