Problème de compilateur sous SUN UNIX

Résolu
Bonjour,

J'ai un probleme avec mon compileur, lorsque je lance la commande ./configure il me sort cette erreur, et dans le log, ce n'est pas tres tres explicite :

./configure
checking build system type... sparc-sun-solaris2.6
checking host system type... sparc-sun-solaris2.6
checking target system type... sparc-sun-solaris2.6
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... no
checking for gcc... no
checking for cc... cc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

La version est dans les traces ci-dessus.

Merci de m'aider à comprendre ce qu'il me dit !!!

Peace ...
Configuration: Windows 2000
Firefox 2.0.0.7

8 réponses

  1. Contributeur
    problèmes de droits, tu es root ?
    que répond ls -ld /tmp ?
    0
    1. Salut,

      Oui je suis root lorsque je lance le ./configure

      Voici ce que me retourne la commande que tu m'a proposé :

      [root@droopy /]# ls -ld /tmp
      drwxrwxrwt 6 root sys 570 Oct 9 15:37 /tmp/

      Et c'est la même chose si je ne suis pas root.

      Peace ...
      0
      1. Contributeur
        voir là: http://www.brandonhutchinson.com/c_compiler_cannot_create_executables.html
        0
        1. Merci pour ton lien,

          j'ai relancé et voici ce que ça donne :

          ## ----------- ##
          ## Core tests. ##
          ## ----------- ##

          configure:1597: checking build system type
          configure:1615: result: sparc-sun-solaris2.6
          configure:1623: checking host system type
          configure:1637: result: sparc-sun-solaris2.6
          configure:1645: checking target system type
          configure:1659: result: sparc-sun-solaris2.6
          configure:1700: checking for a BSD-compatible install
          configure:1755: result: config/install-sh -c
          configure:1766: checking whether build environment is sane
          configure:1809: result: yes
          configure:1874: checking for gawk
          configure:1903: result: no
          configure:1874: checking for mawk
          configure:1903: result: no
          configure:1874: checking for nawk
          configure:1890: found /usr/bin/nawk
          configure:1900: result: nawk
          configure:1910: checking whether make sets $(MAKE)
          configure:1934: result: no
          configure:2207: checking for gcc
          configure:2236: result: no
          configure:2287: checking for cc
          configure:2303: found /usr/ucb/cc
          configure:2313: result: cc
          configure:2477: checking for C compiler version
          configure:2480: cc --version </dev/null >&5
          /usr/ucb/cc: language optional software package not installed
          configure:2483: $? = 1
          configure:2485: cc -v </dev/null >&5
          /usr/ucb/cc: language optional software package not installed
          configure:2488: $? = 1
          configure:2490: cc -V </dev/null >&5
          /usr/ucb/cc: language optional software package not installed
          configure:2493: $? = 1
          configure:2516: checking for C compiler default output file name
          configure:2519: cc -D_GNU_SOURCE conftest.c >&5
          /usr/ucb/cc: language optional software package not installed
          configure:2522: $? = 1
          configure: failed program was:
          | /* confdefs.h. */
          |
          | #define PACKAGE_NAME ""
          | #define PACKAGE_TARNAME ""
          | #define PACKAGE_VERSION ""
          | #define PACKAGE_STRING ""
          | #define PACKAGE_BUGREPORT ""
          | #define CONFIGURE_COMMAND "'./configure'"
          | #define PACKAGE "amanda"
          | #define VERSION "2.5.1p1"
          | /* end confdefs.h. */
          |
          | int
          | main ()
          | {
          |
          | ;
          | return 0;
          | }
          configure:2560: error: C compiler cannot create executables
          See `config.log' for more details.

          C'est pas encore ça
          :(
          0
          1. Contributeur
            est-ce que le package SUNWscpu est installé ? je crois qu'il est nécessaire.
            pkginfo | grep SUNWscpu
            0
            1. Salut,

              Voici la réponse que me retourn le system :

              $ pkginfo | grep SUNWscpu
              system SUNWscpu Source Compatibility, (Usr)
              0
              1. Contributeur
                il faut définir la variable CC=gcc.
                voir ./configure -help
                export CC=gcc ; ./configure
                parce qu'il n'y a pas de compilateur par défaut avec Solaris, cc répond: /usr/ucb/cc: language optional software package not installed
                0
                1. Merci pour ton aide dubcek,

                  Je m'y mettrais dès que j'aurais un moment, car là j'ai découverts d'autres soucis et on m'en rajoute encore, quoi de plus normale.
                  0