Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gnome-base/gnome-libs configure: error: GTK not installed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Sun Mar 26, 2006 7:09 am    Post subject: gnome-base/gnome-libs configure: error: GTK not installed Reply with quote

Code:
Calculating dependencies                        ... done!
>>> Emerging (1 of 14) gnome-base/gnome-libs-1.4.2 to /
>>> checksums files   ;-) gnome-libs-1.4.2.ebuild
>>> checksums files   ;-) files/gnome-libs-1.4.2-m4.patch
>>> checksums files   ;-) files/gnome-libs-1.4.2-gcc4.patch
>>> checksums files   ;-) files/digest-gnome-libs-1.4.2
>>> checksums files   ;-) files/gnome-libs-1.4.2-gtkdoc_fixes.patch
>>> checksums files   ;-) files/gnome-libs-1.4.2-ppc64.patch
>>> checksums src_uri ;-) gnome-libs-1.4.2.tar.bz2
>>> Unpacking source...
>>> Unpacking gnome-libs-1.4.2.tar.bz2 to /var/tmp/portage/gnome-libs-1.4.2/work
 * Applying gnome-libs-1.4.2-m4.patch ...                                                                                         [ ok ] * Applying gnome-libs-1.4.2-gtkdoc_fixes.patch ...                                                                               [ ok ] * Applying gnome-libs-1.4.2-gcc4.patch ...                                                                                       [ ok ] * Applying gnome-libs-1.4.2-ppc64.patch ...                                                                                      [ ok ] * Running autoconf ...                                                                                                           [ ok ]>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/gnome-libs-1.4.2/work/gnome-libs-1.4.2 ...
 * Running elibtoolize in: gnome-libs-1.4.2
 *   Applying portage-1.4.1.patch ...
 *   Applying relink-1.4.1.patch ...
 *   Applying sed-1.4.0.patch ...
 *   Applying uclibc-conf-1.2.0.patch ...
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... 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... found
checking for strerror in -lcposix... no
checking for gcc... gcc
checking whether the C compiler (gcc -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 -Wl,-O1 -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort -Wl,--as-needed -Wl,--sort-common -s) works... yes
checking whether the C compiler (gcc -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 -Wl,-O1 -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort -Wl,--as-needed -Wl,--sort-common -s) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/i686-pc-linux-gnu/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 -lc should be explicitly linked in... no
creating libtool
checking whether to enable maintainer-specific portions of Makefiles... no
checking what warning flags to pass to the C compiler... -Wall -Wunused
checking what language compliance flags to pass to the C compiler...
checking for pthread_create in -lpthread... yes
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.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 gtk-config script: /usr/bin/gtk-config
configure: error: GTK not installed

!!! ERROR: gnome-base/gnome-libs-1.4.2 failed.
Call stack:
  ebuild.sh, line 1565:   Called dyn_compile
  ebuild.sh, line 974:   Called src_compile

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Code:
* x11-libs/gtk+
     Available versions:  1.2.10-r10 1.2.10-r11 2.6.10-r1 2.8.8 ~2.8.11 2.8.12 ~2.8.13 [M]2.8.16
     Installed:           1.2.10-r11 2.8.13
     Homepage:            http://www.gtk.org/
     Description:         Gimp ToolKit +
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Sun Mar 26, 2006 9:43 am    Post subject: Reply with quote

Code:
-Wl,-O1 -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort -Wl,--as-needed -Wl,--sort-common -s

this is your problem
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Sun Mar 26, 2006 9:44 am    Post subject: Reply with quote

if it was it would have compiled with empty ldflags, i was not born yesturday.
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Sun Mar 26, 2006 9:56 am    Post subject: Reply with quote

Well, if you were not born yesterday then find your problem yourself :twisted:
FYI https://forums.gentoo.org/viewtopic-p-2878423.html#2878423
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Sun Mar 26, 2006 11:20 am    Post subject: Reply with quote

thats completely not my issue
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Sun Mar 26, 2006 9:02 pm    Post subject: Reply with quote

just to prove my point.
Code:
Kamo-chan weedy # LDFLAGS="" emerge gnome-base/gnome-libs
Calculating dependencies ... done!
>>> Emerging (1 of 1) gnome-base/gnome-libs-1.4.2 to /
>>> checksums files   ;-) gnome-libs-1.4.2.ebuild
>>> checksums files   ;-) files/gnome-libs-1.4.2-m4.patch
>>> checksums files   ;-) files/gnome-libs-1.4.2-gcc4.patch
>>> checksums files   ;-) files/digest-gnome-libs-1.4.2
>>> checksums files   ;-) files/gnome-libs-1.4.2-gtkdoc_fixes.patch
>>> checksums files   ;-) files/gnome-libs-1.4.2-ppc64.patch
>>> checksums src_uri ;-) gnome-libs-1.4.2.tar.bz2
>>> Unpacking source...
>>> Unpacking gnome-libs-1.4.2.tar.bz2 to /var/tmp/portage/gnome-libs-1.4.2/work
 * Applying gnome-libs-1.4.2-m4.patch ...                                                                                         [ ok ]
 * Applying gnome-libs-1.4.2-gtkdoc_fixes.patch ...                                                                            [ ok ]
 * Applying gnome-libs-1.4.2-gcc4.patch ...                                                                                       [ ok ]
 * Applying gnome-libs-1.4.2-ppc64.patch ...                                                                                     [ ok ]
 * Running autoconf ...                                                                                                                    [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/gnome-libs-1.4.2/work/gnome-libs-1.4.2 ...
 * Running elibtoolize in: gnome-libs-1.4.2
 *   Applying portage-1.4.1.patch ...
 *   Applying relink-1.4.1.patch ...
 *   Applying sed-1.4.0.patch ...
 *   Applying uclibc-conf-1.2.0.patch ...
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... 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... found
checking for strerror in -lcposix... no
checking for gcc... gcc
checking whether the C compiler (gcc -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 ) works... yes
checking whether the C compiler (gcc -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/i686-pc-linux-gnu/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 -lc should be explicitly linked in... no
creating libtool
checking whether to enable maintainer-specific portions of Makefiles... no
checking what warning flags to pass to the C compiler... -Wall -Wunused
checking what language compliance flags to pass to the C compiler...
checking for pthread_create in -lpthread... yes
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.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 gtk-config script: /usr/bin/gtk-config
configure: error: GTK not installed

!!! ERROR: gnome-base/gnome-libs-1.4.2 failed.
Call stack:
  ebuild.sh, line 1526:   Called dyn_compile
  ebuild.sh, line 923:   Called src_compile
  gnome-libs-1.4.2.ebuild, line 71:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Sun Mar 26, 2006 9:42 pm    Post subject: Reply with quote

Ok the advice from infrit in the thread was to compile orbit without ldflags so could you try
Code:
LDFLAGS="" emerge =orbit-0.5* gnome-base/gnome-libs

although it really seems that the problem could be somewhere else also (it used to fail here with --as-needed)
if the orbit recompilation without ld-flags does not help, could you post the failing part from your config.log
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Sun Mar 26, 2006 10:33 pm    Post subject: Reply with quote

same thing
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Sun Mar 26, 2006 10:40 pm    Post subject: Reply with quote

what's in the config.log (var/tmp/portage/gnome-libs-xxx/work/gnome-libs-xxx/config.log) this could give a clue to why this happens
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Sun Mar 26, 2006 11:16 pm    Post subject: Reply with quote

Code:
Kamo-chan weedy # cat /var/tmp/portage/gnome-libs-1.4.2/work/gnome-libs-1.4.2/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:799: checking host system type
configure:820: checking target system type
configure:838: checking build system type
configure:873: checking for a BSD compatible install
configure:926: checking whether build environment is sane
configure:983: checking whether make sets ${MAKE}
configure:1029: checking for working aclocal
configure:1042: checking for working autoconf
configure:1055: checking for working automake
configure:1068: checking for working autoheader
configure:1081: checking for working makeinfo
configure:1113: checking for strerror in -lcposix
configure:1132: gcc -o conftest -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1   conftest.c -lcposix   1>&5
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lcposix
collect2: ld returned 1 exit status
configure: failed program was:
#line 1121 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char strerror();

int main() {
strerror()
; return 0; }
configure:1157: checking for gcc
configure:1270: checking whether the C compiler (gcc -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 ) works
configure:1286: gcc -o conftest -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1   conftest.c  1>&5
configure:1312: checking whether the C compiler (gcc -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 ) is a cross-compiler
configure:1317: checking whether we are using GNU C
configure:1326: gcc -E conftest.c
configure:1345: checking whether gcc accepts -g
configure:1377: checking how to run the C preprocessor
configure:1398: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1457: checking for ANSI C header files
configure:1470: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1537: gcc -o conftest -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1   conftest.c  1>&5
configure:1527:19: error: /usr/include/db1/ctype.h: Permission denied
configure: In function 'main':
configure:1532: warning: incompatible implicit declaration of built-in function 'exit'
configure: failed program was:
#line 1526 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

configure:1581: checking for Cygwin environment
configure:1597: gcc -c -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1  conftest.c 1>&5
configure: In function 'main':
configure:1593: error: '__CYGWIN32__' undeclared (first use in this function)
configure:1593: error: (Each undeclared identifier is reported only once
configure:1593: error: for each function it appears in.)
configure: failed program was:
#line 1586 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:1614: checking for mingw32 environment
configure:1626: gcc -c -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1  conftest.c 1>&5
configure: In function 'main':
configure:1622: error: '__MINGW32__' undeclared (first use in this function)
configure:1622: error: (Each undeclared identifier is reported only once
configure:1622: error: for each function it appears in.)
configure: failed program was:
#line 1619 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:1723: checking for ld used by GCC
configure:1791: checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld
GNU ld version 2.16.91.0.6 20060212
configure:1808: checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files
configure:1820: checking for BSD-compatible nm
configure:1858: checking whether ln -s works
configure:1879: checking how to recognise dependant libraries
configure:2052: checking for object suffix
configure:2058: gcc -c -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1  conftest.c 1>&5
configure:2078: checking for executable suffix
configure:2088: gcc -o conftest -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1   conftest.c  1>&5
configure:2119: checking command to parse /usr/bin/nm -B output
configure:2195: gcc -c -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1  conftest.c 1>&5
configure:2198: /usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm
configure:2249: gcc -o conftest -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1   conftest.c conftstm.o 1>&5
configure:2295: checking for dlfcn.h
configure:2305: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2473: checking for ranlib
configure:2540: checking for strip
configure:2776: checking for objdir
configure:2803: checking for gcc option to produce PIC
configure:2955: checking if gcc PIC flag -fPIC works
configure:2969: gcc -c -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 -fPIC -DPIC  conftest.c 1>&5
configure:3021: checking if gcc static flag -static works
configure:3036: gcc -o conftest -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1   -static conftest.c  1>&5
configure:3063: checking if gcc supports -c -o file.o
configure:3082: gcc -c -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 -o out/conftest2.o  conftest.c 1>&5
configure:3111: checking if gcc supports -c -o file.lo
configure:3127: gcc -c -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 -c -o conftest.lo  conftest.c 1>&5
configure:3176: checking if gcc supports -fno-rtti -fno-exceptions
configure:3189: gcc -c -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 -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:3216: checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries
configure:3832: checking how to hardcode library paths into programs
configure:3860: checking whether stripping libraries is possible
configure:3874: checking dynamic linker characteristics
configure:4260: checking if libtool supports shared libraries
configure:4753: checking whether -lc should be explicitly linked in
configure:4760: gcc -c -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1  conftest.c 1>&5
configure:4773: gcc -shared conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2>&1 | grep  -lc  >/dev/null 2>&1
configure:5352: checking whether to enable maintainer-specific portions of Makefiles
configure:5388: checking what warning flags to pass to the C compiler
configure:5420: checking what language compliance flags to pass to the C compiler
configure:5446: checking for pthread_create in -lpthread
configure:5465: gcc -o conftest -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 -Wall -Wunused    conftest.c -lpthread   1>&5
configure:5670: checking for gtk-config
configure:5705: checking for GTK - version >= 1.2.0
configure:5806: gcc -o conftest -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 -Wall -Wunused  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include   conftest.c -L/usr/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm  1>&5
configure:5730:21: error: /usr/include/db1/gtk/gtk.h: Permission denied
configure:5731:19: error: /usr/include/db1/stdio.h: Permission denied
configure:5732:20: error: /usr/include/db1/stdlib.h: Permission denied
configure: In function 'main':
configure:5740: warning: implicit declaration of function 'system'
configure:5743: warning: implicit declaration of function 'g_strdup'
configure:5743: warning: assignment makes pointer from integer without a cast
configure:5744: warning: implicit declaration of function 'sscanf'
configure:5744: warning: incompatible implicit declaration of built-in function 'sscanf'
configure:5745: warning: implicit declaration of function 'printf'
configure:5745: warning: incompatible implicit declaration of built-in function 'printf'
configure:5746: warning: implicit declaration of function 'exit'
configure:5746: warning: incompatible implicit declaration of built-in function 'exit'
configure:5749: error: 'gtk_major_version' undeclared (first use in this function)
configure:5749: error: (Each undeclared identifier is reported only once
configure:5749: error: for each function it appears in.)
configure:5750: error: 'gtk_minor_version' undeclared (first use in this function)
configure:5751: error: 'gtk_micro_version' undeclared (first use in this function)
configure:5753: warning: incompatible implicit declaration of built-in function 'printf'
configure:5786: warning: incompatible implicit declaration of built-in function 'printf'
configure: failed program was:
#line 5728 "configure"
#include "confdefs.h"

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

int
main ()
{
  int major, minor, micro;
  char *tmp_version;

  system ("touch conf.gtktest");

  /* HP/UX 9 (%@#!) writes to sscanf strings */
  tmp_version = g_strdup("1.2.0");
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
     printf("%s, bad version string\n", "1.2.0");
     exit(1);
   }

  if ((gtk_major_version != 1) ||
      (gtk_minor_version != 2) ||
      (gtk_micro_version != 10))
    {
      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
             1, 2, 10,
             gtk_major_version, gtk_minor_version, gtk_micro_version);
      printf ("*** was found! If gtk-config was correct, then it is best\n");
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
      printf("*** required on your system.\n");
      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
      printf("*** before re-running configure\n");
    }
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
           (gtk_minor_version != GTK_MINOR_VERSION) ||
           (gtk_micro_version != GTK_MICRO_VERSION))
    {
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
      printf("*** library (version %d.%d.%d)\n",
             gtk_major_version, gtk_minor_version, gtk_micro_version);
    }
#endif /* defined (GTK_MAJOR_VERSION) ... */
  else
    {
      if ((gtk_major_version > major) ||
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
      {
        return 0;
       }
     else
      {
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
               gtk_major_version, gtk_minor_version, gtk_micro_version);
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
               major, minor, micro);
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
        printf("***\n");
        printf("*** If you have already installed a sufficiently new version, this error\n");
        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
        printf("*** so that the correct libraries are found at run-time))\n");
      }
    }
  return 1;
}

configure:5850: gcc -o conftest -march=pentium3 -O2 -fomit-frame-pointer -pipe -I/usr/include/db1 -Wall -Wunused  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include   conftest.c  -L/usr/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm 1>&5
configure:5842:21: error: /usr/include/db1/gtk/gtk.h: Permission denied
configure:5843:19: error: /usr/include/db1/stdio.h: Permission denied
configure: In function 'main':
configure:5846: error: 'gtk_major_version' undeclared (first use in this function)
configure:5846: error: (Each undeclared identifier is reported only once
configure:5846: error: for each function it appears in.)
configure:5846: error: 'gtk_minor_version' undeclared (first use in this function)
configure:5846: error: 'gtk_micro_version' undeclared (first use in this function)
configure: failed program was:
#line 5840 "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; }
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Sun Mar 26, 2006 11:24 pm    Post subject: Reply with quote

It seems that "-I/usr/include/db1" is the problem.
where does this "-I/usr/include/db1" come from?
You don't have it in your cxx/cflags?
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Sun Mar 26, 2006 11:28 pm    Post subject: Reply with quote

Gergan Penkov wrote:
It seems that "-I/usr/include/db1" is the problem.
where does this "-I/usr/include/db1" come from?
You don't have it in your cxx/cflags?
way a head of you crap in /usr/include/db1 is owned by sys-libs/db re-emerge now
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Sun Mar 26, 2006 11:46 pm    Post subject: Reply with quote

ok that failed wtf owns /usr/include/db1/gtk/gtk.h cause i don't have it
Back to top
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Sun Mar 26, 2006 11:47 pm    Post subject: Reply with quote

Care to post your emerge --info?
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Mon Mar 27, 2006 12:05 am    Post subject: Reply with quote

Code:
Kamo-chan weedy # emerge --info
Portage 2.1_pre7-r1 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2, 2.16.91.0.4, 2.16.91.0.5, 2.16.91.0.6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo"
LANG="en_CA.UTF-8"
LC_ALL="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort -Wl,--as-needed -Wl,--sort-common -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/chewi-overlay /usr/local/overlays/initng-portage /usr/local/overlays/java-experimental /usr/local/overlays/migration-overlay"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="x86 7zip X X509 aac acl acpi alsa apm authdaemond automount avi bash-completion berkdb bitmap-fonts browserplugin bzip2 bzlib ccache chroot cjk cli cluster crypt ctype curlwrappers dba dio dlloader dri dts dvd dvdr dvdread eds emboss encode expat extensions extrafilters fastbuild fbcon ffmpeg flac font-server foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gpm gstreamer gtk gtk2 imagemagick imap imlib innodb ipv6 java javamail jpeg kerberos libg++ libwww lirc mad maildir matroska memlimit mikmod mmx mng motif mp3 mpeg mpi nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses network neural nis nls nptl nptlonly nsplugin nvidia objc ogg opengl oss pam pcntl pcre pdflib perl pg-hier pg-intdatetime pg-vacuumdelay pic png posix procmail python qt quicktime random readline rtc samba sasl sdl sendfile session sftplogging shaper shared sharedext sharedmem simplexml soap sockets softquota spell spl sse ssl startup-notification sysvipc szip tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userlocales vda vhosts virtual-users virus-scan vorbis wddx win32codecs xml xmlrpc xmms xsl xv xvid zlib elibc_glibc initng_plugins_doc initng_plugins_also initng_plugins_bash_launcher initng_plugins_chdir initng_plugins_chroot initng_plugins_conflict initng_plugins_cpout initng_plugins_critical initng_plugins_cron initng_plugins_daemon initng_plugins_dev initng_plugins_dllaunch initng_plugins_envparser initng_plugins_find initng_plugins_fstat initng_plugins_history initng_plugins_idleprobe initng_plugins_initctl initng_plugins_interactive initng_plugins_iparser initng_plugins_last initng_plugins_limit initng_plugins_logfile initng_plugins_netprobe initng_plugins_ngc2 initng_plugins_pause initng_plugins_pidfile initng_plugins_reload initng_plugins_renice initng_plugins_rlparser initng_plugins_simple_launcher initng_plugins_stcmd initng_plugins_stdout initng_plugins_suid initng_plugins_syncron initng_plugins_syslog initng_plugins_unneeded input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LINGUAS

Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Mon Mar 27, 2006 12:16 am    Post subject: Reply with quote

try without confcache, if this does not help, remove from the ebuild and see if this will resolve the issue:
--enable-prefer-db1 \
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Mon Mar 27, 2006 1:28 am    Post subject: Reply with quote

err what? and -confcache didn't work
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Mon Mar 27, 2006 1:36 am    Post subject: Reply with quote

well LDFLAGS="" FEATURES="-confcache" emerge gnome-libs should be it, the other thing, was that the configure in the gnome-libs has this line
Code:
 --enable-prefer-db1 \

try removing it from the ebuild, digesting and trying again to emerge (although, I don't believe that this will help, as the ebuild could not be that broken)
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Mon Mar 27, 2006 1:57 am    Post subject: Reply with quote

done and i still get lolfail
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Mon Mar 27, 2006 2:26 am    Post subject: Reply with quote

Well, I have it overseen in the ebuild:
Code:
CFLAGS="$CFLAGS -I/usr/include/db1"

but what the heck is this here for - this should be patched eventually in the configure or in the makefiles, remove it and try again, but I don't see why it does not pick the other include dirs. It's very strange
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Mon Mar 27, 2006 9:16 am    Post subject: Reply with quote

no change
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Mon Mar 27, 2006 2:59 pm    Post subject: Reply with quote

Quote:
configure:5730:21: error: /usr/include/db1/gtk/gtk.h: Permission denied
configure:5731:19: error: /usr/include/db1/stdio.h: Permission denied
configure:5732:20: error: /usr/include/db1/stdlib.h: Permission denied

this does not look good, it should be at least file not found, probably that's why it fails to search in the other include dirs, simply because it fails on permission denied.
Could you try to copy the test program and run the exact same command as in configure to try to compile it.
how it failed when you removed CFLAGS="$CFLAGS -I/usr/include/db1" from the ebuild, with permission denied for other dirs?
And what do you get on sth simple as
Code:
cat /usr/include/db1/ctype.h



[EDIT]Well I have compared some old log of mine with yours, the thing, which is extremely strange is this line:
Quote:
Checking for ANSI C header files...

it is yes here and it is no in your log. It should be yes - probably this creates the rest of the problems. But it is again a problem with permission denied. hmm... [/EDIT]
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Mon Mar 27, 2006 8:51 pm    Post subject: Reply with quote

it's "Permission denied" cause they don't exist
Back to top
View user's profile Send private message
weedy
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 247

PostPosted: Tue Mar 28, 2006 8:22 pm    Post subject: Reply with quote

time for a bump
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Wed Apr 12, 2006 7:27 pm    Post subject: Reply with quote

If you didn't solve your problem yet here is how I solved it for me.
Code:
LDFLAGS="" FEATURES="-confcache" emerge gnome-libs

returned that imlib >= 1.8 was not installed, so I used this
Code:
LDFLAGS="" FEATURES="-confcache" emerge imlib gnome-libs

and it compiled ok.
Hope it helps in any way
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum