[GRASS5] Re: 57 compile error

Markus Neteler neteler at itc.it
Thu Dec 11 09:56:46 EST 2003


Kirk,
(cc 'grass5')

On Thu, Dec 11, 2003 at 08:25:07AM -0600, Kirk R. Wythers wrote:
> Markus,
> 
> I'm working on the 57 build. The configure options I'm using are:
> 
> ./configure --with-grass50=/Users/kirkw/tmp/grass53_exp_2003_12_06/ \
>     --enable-shared \
>     --with-includes="/usr/X11R6/include /sw/include" --with-libs=/sw/lib  
> \
>     --with-tiff-includes=/sw/include --with-tiff-libs=/sw/lib \
>     --with-tcltk-includes=/sw/include --with-tcltk-libs=/sw/lib/tcl8.4 \
>     --with-opengl-libs=/usr/X11R6/lib  
> --with-opengl-includes=/usr/X11R6/include \
>     --with-fftw-includes=/sw/include \
>     --with-gdal=/usr/local/bin/gdal-config \
>     --with-postgres-includes=/sw/include/postgresql \
>     --with-postgres-libs=/sw/lib/postgresql \
>     --with-odbc \
>     --with-motif \
>     --with-glw \
>     --with-readline \
>     --with-freetype
> 
> Then I do a make mix,
> then make. Here is the make error:
> 
> 0.0/execute.o OBJ.powerpc-apple-darwin7.0.0/fetch.o  
> OBJ.powerpc-apple-darwin7.0.0/listdb.o  
> OBJ.powerpc-apple-darwin7.0.0/listtab.o  
> OBJ.powerpc-apple-darwin7.0.0/main.o  
> OBJ.powerpc-apple-darwin7.0.0/parse.o  
> OBJ.powerpc-apple-darwin7.0.0/select.o -L/sw/lib/postgresql  
> -lgrass_dbmidriver -lgrass_dbmibase -lgrass_sqlp -lgrass_dbstubs  
> -lgrass_dbdialog -lgrass_gis -lgrass_datetime  -lintl -lgrass_datetime  
> -lpq  -lcrypt  -L/sw/lib/tcl8.4 -ltk   -ltcl  \
>           -lz
> ld: can't locate file for: -lcrypt
> make[3]: ***  
> [/Users/kirkw/tmp/grass57_exp_2003_12_06/dist.powerpc-apple- 
> darwin7.0.0/driver/db/pg] Error 1
> make[2]: *** [subdirs] Error 1
> make[1]: *** [subdirs] Error 1
> make: *** [default] Error 1

Your problem looks like a configure issue.

In ./db/drivers/postgres/Makefile
CRYPTLIB = -lcrypt
is hardcoded. Maybe this should go elsewhere into Platform.make
?

Markus




More information about the grass-dev mailing list