[GRASS-dev] [GRASS GIS] #1684: configure GRASS 6 with X11 support
GRASS GIS
trac at osgeo.org
Sat Mar 1 00:54:03 PST 2014
#1684: configure GRASS 6 with X11 support
------------------------------------+---------------------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.4.4
Component: Compiling | Version: svn-releasebranch64
Keywords: configure, X11, debian | Platform: Linux
Cpu: x86-64 |
------------------------------------+---------------------------------------
Changes (by hamish):
* keywords: configure, X11 => configure, X11, debian
* priority: normal => major
* milestone: 6.4.3 => 6.4.4
Comment:
Hi,
I found a cause and solution to this on Debian/Wheezy. Using
CFLAGS="... -Werror-implicit-function-declaration"
on the ./configure like triggers an error in the test compile for X:
(config.log)
{{{
...
configure:4791: checking for W11
configure:4819: checking for X
configure:4884: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4960: gcc -o conftest -ggdb -march=amdfam10 -Wall -Werror-
implicit-function-declaration -fno-common -Wextra -Wunused -Wl
,--export-dynamic conftest.c -lXt 1>&5
configure: In function 'main':
configure:4956:1: error: implicit declaration of function 'XtMalloc'
[-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
configure: failed program was:
#line 4953 "configure"
#include "confdefs.h"
int main() {
XtMalloc()
; return 0; }
configure:5627: checking whether to use Curses
configure:5646: checking for curses.h
...
}}}
who's forgetting to do the #include? a bug in autoconf or one of ours?
./configure'ing without -Werror-implicit-function-declaration leads to X
being detected and built.
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1684#comment:10>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list