[GRASSLIST:2102] Re: Grass 5.3 - 5.7 binaries for OSX - problem with 5.7

Markus Neteler neteler at itc.it
Sat Dec 20 10:26:53 EST 2003


On Fri, Dec 19, 2003 at 08:02:52PM +0100, Lorenzo Moretti wrote:
> I have compiled grass53cvs and grass57cvs (2003_13_12).
> 
> Last month I have compiled grass57cvs with static libraries 
> (--enable-shared=no) and the v.in.dwg worked very well.
> Now I have compiled grass57cvs with shared libraries. Whole folder 
> has a size of 20 MB !

Yes, with shared libs GRASS is really small.

> Now I have a problem with v.in.dwg. It imports the file but Grass 
> does not create topologic files : grass miss two files (sidx and topo 
> files).

There should be an error message.

> Where is the problem: static libraries or shared libraries and 
> grass57_cvs_11_15 or grass57_cvs_12_13 ?
> 
> It's impossible to compile these modules:
> postgres, v.out.ogr, v.in.ogr
> 
> These are the error:
> 
> postgres
[...]
> /Volumes/APPLI/src/grass57_exp_2003_12_13/dist.powerpc-apple-darwin6.8/driver/db/pg 
> OBJ.powerpc-apple-darwin6.8/cursor.o OBJ.powerpc-apple-darwin6.8/db.o 
> OBJ.powerpc-apple-darwin6.8/describe.o 
> OBJ.powerpc-apple-darwin6.8/driver.o 
> OBJ.powerpc-apple-darwin6.8/error.o 
> OBJ.powerpc-apple-darwin6.8/execute.o 
> OBJ.powerpc-apple-darwin6.8/fetch.o 
> OBJ.powerpc-apple-darwin6.8/listdb.o 
> OBJ.powerpc-apple-darwin6.8/listtab.o 
> OBJ.powerpc-apple-darwin6.8/main.o 
> OBJ.powerpc-apple-darwin6.8/parse.o 
> OBJ.powerpc-apple-darwin6.8/select.o -L/usr/local/pgsql/lib 
> -lgrass_dbmidriver -lgrass_dbmibase -lgrass_sqlp -lgrass_dbstubs 
> -lgrass_dbdialog -lgrass_gis -lgrass_datetime  -lintl 
> -lgrass_datetime -lpq  -lcrypt  -L/sw/lib -ltk   -ltcl  \
>           -lz
> ld: can't locate file for: -lcrypt
> make[3]: *** 
> [/Volumes/APPLI/src/grass57_exp_2003_12_13/dist.powerpc-apple-darwin6.8/driver/db/pg] 
> Error 1
> make[2]: *** [subdirs] Error 1
> make[1]: *** [subdirs] Error 1
> make: *** [default] Error 1
> 

This is fixed in CVS, see 
http://article.gmane.org/gmane.comp.gis.grass.devel/2689/match=lcrypt

> v.out.ogr
> gcc -I/Volumes/APPLI/src/grass57_exp_2003_12_13/include 
> -I/Volumes/APPLI/src/grass57_exp_2003_12_13/dist.powerpc-apple-darwin6.8/include 
> -I/usr/X11R6/include -I/sw/include -O3  -Wall -Wconversion 
> -Wno-implicit-int  -I/usr/X11R6/include -I/sw/include  
> -I/usr/local/include -DUSE_GDAL_H   -I/usr/local/include -DUSE_GDAL_H 
> -I/Volumes/APPLI/src/grass57_exp_2003_12_13/include 
> -I/Volumes/APPLI/src/grass57_exp_2003_12_13/dist.powerpc-apple-darwin6.8/include 
> \
>          -o OBJ.powerpc-apple-darwin6.8/main.o -c main.c
> main.c: In function `main':
> main.c:172: warning: passing arg 2 of `G_strchg' with different width 
> due to prototype
> main.c:172: warning: passing arg 3 of `G_strchg' with different width 
> due to prototype
> main.c: In function `OGR_list_write_drivers':
> main.c:468: warning: passing arg 2 of `G_strchg' with different width 
> due to prototype
> main.c:468: warning: passing arg 3 of `G_strchg' with different width 
> due to prototype
> gcc -L/sw/lib 
> -L/Volumes/APPLI/src/grass57_exp_2003_12_13/dist.powerpc-apple-darwin6.8/lib   
> -o 
> /Volumes/APPLI/src/grass57_exp_2003_12_13/dist.powerpc-apple-darwin6.8/etc/bin/cmd/v.out.ogr 
> OBJ.powerpc-apple-darwin6.8/main.o -lgrass_vect -lgrass_dig2 
> -lgrass_shape -lgrass_dgl -lgrass_rtree -lgrass_linkm 
> -lgrass_dbmiclient -lgrass_dbmibase  -lgrass_gproj -lproj  
> -L/usr/local/lib -lgdal -lgrass_gis -lgrass_datetime  -lintl 
> -L/usr/local/lib -lgdal  -lz
> ld: Undefined symbols:
> _OGRGetDriver
> _OGRGetDriverCount
> _OGRRegisterAll
> _OGR_DS_CreateLayer
> _OGR_DS_Destroy
> _OGR_Dr_CreateDataSource
> _OGR_Dr_GetName
> _OGR_Dr_TestCapability
> _OGR_F_Create
> _OGR_F_Destroy
> _OGR_F_SetFieldDouble
> _OGR_F_SetFieldInteger
> _OGR_F_SetFieldString
> _OGR_F_SetGeometry
> _OGR_F_UnsetField
> _OGR_Fld_Create
> _OGR_L_CreateFeature
> _OGR_L_CreateField
> _OGR_L_GetLayerDefn
> make[2]: *** 
> [/Volumes/APPLI/src/grass57_exp_2003_12_13/dist.powerpc-apple-darwin6.8/etc/bin/cmd/v.out.ogr] 
> Error 1
> make[1]: *** [subdirs] Error 1
> make: *** [default] Error 1


Probably your GDAL/OGR version is too old? We recommend the GDAL/OGR
from CVS.
 
Markus Neteler




More information about the grass-user mailing list