Newsgroup: it.comp.os.linux.iniziare
Titolo: GLIB errore in ogni compilazione

ciao a tutti!
ho la SUSE 7.1
non mi ha mai dato problemi di particolare sorta e sono riuscito a 
configurare tutto il configurabile..
Ora però qualsiasi programma cerco di installare (do' il ./configure) e mi 
salta fuori questo errore:
checking for glib-config... /usr/bin/glib-config
checking for GLIB - version >= 1.2.0... no
*** Could not run GLIB 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 GLIB was incorrectly 
installed
*** or that you have moved GLIB since it was installed. In the latter case, 
you
*** may want to edit the glib-config script: /usr/bin/glib-config
configure: error: Cannot find glib: Is glib installed?   
Inoltre ho provato a disinstallare tutte le GLIB rimettere il cd di 
installazione (anche xchè ovviamente non partiva + niente) 
rinstallare ma niente.. 
Stesso identico errore!!!
dando il comando /usr/bin/glib-config --version 
ottengo:  1.2.8
:-( help... 
-- 
Nightwhisper (Love & Peace!)
Le corde si muovono nell'oscurità... il suono prende vita: le fiamme 
dell'inferno ti stanno consumando... e non riesci a distogliere lo sguardo 
da quei dannati occhi blu!!
Socio del "SdC Fan Club", tessera n° 0006

HELP!
cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:589: checking host system type
configure:610: checking target system type
configure:628: checking build system type
configure:662: checking for a BSD compatible install
configure:715: checking whether build environment is sane
configure:772: checking whether make sets ${MAKE}
configure:818: checking for working aclocal
configure:831: checking for working autoconf
configure:844: checking for working automake
configure:857: checking for working autoheader
configure:870: checking for working makeinfo
configure:889: checking whether make sets ${MAKE}
configure:918: checking for gcc
configure:1031: checking whether the C compiler (gcc  ) works
configure:1047: gcc -o conftest    conftest.c  1>&5
configure:1073: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1078: checking whether we are using GNU C
configure:1087: gcc -E conftest.c
configure:1106: checking whether gcc accepts -g
configure:1138: checking for POSIXized ISC
configure:1161: checking for gcc
configure:1274: checking whether the C compiler (gcc -g -O2 ) works
configure:1290: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1316: checking whether the C compiler (gcc -g -O2 ) is a 
cross-compiler
configure:1321: checking whether we are using GNU C
configure:1349: checking whether gcc accepts -g
configure:1384: checking for gcc option to accept ANSI C
configure:1437: gcc  -c -g -O2  conftest.c 1>&5
configure:1461: checking how to run the C preprocessor
configure:1482: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1541: checking for ANSI C header files
configure:1554: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1621: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1656: checking for a BSD compatible install
configure:1711: checking for ranlib
configure:1741: checking whether gcc and cc understand -c and -o together
configure:1756: gcc -c conftest.c -o conftest.o 1>&5
configure:1757: gcc -c conftest.c -o conftest.o 1>&5
configure:1762: cc -c conftest.c 1>&5
configure:1764: cc -c conftest.c -o conftest.o 1>&5
configure:1765: cc -c conftest.c -o conftest.o 1>&5
configure:1802: checking for fcntl.h
configure:1812: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1802: checking for sys/ioctl.h
configure:1812: gcc -E  conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/sys/ioctl.h:27,
                 from configure:1808:
/usr/include/bits/ioctls.h:24: asm/ioctls.h: File o directory inesistente
In file included from /usr/include/sys/ioctl.h:30,
                 from configure:1808:
/usr/include/bits/ioctl-types.h:25: asm/ioctls.h: File o directory 
inesistente
configure: failed program was:
#line 1807 "configure"
#include "confdefs.h"
#include <sys/ioctl.h>
configure:1802: checking for unistd.h
configure:1812: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1840: checking size of int
configure:1859: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1879: checking size of long
configure:1898: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1918: checking size of short
configure:1937: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1958: checking for working const
configure:2012: gcc -c -g -O2  conftest.c 1>&5
configure:2033: checking for inline
configure:2047: gcc -c -g -O2  conftest.c 1>&5
configure:2073: checking whether byte ordering is bigendian
configure:2091: gcc -c -g -O2  conftest.c 1>&5
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:144,
                 from 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/limits.h:117,
                 from 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/syslimits.h:7,
                 from 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/limits.h:11,
                 from /usr/include/sys/param.h:22,
                 from configure:2082:
/usr/include/bits/local_lim.h:36: linux/limits.h: File o directory 
inesistente
In file included from configure:2082:
/usr/include/sys/param.h:23: linux/limits.h: File o directory inesistente
/usr/include/sys/param.h:24: linux/param.h: File o directory inesistente
configure: failed program was:
#line 2080 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
; return 0; }
configure:2139: gcc -o conftest -g -O2   conftest.c  1>&5
configure:2163: checking whether char is unsigned
configure:2230: checking for linux/rush_usb.h
configure:2240: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2236: linux/rush_usb.h: File o directory inesistente
configure: failed program was:
#line 2235 "configure"
#include "confdefs.h"
#include <linux/rush_usb.h>
configure:2319: checking for glib-config
configure:2354: checking for GLIB - version >= 1.2.0
configure:2453: gcc -o conftest -g -O2    conftest.c   1>&5
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:144,
                 from 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/limits.h:117,
                 from 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/syslimits.h:7,
                 from 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/limits.h:11,
                 from /usr/include/glibconfig.h:13,
                 from /usr/include/glib.h:66,
                 from configure:2379:
/usr/include/bits/local_lim.h:36: linux/limits.h: File o directory 
inesistente
configure: failed program was:
#line 2377 "configure"
#include "confdefs.h"
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
  int major, minor, micro;
  char *tmp_version;
  system ("touch conf.glibtest");
  /* 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 ((glib_major_version != ) ||
      (glib_minor_version != ) ||
      (glib_micro_version != ))
    {
      printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB 
(%d.%d.%d)\n",
             , , ,
             glib_major_version, glib_minor_version, glib_micro_version);
      printf ("*** was found! If glib-config was correct, then it is 
best\n");
      printf ("*** to remove the old version of GLIB. 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 glib-config was wrong, set the environment variable 
GLIB_CONFIG\n");
      printf("*** to point to the correct copy of glib-config, and remove 
the file config.cache\n");
      printf("*** before re-running configure\n");
    }
  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
           (glib_minor_version != GLIB_MINOR_VERSION) ||
           (glib_micro_version != GLIB_MICRO_VERSION))
    {
      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
      printf("*** library (version %d.%d.%d)\n",
             glib_major_version, glib_minor_version, glib_micro_version);
    }
  else
    {
      if ((glib_major_version > major) ||
        ((glib_major_version == major) && (glib_minor_version > minor)) ||
        ((glib_major_version == major) && (glib_minor_version == minor) && 
(glib_micro_version >= micro)))
      {
        return 0;
       }
     else
      {
        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
               glib_major_version, glib_minor_version, glib_micro_version);
        printf("*** You need a version of GLIB newer than %d.%d.%d. The 
latest version of\n",
               major, minor, micro);
        printf("*** GLIB 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 glib-config 
shell script is\n");
        printf("*** being found. The easiest way to fix this is to remove 
the old version\n");
        printf("*** of GLIB, but you can also set the GLIB_CONFIG 
environment to point to the\n");
        printf("*** correct copy of glib-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:2497: gcc -o conftest -g -O2    conftest.c   1>&5
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:144,
                 from 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/limits.h:117,
                 from 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/syslimits.h:7,
                 from 
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/limits.h:11,
                 from /usr/include/glibconfig.h:13,
                 from /usr/include/glib.h:66,
                 from configure:2489:
/usr/include/bits/local_lim.h:36: linux/limits.h: File o directory 
inesistente
configure: failed program was:
#line 2487 "configure"
#include "confdefs.h"
 
#include <glib.h>
#include <stdio.h>
 
int main() {
 return ((glib_major_version) || (glib_minor_version) || 
(glib_micro_version));
; return 0; }  


 :-( help...
I casi sono due, o hai una versione vecchia di glib oppure ti serve il
pacchetto di sviluppo che di solito si chiama glib-***-devel....

 pacchetto di sviluppo che di solito si chiama glib-***-devel....
ho il pacchetto glib devel installato.
Inoltre la versione č la 1.2.8 e non dovrebbe dare nessun problema visto 
che la richeista č la 1.2.0
L'errore č sempre lo stesso
checking for GLIB - version >= 1.2.0... no
*** Could not run GLIB 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 GLIB was incorrectly 
installed
*** or that you have moved GLIB since it was installed. In the latter case, 
you
*** may want to edit the glib-config script: /usr/bin/glib-config
configure: error: Cannot find glib: Is glib installed? 
hai bisogno del configure.log ???? 
-- 
Nightwhisper (Love & Peace!)
Le corde si muovono nell'oscuritą... il suono prende vita: le fiamme 


configure: failed program was:
[...]
Dovresti avere nel tuo sistema due files chiamati limits.h: uno in
'/usr/include/', l'altro in '/usr/include/linux/'.
Il secondo ti manca; viene distribuito coi sorgenti del kernel.
-- 
Saluti,
    Mardy
http://castellina.org/interlingua

 Il secondo ti manca; viene distribuito coi sorgenti del kernel.
Ok risolto alla grande copiando quello ora mi da' un'altro errore facendo 
il make:
Making all in lib
make[1]: Entering directory `/home/share/openrush-0.0.2/lib'
gcc -DHAVE_CONFIG_H -I. -I. -I../include     -g -O2 -I../include 
-I../include -I/usr/src/linux/drivers/usb -I/usr/lib/glib/include  
-DDEFAULT_DEV_PATH=\"/dev/usb/rush\" -c librush.c
In file included from /usr/include/sys/ioctl.h:27,
                 from ../include/librush.h:29,
                 from librush.c:24:
/usr/include/bits/ioctls.h:24: asm/ioctls.h: File o directory inesistente
In file included from /usr/include/sys/ioctl.h:30,
                 from ../include/librush.h:29,
                 from librush.c:24:
/usr/include/bits/ioctl-types.h:25: asm/ioctls.h: File o directory 
inesistente
make[1]: *** [librush.o] Error 1
make[1]: Leaving directory `/home/share/openrush-0.0.2/lib'
make: *** [all-recursive] Error 


inesistente
Errore analogo al precedente. Che distribuzione usi?
Se hai Debian, installa il pacchetto kernel-headers; altrimenti crea due
collegamenti simbolici dalle directory di include del kernel asm/ e linux/
nella directory /usr/include.
Ma la directory /usr/include/linux esisteva? E /usr/include/asm?


 Ma la directory /usr/include/linux esisteva? E /usr/include/asm?
 
la directory /usr/include/linux esiste. la /usr/include/asm no.
uso la suse 7.1
cmq sembra che ora compili.. grazie!!


/usr/include/bits/ioctl-types.h:25: asm/ioctls.h: File o directory inesistente
ma allora Mardy non e' stato abbastanza chiaro?
installa kernel-headers, copiando un file alla volta non affitti
piu'!!!
ti servono i .h che vengono distribuiti con il kernel altrimenti non
compilerai mai niente!!!
A meno che tu non stia mettendo alla prova la glibc-2.2.x per vedere
se e quanto dipende dagli header files del kernel, cosa che vorrei
fare un giorno per togliermi lo sfizio
DEVI avere un discreto numero di files in /usr/include/linux e in
/usr/include/asm mettitelo in testa o nella zucca (5.00% di interessi,
capito?:-)!!!