delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/07/22/20:25:40

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=NXty6uy6onMuEVfbcGJV/+sLxWUTOvCNEd5trzYfHfEO9T/gy5Kl7
uRPUb0GyB1n73kzM1Wr69gMRGv3WwDO5FG3j+yUoNd7u764wm0a6Nkiagi5EXnDf
epape8nJNEy6so7ttfs5nt39cb56RsfzOX+2uCDQmvXAkLzCxB9Jrg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=t26/bc7GJqVNI5SjKXSb5l3Ft3Y=; b=rw4yW+pZBz2JJTY3Zdhx14YU+qsd
lZkpQKc0N9T6Z8zKECGI3qcD5O4qOtg2T775VJ1Zq1nm/6qUlYRV0r5/kTrZclVt
h3+kLwjUeH3imOxt2KA8tGjOJgpRfC1ToILk+1BpZ+KudYpj1KVUY3jGLhJe/OeT
robJw7Espi55CRw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_50,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1
To: cygwin AT cygwin DOT com
From: Kris Thielemans <kris DOT thielemans AT imperial DOT ac DOT uk>
Subject: Re: runing ./configure on gdb 7.5.50 sources
Date: Tue, 23 Jul 2013 00:24:54 +0000 (UTC)
Lines: 79
Message-ID: <loom.20130723T012538-175@post.gmane.org>
References: <50ED3EED DOT 7010707 AT upc DOT edu> <50ED8693 DOT 9040805 AT cs DOT utoronto DOT ca>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)

Ryan Johnson writes:

> 
> On 09/01/2013 1:57 AM, Jose Munoz wrote:
> > I tried to build the original gdb sources, which I 
> > downloaded using setup.exe and selecting them.
> >
> > Without modifying any source code of gdb, I run ./configure from my 
> > source folder:
> >
> > C:\cygwin\usr\src\gdb-7.5.50-1
> >
> > After a set of checks, configure hangs at the gnum4 check, at least 
> > more than 2 hours.
> I've never seen this exact error, but my first step in diagnosing 
> configure issues is to check config.log for anomalies.
> 

I'm using gdb-7.6.50-2 on cygwin 1.7.22-1. All freshly updated today.
I don't have this gnum4 problem.


> Also, you're not supposed to configure gdb in /under the directory 
> containing its own sources. Try creating a "gdb-obj" somewhere else and 
> then ../gdb-src/configure
>

I do this.
 
> > I also tried to run ./configure from the gdb folder 
> > (C:\cygwin\usr\src\gdb-7.5.50-1\gdb), but in this case, after a longer 
> > output, configure gives the following error message:
> >
> > "checking for Tcl private headers... configure: error: could not find 
> > private Tcl headers"

I do have this problem as well (also when running the configure from
gdb-7.6.50-2 and then make).

> You probably need to install some tcl*-dev package.
> 

There are no tcl*dev packages in cygwin.

Checking this a bit closer I see that this error is generated when looking
for tclInt.h. The relevant autoconf code in gdb/acinclude.m4:

AC_DEFUN([CY_AC_TCL_PRIVATE_HEADERS], [
  AC_MSG_CHECKING([for Tcl private headers])
  private_dir=""
  dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
  if test -f ${dir}/tclInt.h ; then
    private_dir=${dir}
  fi
...


Further investigation shows that 
- this file exists in cygwin as /usr/include/tcl8.5/generic/tclInt.h
- /usr/lib/tclConfig.sh sets TCL_INCLUDE_SPEC='-I/usr/include'
- there is no /usr/include/tcl-private
- a similar problem exists in the next check CY_AC_TK_PRIVATE_HEADERS which
checks for ${TK_INCLUDE_SPEC}/tk-private/generic/tkInt.h, which is in fact
in /usr/include/tcl8.5/generic/tkInt.h.

A look in the tcl source package of cygwin shows that it has a tcl.m4 which
checks for ${TCL_SRC_DIR}/generic/tclInt.h

So, it seems to be that gdb/acinclude.m4 is incorrect and should use
TCL_SRC_DIR as well.

I can get round this problem by doing the following

cd /usr/include
ln -s tcl8.5 tcl-private
ln -s tcl8.5 tk-private

Kris



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019