Details Ticket 882


Comment | Reply | Take | Open


Serial Number 882
Subject Configure errors
Area bug
Queue grass
Requestors aaime@libero.it
Owner none
Status resolved
Last User Contact Fri Dec 21 08:44:50 2001 (7 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Fri Dec 21 10:01:15 2001 (7 yr ago)
Created Thu Dec 20 09:05:42 2001 (7 yr ago)

Transaction History Ticket 882


Thu, Dec 20 2001 09:05:42    Request created by guest  
Subject: Configure errors

Platform: Linux/Intel
Linux distro: RedHat
linux cpu: Intel (i486, i586, pentium ...)
Xwindows version: Xfree 4.0.x
Xwindows manager: KDE 2.x
TclTk version: tcl/tk 8.3
grass downloaded at: CVS Server, Germany
grass binary for platform: I compiled the sources myself
grass sources source: no, I got a source code package from the server

./configure reports the following error:

checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes...
checking for tcl.h... yes
checking for tk.h... no
configure: error: *** Unable to locate Tk includes.

but tk is installed and tk.h is in /usr/include!!!
If I force header location:

./configure --with-tcltk-includes=/usr/include

checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes... /usr/include
checking for tcl.h... yes
checking for tk.h... no
configure: error: *** Unable to locate Tk includes.

rpm -qi tk reports that Tk 3.3.3 is installed.


Then I've done ./configure --without-tcltk and it doesn't find
the postgresql includes (they are in /usr/include/pgsql, I have
to force that location). I have Mesa 3.4.2 installed but configure
says:

checking whether to use OpenGL... yes
checking for location of OpenGL includes...
checking for GL/gl.h... yes
checking for GL/glu.h... yes
checking for location of OpenGL library...
checking for glBegin in -lGL... no
checking for glBegin in -lGL... no
configure: error: *** Unable to locate OpenGL library.

... REQUIREMENTS says that Mesa 3.x is needed, but this one is
not recognized.
Umpf, in the end configure does its work with the following parameters:

./configure --without-tcltk --with-postgres-includes=/usr/include/pgsql --without-opengl
--without-odbc --without-fftw

(odbc and fftw in fact are not installed, but do you expect that they
are installed on the average machine? The should be disabled IHMO)
Thu, Dec 20 2001 14:52:43    Mail sent by Andreas.Lange@Rhein-Main.de  
Return-Path <Andreas.Lange@Rhein-Main.de>
Delivered-To grass-bugs@lists.intevation.de
Sender andreas@t-online.de
Message-ID <3C21ED1A.47264758@Rhein-Main.de>
Date Thu, 20 Dec 2001 14:52:26 +0100
From Andreas Lange <Andreas.Lange@Rhein-Main.de>
Reply-To Andreas.Lange@Rhein-Main.de
Organization none
X-Mailer Mozilla 4.76 [en] (X11; U; Linux 2.2.17-7 i686)
X-Accept-Language de-DE, de, ru, en
MIME-Version 1.0
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #882] (grass) Configure errors
References <20011220080543.55A3113A14@lists.intevation.de>
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Sender 520060080963-0001@t-dialin.net
X-Spam-Status No, hits=0 required=5 tests=
Hi Andrea,

Request Tracker wrote:
> 
> ./configure reports the following error:
> 
> checking whether to use Tcl/Tk... yes
> checking for location of Tcl/Tk includes...
> checking for tcl.h... yes
> checking for tk.h... no
> configure: error: *** Unable to locate Tk includes.
> 
> but tk is installed and tk.h is in /usr/include!!!
> If I force header location:

Usually tcl/tk is found. But perhaps there was some incompatible change
from 8.3.1 (which is running here) to 8.3.3? Or tk.h is only a
place-holder? No idea here.

> 
> ./configure --with-tcltk-includes=/usr/include
> 
> checking whether to use Tcl/Tk... yes
> checking for location of Tcl/Tk includes... /usr/include
> checking for tcl.h... yes
> checking for tk.h... no
> configure: error: *** Unable to locate Tk includes.
> 
> rpm -qi tk reports that Tk 3.3.3 is installed.
> 
> Then I've done ./configure --without-tcltk and it doesn't find
> the postgresql includes (they are in /usr/include/pgsql, I have
> to force that location). I have Mesa 3.4.2 installed but configure
> says:

yes, the postgresql includes are in different dirs on different
platforms/distros. 

> 
> checking whether to use OpenGL... yes
> checking for location of OpenGL includes...
> checking for GL/gl.h... yes
> checking for GL/glu.h... yes
> checking for location of OpenGL library...
> checking for glBegin in -lGL... no
> checking for glBegin in -lGL... no
> configure: error: *** Unable to locate OpenGL library.
> 
> ... REQUIREMENTS says that Mesa 3.x is needed, but this one is
> not recognized.
> Umpf, in the end configure does its work with the following parameters:

What _exactly_ do you have installed?
I have installed Mesa-devel-3.3-5 and Mesa-3.3-5 rpms (Red Hat 7.0 based
system).

> 
> ./configure --without-tcltk --with-postgres-includes=/usr/include/pgsql --without-opengl
--without-odbc --without-fftw
> 
> (odbc and fftw in fact are not installed, but do you expect that they
> are installed on the average machine? The should be disabled IHMO)
> 
fftw is needed for several modules. It is a clean build (./configure;
make; make install) on all systems i encountered so far. Maybe there is
a rpm file too.

HTH,

Andreas
-- 
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
url: http://mitglied.tripod.de/AndreasLange
mail: Andreas.Lange_at_Rhein-Main.de - A.C.Lange_at_GMX.net


Thu, Dec 20 2001 16:25:30    Mail sent by aaime@libero.it  
Return-Path <aaime@libero.it>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <004701c1896a$0d3a0750$bc02090a@comnet.comune.modena.it>
From "Andrea Aime" <aaime@libero.it>
To "Request Tracker" <grass-bugs@intevation.de>
References <20011220135244.1CAAE13A12@lists.intevation.de>
Subject Re: [bug #882] (grass) Configure errors
Date Thu, 20 Dec 2001 16:21:52 +0100
MIME-Version 1.0
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding 7bit
X-Priority 3
X-MSMail-Priority Normal
X-Mailer Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE Produced By Microsoft MimeOLE V5.50.4807.1700
X-Spam-Status No, hits=0 required=5 tests=
wc -l /usr/include/tk.h -> 1381... definitely not a placeholder.
Moreover, tcltkgrass works properly, even if ./configure
doesn't detect it properly. Tcl/Tk are installed using
the standard rpm provided with RH7.2 (downloaded
ISO images from RH site)

Mesa is the standard rpm package available in the Redhat 7.2
distribution, Mesa version 3.4.2.
Bye
Andrea

PS: thank you for you help :-)

----- Original Message -----
From: "Request Tracker" <grass-bugs@intevation.de>
To: <aaime@libero.it>
Sent: Thursday, December 20, 2001 2:52 PM
Subject: [bug #882] (grass) Configure errors


> Hi Andrea,
>
> Request Tracker wrote:
> >
> > ./configure reports the following error:
> >
> > checking whether to use Tcl/Tk... yes
> > checking for location of Tcl/Tk includes...
> > checking for tcl.h... yes
> > checking for tk.h... no
> > configure: error: *** Unable to locate Tk includes.
> >
> > but tk is installed and tk.h is in /usr/include!!!
> > If I force header location:
>
> Usually tcl/tk is found. But perhaps there was some incompatible change
> from 8.3.1 (which is running here) to 8.3.3? Or tk.h is only a
> place-holder? No idea here.
>
> >
> > ./configure --with-tcltk-includes=/usr/include
> >
> > checking whether to use Tcl/Tk... yes
> > checking for location of Tcl/Tk includes... /usr/include
> > checking for tcl.h... yes
> > checking for tk.h... no
> > configure: error: *** Unable to locate Tk includes.
> >
> > rpm -qi tk reports that Tk 3.3.3 is installed.
> >
> > Then I've done ./configure --without-tcltk and it doesn't find
> > the postgresql includes (they are in /usr/include/pgsql, I have
> > to force that location). I have Mesa 3.4.2 installed but configure
> > says:
>
> yes, the postgresql includes are in different dirs on different
> platforms/distros.
>
> >
> > checking whether to use OpenGL... yes
> > checking for location of OpenGL includes...
> > checking for GL/gl.h... yes
> > checking for GL/glu.h... yes
> > checking for location of OpenGL library...
> > checking for glBegin in -lGL... no
> > checking for glBegin in -lGL... no
> > configure: error: *** Unable to locate OpenGL library.
> >
> > ... REQUIREMENTS says that Mesa 3.x is needed, but this one is
> > not recognized.
> > Umpf, in the end configure does its work with the following parameters:
>
> What _exactly_ do you have installed?
> I have installed Mesa-devel-3.3-5 and Mesa-3.3-5 rpms (Red Hat 7.0 based
> system).
>
> >
> >
./configure --without-tcltk --with-postgres-includes=/usr/include/pgsql --wi
thout-opengl --without-odbc --without-fftw
> >
> > (odbc and fftw in fact are not installed, but do you expect that they
> > are installed on the average machine? The should be disabled IHMO)
> >
> fftw is needed for several modules. It is a clean build (./configure;
> make; make install) on all systems i encountered so far. Maybe there is
> a rpm file too.
>
> HTH,
>
> Andreas
> --
> Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
> url: http://mitglied.tripod.de/AndreasLange
> mail: Andreas.Lange_at_Rhein-Main.de - A.C.Lange_at_GMX.net
>
>
> --- Headers Follow ---
>
> >From Andreas.Lange@Rhein-Main.de  Thu Dec 20 14:52:37 2001
> Return-Path: <Andreas.Lange@Rhein-Main.de>
> Delivered-To: grass-bugs@lists.intevation.de
> Received: from mail.intevation.de (aktaia [212.95.126.10])
> by lists.intevation.de (Postfix) with ESMTP id 590CB139CC
> for <grass-bugs@lists.intevation.de>; Thu, 20 Dec 2001 14:52:37 +0100
(CET)
> Received: from mailout11.sul.t-online.com (mailout11.sul.t-online.com
[194.25.134.85])
> by mail.intevation.de (Postfix) with ESMTP id 8333D1B77E
> for <grass-bugs@intevation.de>; Thu, 20 Dec 2001 14:52:37 +0100 (CET)
> Received: from fwd04.sul.t-online.de
> by mailout11.sul.t-online.de with smtp
> id 16H3ci-0003yy-0F; Thu, 20 Dec 2001 14:52:36 +0100
> Received: from Rhein-Main.de (520060080963-0001@[217.86.7.104]) by
fmrl04.sul.t-online.com
> with esmtp id 16H3cZ-0POp5kC; Thu, 20 Dec 2001 14:52:27 +0100
> Sender: andreas@t-online.de
> Message-ID: <3C21ED1A.47264758@Rhein-Main.de>
> Date: Thu, 20 Dec 2001 14:52:26 +0100
> From: Andreas Lange <Andreas.Lange@Rhein-Main.de>
> Reply-To: Andreas.Lange@Rhein-Main.de
> Organization: none
> X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17-7 i686)
> X-Accept-Language: de-DE, de, ru, en
> MIME-Version: 1.0
> To: Request Tracker <grass-bugs@intevation.de>
> Cc: grass5@grass.itc.it
> Subject: Re: [GRASS5] [bug #882] (grass) Configure errors
> References: <20011220080543.55A3113A14@lists.intevation.de>
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> X-Sender: 520060080963-0001@t-dialin.net
> X-Spam-Status: No, hits=0 required=5 tests=
>
> -------------------------------------------- Managed by Request Tracker


Thu, Dec 20 2001 20:43:44    Mail sent by glynn.clements@virgin.net  
Return-Path <glynn.clements@virgin.net>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn.clements@virgin.net>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <15394.15314.287700.811167@cerise.nosuchdomain.co.uk>
Date Thu, 20 Dec 2001 19:28:18 +0000
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #882] (grass) Configure errors
In-Reply-To <20011220080543.55A3113A14@lists.intevation.de>
References <20011220080543.55A3113A14@lists.intevation.de>
X-Mailer VM 6.94 under 21.4 (patch 4) "Artificial Intelligence (candidate #1)" XEmacs Lucid
X-Spam-Status No, hits=0 required=5 tests=
Request Tracker wrote:

> ./configure reports the following error:
> 
> checking whether to use Tcl/Tk... yes
> checking for location of Tcl/Tk includes...
> checking for tcl.h... yes
> checking for tk.h... no
> configure: error: *** Unable to locate Tk includes.
> 
> but tk is installed and tk.h is in /usr/include!!!

Note that tk.h includes some other headers (e.g. <X11/Xlib.h>); if
they can't be found, the configure test will fail (the configure test
for a header attempts to pre-process a file which "#include"s that
header; any error results in failure).

> Then I've done ./configure --without-tcltk and it doesn't find
> the postgresql includes (they are in /usr/include/pgsql, I have
> to force that location).

That is to be expected. Any header/library directories beyond those in
the compiler's/linker's default paths have to be explicitly specified
by the appropriate --with-*-includes/--with-*-libs switch.

Adding -I/-L switches automatically caused failures due to using the
wrong version of a header or library, and no combination of configure
switches could fix the problem.

> I have Mesa 3.4.2 installed but configure
> says:
> 
> checking whether to use OpenGL... yes
> checking for location of OpenGL includes...
> checking for GL/gl.h... yes
> checking for GL/glu.h... yes
> checking for location of OpenGL library...
> checking for glBegin in -lGL... no
> checking for glBegin in -lGL... no
> configure: error: *** Unable to locate OpenGL library.
> 
> ... REQUIREMENTS says that Mesa 3.x is needed, but this one is
> not recognized.

The configure check for a library attempts to link a test program
against that library. If the library has any dependencies, they must
also be found.

It isn't possible to determine exactly why these two tests failed
without seeing the appropriate section of config.log.

> Umpf, in the end configure does its work with the following parameters:
> 
> ./configure --without-tcltk --with-postgres-includes=/usr/include/pgsql --without-opengl
--without-odbc --without-fftw
> 
> (odbc and fftw in fact are not installed, but do you expect that they
> are installed on the average machine? The should be disabled IHMO)

This is deliberate.

When programs were automatically disabled because required
headers/libraries couldn't be found, people used to file bug reports
about the programs not being built, even though configure displayed a
warning message.

So, it was decided that any failures would result in an error, as a
user (hopefully) can't fail to notice that they've explicitly disabled
the library.

-- 
Glynn Clements <glynn.clements@virgin.net>


Fri, Dec 21 2001 08:44:50    Mail sent by guest  
Hi everybody,
looking at config.log I found out why ./configure
didn't find tk... missing X11 includes! RedHat doesn't
install X11 headers by default if you don't ask
for a developer box install...
Ok, my fault, but the problem is not obvious only
by configure output... since there is also a directive
on where to look for X11 includes, couldn't configure test
that at least they are there?
That explains also why Mesa wasn't detected and
why the XDRIVER couldn't be built.
Fri, Dec 21 2001 10:01:15    Status changed to resolved by mneteler  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request