[GRASSLIST:9947] Re: errors compiling cvs

Glynn Clements glynn at gclements.plus.com
Sun Jan 22 10:53:06 EST 2006


Stefano Costa wrote:

> Today I updated from cvs, compiled with the following options:
> 
> > CFLAGS="-O3 -mtune=pentium-m -Wall" LDFLAGS="-s" ./configure
> > --with-tcltk-includes=/usr/include/tcl8.3
> > --with-postgres-includes=/usr/include/postgresql --with-sqlite
> > --with-cxx --with-fftw
> > --with-freetype-includes=/usr/includes/freetype2/
> 
> all went right except these errors:
> 
> > Generating HTML manual pages index (help system)...
> > Generated HTML docs in ../dist.i686-pc-linux-gnu/docs/html/index.html
> > ----------------------------------------------------------------------
> > Following modules are missing the 'description.html' file in src code:
> > g.pnmcomp
> > ----------------------------------------------------------------------
> > GRASS GIS compilation log
> > -------------------------
> > Started compilation: mer gen 18 15:55:32 CET 2006
> > --
> > Errors in:
> > /home/steko/src/grass6/display/drivers/XDRIVER/XDRIVER24
> > /home/steko/src/grass6/raster/r.mapcalc
> 
> so as suggested I ran `make' in the directories with errors. here's what I got:
> 
> > steko at cycnus:~/src/grass6/raster/r.mapcalc$ make
> > gcc -s -Wl,--export-dynamic -L/home/steko/src/grass6/dist.i686-pc-linux-gnu/lib -Wl,-rpath-link,/home/steko/src/grass6/dist.i686-pc-linux-gnu/lib   -o /home/steko/src/grass6/dist.i686-pc-linux-gnu/bin/r.mapcalc OBJ.i686-pc-linux-gnu/y.tab.o OBJ.i686-pc-linux-gnu/lex.yy.o OBJ.i686-pc-linux-gnu/column_shift.o OBJ.i686-pc-linux-gnu/evaluate.o OBJ.i686-pc-linux-gnu/expression.o OBJ.i686-pc-linux-gnu/function.o OBJ.i686-pc-linux-gnu/check.o OBJ.i686-pc-linux-gnu/main.o OBJ.i686-pc-linux-gnu/xabs.o OBJ.i686-pc-linux-gnu/xadd.o OBJ.i686-pc-linux-gnu/xand.o OBJ.i686-pc-linux-gnu/xatan.o OBJ.i686-pc-linux-gnu/xcos.o OBJ.i686-pc-linux-gnu/xdiv.o OBJ.i686-pc-linux-gnu/xdouble.o OBJ.i686-pc-linux-gnu/xeq.o OBJ.i686-pc-linux-gnu/xeval.o OBJ.i686-pc-linux-gnu/xexp.o OBJ.i686-pc-linux-gnu/xfloat.o OBJ.i686-pc-linux-gnu/xge.o OBJ.i686-pc-linux-gnu/xgraph.o OBJ.i686-pc-linux-gnu/xgt.o OBJ.i686-pc-linux-gnu/xif.o OBJ.i686-pc-linux-gnu/xint.o OBJ.i686-pc-linux-gnu/xisnull.o OBJ.i686-pc-lin!
 ux!
>  -gnu/xle.o OBJ.i686-pc-linux-gnu/xlog.o OBJ.i686-pc-linux-gnu/xlt.o OBJ.i686-pc-linux-gnu/xmax.o OBJ.i686-pc-linux-gnu/xmedian.o OBJ.i686-pc-linux-gnu/xmin.o OBJ.i686-pc-linux-gnu/xmod.o OBJ.i686-pc-linux-gnu/xmode.o OBJ.i686-pc-linux-gnu/xmul.o OBJ.i686-pc-linux-gnu/xne.o OBJ.i686-pc-linux-gnu/xneg.o OBJ.i686-pc-linux-gnu/xnot.o OBJ.i686-pc-linux-gnu/xnull.o OBJ.i686-pc-linux-gnu/xor.o OBJ.i686-pc-linux-gnu/xpow.o OBJ.i686-pc-linux-gnu/xrand.o OBJ.i686-pc-linux-gnu/xround.o OBJ.i686-pc-linux-gnu/xrowcol.o OBJ.i686-pc-linux-gnu/xsin.o OBJ.i686-pc-linux-gnu/xsqrt.o OBJ.i686-pc-linux-gnu/xsub.o OBJ.i686-pc-linux-gnu/xtan.o OBJ.i686-pc-linux-gnu/map.o OBJ.i686-pc-linux-gnu/xcoor.o OBJ.i686-pc-linux-gnu/xres.o -lgrass_gis -lgrass_datetime -lz    -lgrass_btree -lgrass_rowio    -lm  -lz
> > OBJ.i686-pc-linux-gnu/lex.yy.o: In function `get_input_stream':
> > /home/steko/src/grass6/raster/r.mapcalc/mapcalc.l:58: undefined reference to `readline'

This seems odd as you didn't use pass --with-readline to the configure
script.

Did you use that switch for a previous build, and neglect to run
"make clean"? You should always run "make distclean" before updating
from CVS or re-running configure.

> > OBJ.i686-pc-linux-gnu/lex.yy.o: In function `yylex':
> > /home/steko/src/grass6/raster/r.mapcalc/mapcalc.l:69: undefined reference to `add_history'
> > collect2: ld returned 1 exit status
> > make: *** [/home/steko/src/grass6/dist.i686-pc-linux-gnu/bin/r.mapcalc] Error 1
> > 
> > steko at cycnus:~/src/grass6/display/drivers/XDRIVER/XDRIVER24$ make
> > gcc -s -Wl,--export-dynamic -L/home/steko/src/grass6/dist.i686-pc-linux-gnu/lib -Wl,-rpath-link,/home/steko/src/grass6/dist.i686-pc-linux-gnu/lib   -o /home/steko/src/grass6/dist.i686-pc-linux-gnu/driver/XDRIVER  -L/home/steko/src/grass6/dist.i686-pc-linux-gnu/lib OBJ.i686-pc-linux-gnu/Box_abs.o OBJ.i686-pc-linux-gnu/Can_do.o OBJ.i686-pc-linux-gnu/Client.o OBJ.i686-pc-linux-gnu/Clr_table.o OBJ.i686-pc-linux-gnu/Color.o OBJ.i686-pc-linux-gnu/Draw_line.o OBJ.i686-pc-linux-gnu/Get_w_box.o OBJ.i686-pc-linux-gnu/Get_w_line.o OBJ.i686-pc-linux-gnu/Get_w_pnt.o OBJ.i686-pc-linux-gnu/Graph_Clse.o OBJ.i686-pc-linux-gnu/Graph_Set.o OBJ.i686-pc-linux-gnu/Panel.o OBJ.i686-pc-linux-gnu/Plylne_abs.o OBJ.i686-pc-linux-gnu/Polygn_abs.o OBJ.i686-pc-linux-gnu/Raster.o OBJ.i686-pc-linux-gnu/Raster_RGB.o OBJ.i686-pc-linux-gnu/Respond.o OBJ.i686-pc-linux-gnu/Serve_Xevent.o OBJ.i686-pc-linux-gnu/Work.o OBJ.i686-pc-linux-gnu/alloc.o OBJ.i686-pc-linux-gnu/Draw_point.o OBJ.i686-pc-linux-gnu/line_!
 at!
>  tr.o -lgrass_driver -lgrass_gis -lgrass_datetime -lz      -L/usr/X11R6/lib -lSM -lICE -lX11  -lm  -lz
> > /home/steko/src/grass6/dist.i686-pc-linux-gnu/lib/libgrass_driver.a(Text3.o): In function `drawMain':
> > /home/steko/src/grass6/display/drivers/lib/Text3.c:62: undefined reference to `FT_Init_FreeType'
> > /home/steko/src/grass6/display/drivers/lib/Text3.c:67: undefined reference to `FT_New_Face'
> > /home/steko/src/grass6/display/drivers/lib/Text3.c:82: undefined reference to `FT_Set_Char_Size'
> > /home/steko/src/grass6/dist.i686-pc-linux-gnu/lib/libgrass_driver.a(Text3.o): In function `draw_text':
> > /home/steko/src/grass6/display/drivers/lib/Text3.c:194: undefined reference to `FT_Set_Transform'
> > /home/steko/src/grass6/display/drivers/lib/Text3.c:196: undefined reference to `FT_Load_Char'
> > /home/steko/src/grass6/display/drivers/lib/Text3.c:198: undefined reference to `FT_Render_Glyph'
> > /home/steko/src/grass6/dist.i686-pc-linux-gnu/lib/libgrass_driver.a(Text3.o): In function `drawMain':
> > /home/steko/src/grass6/display/drivers/lib/Text3.c:113: undefined reference to `FT_Done_Face'
> > /home/steko/src/grass6/display/drivers/lib/Text3.c:114: undefined reference to `FT_Done_FreeType'
> > /home/steko/src/grass6/display/drivers/lib/Text3.c:92: undefined reference to `FT_Done_FreeType'
> > /home/steko/src/grass6/display/drivers/lib/Text3.c:91: undefined reference to `FT_Done_Face'
> > collect2: ld returned 1 exit status
> > make: *** [/home/steko/src/grass6/dist.i686-pc-linux-gnu/driver/XDRIVER] Error 1

Similarly, you didn't pass --with-freetype to the configure script
(using --with-freetype-includes on its own won't enable freetype).

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list