[GRASSLIST:1295] Re: Compilation error with 2003-09-13 5.7 snapshot. Why?

Antonio nightnavigator at libero.it
Thu Sep 18 18:29:57 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* giovedì 18 settembre 2003, alle 10:07, Radim Blazek scrive:
> It seems that i18n functions are missing in Tcl/Tk used for compilation. 
> 'configure' should try to find the version of library
> for header file used in --with-tcltk-includes=
> 
> LOC_CHECK_LIBS(tk,           Tk_MainWindow,Tk,$TCLTKLIBPATH,TKLIB,$TCLLIB,$MATHLIB,[
> LOC_CHECK_LIBS(tk$tcltk_ver, Tk_MainWindow,Tk,$TCLTKLIBPATH,TKLIB,$TCLLIB,$MATHLIB,[
> LOC_CHECK_LIBS(tk$tcltk_ver2,Tk_MainWindow,Tk,$TCLTKLIBPATH,TKLIB,$TCLLIB,$MATHLIB,[
> 
> Should we remove "LOC_CHECK_LIBS(tk, ..." as it can probably find the library of different 
> version than headers are.
> 
> Do you have libtk8.3.so? Try to use --with-tcltk-libs=.
> 
> What are the values of TCLINCDIR, TKINCDIR, TCLTKLIBPATH and TCLTKLIBS
> in your include/Make/Platform.make
> 
> 
> CC to Alex, as he knows more about i18n.
> 
> Radim
> 

Mmm, maybe I found something that can help you guys figure out a
solution. I know nothing of programming but I'll try to help.

I noticed that:
a) I have tcl/tk 8.0 8.2 8.3, all three versions installed contemporarly
and that the configure only finds the older one:

<cut>
checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes...
checking for tcl.h... yes
checking for tk.h... yes
checking Tcl version... 8.0
checking Tk version... 8.0
checking for location of Tcl/Tk library... /usr/lib/
checking for Tcl_Init in -ltcl... no
checking for Tcl_Init in -ltcl... no
checking for Tcl_Init in -ltcl8.0... yes
<cut>

Then I launch 'make mix' and 'make'.
At the make I get another error:

<cut>
gcc -I/home/antonio/local/src/grass57_exp_2003_09_13/include
- -I/home/antonio/local/src/grass57_exp_2003_09_13/dist.i686-pc-linux-gnu/include
- -g -O2  -Wall -Wconversion -Wno-implicit-int   -fPIC
- -I/home/antonio/local/src/grass57_exp_2003_09_13/include
- -I/home/antonio/local/src/grass57_exp_2003_09_13/dist.i686-pc-linux-gnu/include
\
        -o OBJ.i686-pc-linux-gnu/form.o -c form.c
form.c: In function `set_value':
form.c:65: warning: passing arg 2 of `G_realloc' as signed due to
prototype
form.c: In function `submit':
form.c:184: warning: implicit declaration of function
`Tcl_SetSystemEncoding'
form.c:204: warning: implicit declaration of function
`Tcl_UtfToExternal'
form.c:205: warning: implicit declaration of function `Tcl_GetEncoding'
form.c: In function `main':
form.c:304: warning: passing arg 2 of `fread' as unsigned due to
prototype
form.c:312: warning: passing arg 2 of `fread' as unsigned due to
prototype
form.c:318: warning: implicit declaration of function
`Tcl_ExternalToUtf'
gcc -rdynamic
- -L/home/antonio/local/src/grass57_exp_2003_09_13/dist.i686-pc-linux-gnu/lib
- -o
/home/antonio/local/src/grass57_exp_2003_09_13/dist.i686-pc-linux-gnu/etc/form/form
OBJ.i686-pc-linux-gnu/form.o -lgrass_dbmiclient -lgrass_dbmibase
- -lgrass_gis -lgrass_datetime   -lgrass_datetime \
                        -L/usr/lib/ -ltk8.0 -lm  -ltcl8.0 -lm -lm  -lz
OBJ.i686-pc-linux-gnu/form.o: In function `submit':
/home/antonio/local/src/grass57_exp_2003_09_13/lib/form/form.c:184:
undefined reference to `Tcl_SetSystemEncoding'
/home/antonio/local/src/grass57_exp_2003_09_13/lib/form/form.c:204:
undefined reference to `Tcl_GetEncoding'
/home/antonio/local/src/grass57_exp_2003_09_13/lib/form/form.c:204:
undefined reference to `Tcl_UtfToExternal'
OBJ.i686-pc-linux-gnu/form.o: In function `main':
/home/antonio/local/src/grass57_exp_2003_09_13/lib/form/form.c:318:
undefined reference to `Tcl_GetEncoding'
/home/antonio/local/src/grass57_exp_2003_09_13/lib/form/form.c:318:
undefined reference to `Tcl_ExternalToUtf'
/home/antonio/local/src/grass57_exp_2003_09_13/lib/form/form.c:324:
undefined reference to `Tcl_SetSystemEncoding'
collect2: ld returned 1 exit status
make[2]: ***
[/home/antonio/local/src/grass57_exp_2003_09_13/dist.i686-pc-linux-gnu/etc/form/form]
Error 1
make[2]: Leaving directory
`/home/antonio/local/src/grass57_exp_2003_09_13/lib/form'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory
`/home/antonio/local/src/grass57_exp_2003_09_13/lib'
make: *** [default] Error 1

I think it's still to do with tcl. However I can't get 8.0 and 8.2 off
my system as I need them to run other apps. how do I tell configure to
use 8.3 version of tcl?

Thanks
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/ajHlIRaQQEznKxURAjpiAKCJsv1zGUNemIoleupbZXemZ+LP9wCeMUBp
xPwb9hLxq1Mv/0cooOhRnyw=
=AE20
-----END PGP SIGNATURE-----




More information about the grass-user mailing list