[GRASS-dev] r.report: build error

Jachym Cepicky jachym.cepicky at centrum.cz
Mon Nov 27 01:37:28 EST 2006


On Mon, Nov 27, 2006 at 02:27:20PM +1300, Hamish wrote:
> Glynn Clements wrote:
> > 
> > Maciej Sieczka wrote:
> > 
> > > Trying to build GRASS 6.3 from CVS a while ago I'm getting an error
> > > in the r.report:
> > 
> > > `print_report':/home/shoofi/src/straight/grass6/raster/r.report/prt
> > > _report.c:82: undefined reference to `_'
> > 
> > That file needs:
> > 
> > 	#include <grass/glocale.h>
> > 
> > Given that most source files will ultimately require that header, it
> > should probably be included from gis.h rather than requiring
> > individual files to include it explicitly.
> > 
> > I've modified glocale.h to protect against multiple inclusion.
> 
> 
> with respect to r.report, I've added glocale.h to r.report/global.h.
> I removed the l12n macro from prt_report.c as AFAICT the error will
> never happen due to the parser checking "options" values, so it's pretty
> much a debug message in case of further development. And there's no
> point burdening the translaters with never seen debug messages.

You are right. I should move some messages to G_debug rather then
G_message. 

> 
> With <gis.h> and <glocale.h> in "global.h", we probably need to cleanup
> the remaining doubled includes in the rest of the r.report code.

I have done this.

> Hamish

Thanks and sorry for braking the module

Jachym

-- 
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
-----------------------------------------   
OFFICE:                                     
Department of Geoinformation Technologies 
Zemedelska 3
613 00, Brno
Czech Republick
e-mail: xcepicky at node.mendelu.cz
URL:    http://mapserver.mendelu.cz
Tel.:   +420 545 134 514
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20061127/f19f8732/attachment.bin


More information about the grass-dev mailing list