[Bug 42888] ./configure problem

lucian_iuga lucian.iuga at mymail.ro
Thu May 4 07:38:10 UTC 2006


Public bug reported:

Affects: gtk+2.0 (Ubuntu)
       Severity: Normal
       Priority: (none set)
         Status: Unconfirmed


Description:
Binary package hint: libgtk2.0-dev

This is pretty much what I get whenever I try to compile something that
requires gtk2

myself at home:~/downloads/^src/gwhere-0.2.1$ ./configure --enable-gtk20 
loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for strerror in -lcposix... (cached) no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking whether gcc needs -traditional... (cached) no
checking whether ln -s works... (cached) yes
checking for mawk... (cached) mawk
checking for gcc option to accept ANSI C... (cached) none needed
checking for ANSI C header files... (cached) yes
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking command to parse /usr/bin/nm -B output... (cached) ok
checking for dlfcn.h... (cached) yes
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for objdir... .libs
checking for gcc option to produce PIC... (cached)   -fPIC
checking if gcc PIC flag   -fPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -c -o file.lo... (cached) yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... (cached) no
creating libtool
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 1.3.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ was incorrectly installed
*** or that you have moved GTK+ since it was installed. In the latter case, you
*** may want to edit the pkg-config script: /usr/bin/pkg-config
configure: error: Cannot find GTK: Is gtk-config in path?
==============================================
Contents of config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:767: checking for a BSD compatible install
configure:820: checking whether build environment is sane
configure:877: checking whether make sets ${MAKE}
configure:923: checking for working aclocal
configure:936: checking for working autoconf
configure:949: checking for working automake
configure:962: checking for working autoheader
configure:975: checking for working makeinfo
configure:1003: checking for strerror in -lcposix
configure:1047: checking for gcc
configure:1160: checking whether the C compiler (gcc  ) works
configure:1176: gcc -o conftest    conftest.c  1>&5
configure:1202: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1207: checking whether we are using GNU C
configure:1235: checking whether gcc accepts -g
configure:1271: checking for c++
configure:1303: checking whether the C++ compiler (c++  ) works
configure:1319: c++ -o conftest    conftest.C  1>&5
configure:1345: checking whether the C++ compiler (c++  ) is a cross-compiler
configure:1350: checking whether we are using GNU C++
configure:1378: checking whether c++ accepts -g
configure:1410: checking whether make sets ${MAKE}
configure:1437: checking how to run the C preprocessor
configure:1518: checking whether gcc needs -traditional
configure:1564: checking whether ln -s works
configure:1589: checking for mawk
configure:1622: checking for gcc option to accept ANSI C
configure:1699: checking for ANSI C header files
configure:1816: checking for Cygwin environment
configure:1849: checking for mingw32 environment
configure:1953: checking host system type
configure:1974: checking build system type
configure:2003: checking for ld used by GCC
configure:2071: checking if the linker (/usr/bin/ld) is GNU ld
configure:2088: checking for /usr/bin/ld option to reload object files
configure:2100: checking for BSD-compatible nm
configure:2138: checking how to recognise dependant libraries
configure:2315: checking for object suffix
configure:2341: checking for executable suffix
configure:2382: checking command to parse /usr/bin/nm -B output
configure:2565: checking for dlfcn.h
configure:2743: checking for ranlib
configure:2810: checking for strip
configure:3053: checking for objdir
configure:3080: checking for gcc option to produce PIC
configure:3232: checking if gcc PIC flag   -fPIC works
configure:3298: checking if gcc static flag -static works
configure:3340: checking if gcc supports -c -o file.o
configure:3388: checking if gcc supports -c -o file.lo
configure:3456: checking if gcc supports -fno-rtti -fno-exceptions
configure:3469: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c  conftest.c 1>&5
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
configure:3496: checking whether the linker (/usr/bin/ld) supports shared libraries
configure:4181: checking how to hardcode library paths into programs
configure:4209: checking whether stripping libraries is possible
configure:4223: checking dynamic linker characteristics
configure:4624: checking if libtool supports shared libraries
configure:4628: checking whether to build shared libraries
configure:4651: checking whether to build static libraries
configure:5187: checking whether -lc should be explicitly linked in
configure:5847: checking for pkg-config
configure:5895: checking for GTK+ - version >= 1.3.0
configure:6047: gcc -o conftest -g -O2    conftest.c   1>&5
configure:6039:21: error: gtk/gtk.h: No such file or directory
configure: In function 'main':
configure:6043: error: 'gtk_major_version' undeclared (first use in this function)
configure:6043: error: (Each undeclared identifier is reported only once
configure:6043: error: for each function it appears in.)
configure:6043: error: 'gtk_minor_version' undeclared (first use in this function)
configure:6043: error: 'gtk_micro_version' undeclared (first use in this function)
configure: failed program was:
#line 6037 "configure"
#include "confdefs.h"

#include <gtk/gtk.h>
#include <stdio.h>

int main() {
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
; return 0; }


==============================================
Others are having the same problem:
http://ubuntuforums.org/showthread.php?t=170134
http://ubuntuforums.org/showthread.php?t=105927&highlight=gtk+dev
http://ubuntuforums.org/showthread.php?t=152204&highlight=gtk+dev

-- 
./configure problem
https://launchpad.net/bugs/42888




More information about the desktop-bugs mailing list