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

Radim Blazek blazek at itc.it
Thu Sep 18 04:07:06 EDT 2003


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

On Wednesday 17 September 2003 17:10, Antonio wrote:
> Hi.
>
> I've been compileing the 2003-09-13 snapshot and got an erroe at some
> time of the 'make' operation. My machine is running Debian Woody with
> the following:
>
> ii  libgdal1       1.1.8-1        Geospatial Data Abstraction Library
> ii  libgdal1-dev   1.1.8-1        Geospatial Data Abstraction Library
> ii  proj           4.4.7-3        Cartographic projection filter and
> library
> ii  odbc-postgresq 7.2.1-2        ODBC support for PostgreSQL
> ii  postgresql     7.2.1-2        Object-relational SQL database,
> descended fr
> ii  postgresql-cli 7.2.1-2        Front-end programs for PostgreSQL
> ii  postgresql-con 7.2.1-2        Additional facilities for PostgreSQL
> ii  postgresql-dev 7.2.1-2        Header files for libpq (postgresql
> library)
>
>
> I did:
>
> STEP 1:
> Compiled 5.0.3-cvs (April 2003) (~/local/src/grass50_exp_2003_06_28) with
> the following configure options: [sab lug 05,
> 06:39][antonio at gaia:~/local/cvsroot/grass50_exp_2003_06_28]./configure
> --prefix=/home/antonio/local/grass --bindir=/home/antonio/local/bin
> --with-tcltk-includes=/usr/include/tcl8.3/
> --with-postgres-includes="/usr/include/postgresql/
> /usr/include/postgresql/server/" --with-motif
> --with-motif-includes=/usr/X11R6/include  --with-freetype
> --with-freetype-includes=/usr/include/freetype2/
> --with-opengl-includes=/usr/include/GL
> --with-odbc-includes=/usr/include/
> --with-fftw-includes=/usr/include  --with-blas --with-cxx
> --with-blas-libs=/usr/lib/gcc-lib/i386-linux/3.0.4/ --with-lapack
> --with-glw  --with-dbm --with-readline 2>&1 | tee config_log.txt
>
> and installed it regularly. It works!!
>
> STEP 2:
> Configures the 1.7MB ver.5.7 snapshot code with the following
> options:
> 	[mer set 17,
> 04:54][antonio at gaia:~/local/src/grass57_exp_2003_09_13]CFALGS="-g -Wall"
> ./configure
> --with-grass50=/home/antonio/local/src/grass50_exp_2003_06_28
> --prefix=/home/antonio/local/grass --bindir=/home/antonio/local/bin
> --with-tcl-includes=/usr/include/tcl8.3/
> --with-postgres-includes="/usr/include/postgresql/
> /usr/include/postgresql/server/" --with-motif
> --with-motif-includes=/usr/X11R6/include/ --with-freetype
> --with-freetype-includes=/usr/include/freetype2/
> --with-opengl-includes=/usr/include/GL/
> --with-odbc-includes=/usr/include/ --with-fftw-includes=/usr/include/
> --with-blas --with-cxx
> --with-blas-libs=/usr/lib/gcc-lib/i386-linux/3.0.4/ --with-lapack
> --with-glw --with-dbm --with-readline 2>&1 | tee config_log_5.7.txt
>
> STEP 3:
> Did the make mix stuff and it worked!!
>
> STEP 4:
> Gave the 'make' command in the source dir of the 13 settembre
> snapshot and got the following error:
>
> ...
> ......
> ........
> 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/f
>orm/form OBJ.i686-pc-linux-gnu/form.o -lgrass_dbmiclient -lgrass_dbmibase
> -lgrass_gis -lgrass_datetime   -lgrass_datetime \
>                          -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
>
>
> Any idea of what is causing this problem??
>
> Thanks?




More information about the grass-user mailing list