View Issue Details

IDProjectCategoryView StatusLast Update
0000186ascendbuild-windowspublic2008-02-10 13:03
Reporterjohn 
Assigned Tojohn 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionFixed in Version0.9.6 
Summary0000186: ./configure doesn't detect ActiveState Tcl/Tk 8.3 under MinGW/MSYS
DescriptionIs there something we can change in trunk/base/autotools/configure.in so that this works?

JP
TagsNo tags attached.

Relationships

related to 0000199 resolvedjohn Update autoconf macros: dl-unloading, BLAS detection, Tcl/Tk detection, value of NULL etc etc. 

Activities

john

2005-12-22 11:50

administrator   ~0000163

Here is the ./configure output:


John@BOUDICA ~/src/ascend/base/autotools
$ ./reconfig
MINGW CONFIGURATION
RUNNING CONFIGURE WITH
./configure --prefix=/home/John/ascroot --with-fortran=g77,/usr/lib/libf2c.a --enable-gcc --with-tcl=/c/Tcl/lib/tcl83.lib,/c/Tcl/include/tcl.h --with-tk=/c/Tcl/lib/tk83.lib,/c/Tcl/include/tk.h --with-wish=/c/Tcl/bin/wish --with-tktable=/c/Tcl/share/Tktable82/Tktable82.lib

...

checking for printf in -lnsl... no
checking for dlopen in -ldl... no
checking for tcl library... /c/Tcl/lib/tcl83.lib
checking whether /c/Tcl/lib/tcl83.lib is for Tcl8.3... yes
checking for tcl header... /c/Tcl/include/tcl.h
checking whether /c/Tcl/include/tcl.h is for version 8... yes
checking for tk library... /c/Tcl/lib/tk83.lib
checking whether /c/Tcl/lib/tk83.lib is for Tk8.3... no
checking for a dynamically loaded Tk8.0 library
checking for Tk_NameOfFont in -ltk8.0... no
checking for Tk_NameOfFont in -ltk80... no
checking for a dynamically loaded Tk8.3 library
checking for Tk_NameOfFont in -ltk8.3... no
checking for Tk_NameOfFont in -ltk83... no
checking for Tk_NameOfFont in -ltk... no
configure: error: Cannot find a compatiable Tk library.
        You must build and install Tk version 8.3 or newer before you
        can build ASCEND. If you have installed the correct version
        of Tk, run configure again with the argument:
                --with-tk=LIBRARY,HEADER
        where LIBRARY and HEADER are the full paths to the Tk8.3
        library file and header file, respectively.

ben

2005-12-23 08:16

manager   ~0000178

Adjust asc_tcl_library_dirs and asc_tk_library_dirs
to include places that should be searched under windows if there are standards.
Alternatively, if windows has a path which i'm not sure it reliably does,
add the path variable to the AC_PATH_PROGS invocations that do the checking.
While I was at cmu, tickle was never in a standard place in the window environments we encountered.

ben

2005-12-23 08:18

manager   ~0000179

In general we tended in the past to err on the side of making the user
be specific and explicit about their tcl. Frequently there is more than
one version around and assuming-which-one==you-lose.

john

2005-12-23 09:02

administrator   ~0000184

Reminder sent to: ben

Observe that in my './configure' command I had actually explicitly told configure where the Tcl libraries were. The problem is not that the files were not found, it is that configure rejected them... it seemed to me that the problem was occurring somewhere like this, in configure.in:

# verify the TK_LIB
#
if test ! "X$TK_LIB" = X_searching ; then
    AC_MSG_CHECKING([whether $TK_LIB is for Tk8.0])
    asc_libs_orig=$LIBS
    LIBS="$TK_LIB $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
    AC_TRY_LINK( , [Tk_NameOfFont()], , [TK_LIB=_searching]);
    if test "X$TK_LIB" = X_searching ; then
        AC_MSG_RESULT(no)
    else
        AC_MSG_RESULT(yes)
    fi
    LIBS=$asc_libs_orig
fi

ben

2005-12-23 11:12

manager   ~0000195

I suggest checking the tickle config blocks under autotools
against those in the unixac213 configure.in for updates you may
want to port into the autotools version. But those won't solve the problem here.
Looks like the problem here is windows/mingw/msys specific.

Our configure at cmu, from which autotools at least started,
was never extended to cygwin, mingw, etc. Typically one end's up
with what may as well be a complete separate configure script for
windows to deal with cygwinisms (and probably mingw) in autoconf.
Our windows build was almost always through nmake or visual studio.

john

2006-05-10 02:50

administrator   ~0000329

I think this works now. In any case it works on the SCons build so I'm happy.

Issue History

Date Modified Username Field Change
2005-12-22 11:47 john New Issue
2005-12-22 11:48 john Category build-linux => build-windows
2005-12-22 11:50 john Note Added: 0000163
2005-12-22 11:51 john Summary autotools build doesn't detect ActiveState Tcl/Tk 8.3 under MinGW/MSYS => ./configure doesn't detect ActiveState Tcl/Tk 8.3 under MinGW/MSYS
2005-12-23 08:16 ben Note Added: 0000178
2005-12-23 08:18 ben Note Added: 0000179
2005-12-23 09:02 john Note Added: 0000184
2005-12-23 11:12 ben Note Added: 0000195
2006-01-04 13:08 john Relationship added related to 0000199
2006-02-07 13:17 john Target release => 1.0
2006-02-07 13:22 john Target release 1.0 => 0.9.6
2006-05-10 02:50 john Note Added: 0000329
2006-05-10 02:50 john Status new => assigned
2006-05-10 02:50 john Assigned To => john
2006-05-10 03:49 john Status assigned => resolved
2006-05-10 03:49 john Resolution open => fixed
2006-06-22 07:27 john Fixed in Version => 0.9.6
2008-02-10 13:03 john Status resolved => closed