[GRASS5] Re: 57 compile error

Glynn Clements glynn.clements at virgin.net
Mon Dec 15 15:19:37 EST 2003


Markus Neteler wrote:

> > 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
> ?

AFAICT, this is already done. The configure script should add -lcrypt
or '-lssl -lcrypto' to the definition of PQLIB if they are required
(i.e. if libpq doesn't have correct dependency information):

LOC_CHECK_LIBS(pq,PQsetdbLogin,PostgreSQL,$PQLIBPATH,PQLIB,,,,-lcrypt,-lssl -lcrypto)

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list