[GRASS5] Re: [GRASS-CVS] CVS update: grass

Markus Neteler neteler at itc.it
Fri Aug 3 05:49:55 EDT 2001


On Fri, Aug 03, 2001 at 10:29:11AM +0100, Glynn Clements wrote:
> 
> Markus Neteler wrote:
> 
> > thanks for (partly) fixing the configure[.in].
> > 
> > The current status is:
> > 
> > checking for location of Tcl/Tk includes...
> > checking for tcl.h... yes
> > checking for tk.h... yes
> > checking for location of Tcl/Tk libraries...
> > checking for Tcl_Init in -ltcl... yes
> > checking for Tk_MainWindow in -ltk... no
> > checking for Tk_MainWindow in -ltk8.3... no
> > checking for Tk_MainWindow in -ltk... no
> > checking for Tk_MainWindow in -ltk8.3... no
> > checking for Tk_MainWindow in -ltk... no
> > checking for Tk_MainWindow in -ltk8.3... no
> > configure: warning: *** Unable to locate Tk library.c
> 
> I need to see config.log in order to figure out what else is required
> for the link to succeed.

Sorry, I missed that. Here we are:

configure:4235: checking for location of Tcl/Tk includes
configure:4273: checking for tcl.h
configure:4283: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:4319: gcc -o conftest -g -O2    conftest.c  1>&5
configure:4348: checking for tk.h
configure:4358: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:4394: gcc -o conftest -g -O2    conftest.c  1>&5
configure:4433: checking for location of Tcl/Tk libraries
configure:4463: checking for Tcl_Init in -ltcl
configure:4482: gcc -o conftest -g -O2    -lm conftest.c -ltcl   1>&5
configure:4547: checking for Tk_MainWindow in -ltk
configure:4566: gcc -o conftest -g -O2    -lm conftest.c -ltk   1>&5
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libtk.so: undefined
reference
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libtk.so: undefined
reference to ...
[... some xxx times]
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libtk.so: undefined
reference
collect2: ld returned 1 exit status
configure: failed program was:
#line 4555 "configure"
[...skipped...]
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libtk8.3.so: undefined
reference to 'Tcl_CreateChannelHandler' 
collect2: ld returned 1 exit status
configure: failed program was:
#line 4756 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char Tk_MainWindow();
 
int main() {
Tk_MainWindow()
; return 0; }
configure:4808: checking whether to use PostgreSQL

Does this help?
 
> > the head file looks like this (Linux, RH7.1):
> > #tcl/tk stuff
> > TCLINCDIR           =
> > TKINCDIR            =
> > TCLTKLIBPATH        =
> > TCLTKLIBS           = -ltcl
> > 
> > Thanks for clarification, Glynn, concerning the empty fields.
> > 
> > So the only bug remaining is that "-ltk" is not added in the head
> > file. And above warning is a bit strange...
> 
> I don't know where the trailing "c" comes from.

MY FAULT. It is:
checking for Tk_MainWindow in -ltk8.3... no
configure: warning: *** Unable to locate Tk library.
checking whether to use PostgreSQL... no

However, if libtcl is found, the libtk should be found as well.

Thanks for your help,

 Markus



More information about the grass-dev mailing list