[GRASSLIST:3925] problem with ogr in grass5.7

I have compiled grass5.7 without problems but when I try v.out.ogr I have the error:

v.out.ogr: relocation error: v.out.ogr: undefined symbol: OGRRegisterAll

I have looked for in the net but only found similar errors in compilation time. I have gdal installed, in fact r.in.gdal works fine.

any idea about what the problem could be?

thanks

Paco