Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 02/11/2006, à 17:57

Nicorider

[Résolu] C compiler cannot create executables

Bonjour,

j'essai d'installer lirc pour contrôler la télécommande de ma carte tuner et apparement le programme ne peut pas compiler. Pourriez vous me dire pourquoi s'il vous plaît?

Merci

setup.sh written by Karsten Scheibler, 1999-JUN-28

If you have problems or questions please consult the mailing list
<http://lists.sourceforge.net/mailman/listinfo/lirc-list>

Configuration: .setup.config, executable shell script: configure.sh
Starting the generated shell script which will call configure with the right
parameters...
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... mawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -g -Wall ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

Dernière modification par Nicorider (Le 25/07/2007, à 14:37)


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#2 Le 02/11/2006, à 18:03

Nicorider

Re : [Résolu] C compiler cannot create executables

J'ai une architecture i386

la bibliothèque installée est libc6 2.4.1ubuntu12 merci de m'aider


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#3 Le 02/11/2006, à 18:04

Nicorider

Re : [Résolu] C compiler cannot create executables

la page que j'utilise :

http://www.trustonme.net/didactels/339.html


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#4 Le 02/11/2006, à 18:07

Nicorider

Re : [Résolu] C compiler cannot create executables

j'ai essayé de tapper ça pour voir si ça pouvais m'aider :

root@nico-desktop:/opt/lirc-0.8.0# cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:807: checking for a BSD compatible install
configure:860: checking whether build environment is sane
configure:931: checking for mawk
configure:961: checking whether make sets ${MAKE}
configure:1086: checking for gcc
configure:1199: checking whether the C compiler (gcc -O2 -g -Wall ) works
configure:1215: gcc -o conftest -O2 -g -Wall   conftest.c  1>&5
configure:1212: warning: return type defaults to 'int'
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:

#line 1210 "configure"
#include "confdefs.h"

main(){return(0);}
root@nico-desktop:/opt/lirc-0.8.0#


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#5 Le 02/11/2006, à 18:23

Nicorider

Re : [Résolu] C compiler cannot create executables

Par instinc j'ai remplacé le fichier libc6-i386 par libc6-amd64 et :

root@nico-desktop:/opt/lirc-0.8.0# sudo apt-get install libc6-dev/dapper libc6-i386/dapper libc6/dapper
Reading package lists... Done
Building dependency tree... Done
Selected version 2.3.6-0ubuntu20 (Ubuntu:6.06/dapper) for libc6-dev
E: Couldn't find package libc6-i386
root@nico-desktop:/opt/lirc-0.8.0# sudo apt-get install libc6-dev/dapper libc6-amd64/dapper libc6/dapper
Reading package lists... Done
Building dependency tree... Done
Selected version 2.3.6-0ubuntu20 (Ubuntu:6.06/dapper) for libc6-dev
Selected version 2.3.6-0ubuntu20 (Ubuntu:6.06/dapper) for libc6-amd64
Selected version 2.3.6-0ubuntu20 (Ubuntu:6.06/dapper) for libc6
The following extra packages will be installed:
  lib64gcc1 libc6 libc6-amd64 libc6-dev
Suggested packages:
  glibc-doc manpages-dev
The following NEW packages will be installed:
  lib64gcc1 libc6-amd64 libc6-dev
The following packages will be DOWNGRADED:
  libc6
0 upgraded, 3 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 7953kB/10.8MB of archives.
After unpacking 19.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com dapper/main libc6 2.3.6-0ubuntu20 [4588kB]
Get:2 http://archive.ubuntu.com dapper/main libc6-amd64 2.3.6-0ubuntu20 [3340kB]
Get:3 http://archive.ubuntu.com dapper/main lib64gcc1 1:4.0.3-1ubuntu5 [25.5kB]
Fetched 7953kB in 1m8s (116kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "fr_FR.UTF-8@euro",
        LC_ALL = (unset),
        LANG = "fr_FR.UTF-8@euro"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Impossible de configurer LC_ALL �� la langue par d��faut: Aucun fichier ou r��pertoire de ce type
dpkg - warning: downgrading libc6 from 2.4-1ubuntu12 to 2.3.6-0ubuntu20.
(Reading database ... 87452 files and directories currently installed.)
Preparing to replace libc6 2.4-1ubuntu12 (using .../libc6_2.3.6-0ubuntu20_i386.deb) ...
Unpacking replacement libc6 ...
dpkg: warning - unable to delete old directory `/etc/ld.so.conf.d': Directory not empty
Param��trage de libc6 (2.3.6-0ubuntu20) ...
Installation de la nouvelle version du fichier de configuration /etc/init.d/glibc.sh ...

S��lection du paquet libc6-amd64 pr��c��demment d��s��lectionn��.
(Lecture de la base de donn��es... 87447 fichiers et r��pertoires d��j�� install��s.)
D��paquetage de libc6-amd64 (�� partir de .../libc6-amd64_2.3.6-0ubuntu20_i386.deb) ...
S��lection du paquet lib64gcc1 pr��c��demment d��s��lectionn��.
D��paquetage de lib64gcc1 (�� partir de .../lib64gcc1_1%3a4.0.3-1ubuntu5_i386.deb) ...
S��lection du paquet libc6-dev pr��c��demment d��s��lectionn��.
D��paquetage de libc6-dev (�� partir de .../libc6-dev_2.3.6-0ubuntu20_i386.deb) ...
Param��trage de libc6-dev (2.3.6-0ubuntu20) ...
Param��trage de libc6-amd64 (2.3.6-0ubuntu20) ...

Param��trage de lib64gcc1 (4.0.3-1ubuntu5) ...


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#6 Le 02/11/2006, à 18:24

Nicorider

Re : [Résolu] C compiler cannot create executables

apparement il a compilé:

setup.sh written by Karsten Scheibler, 1999-JUN-28

If you have problems or questions please consult the mailing list
<http://lists.sourceforge.net/mailman/listinfo/lirc-list>

Configuration: .setup.config, executable shell script: configure.sh
Starting the generated shell script which will call configure with the right
parameters...
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... mawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -g -Wall ) works... yes
checking whether the C compiler (gcc -O2 -g -Wall ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for mknod... /bin/mknod
checking for mkfifo... /usr/bin/mkfifo
checking for depmod... /sbin/depmod
checking for libusb-config... no
checking whether ln -s works... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking how to run the C preprocessor... gcc -E
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking how to recognise dependent 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/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... no
creating libtool
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for vprintf... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for mkfifo... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strerror... yes
checking for strtoul... yes
checking for snprintf... yes
checking for strsep... yes
checking for vsyslog... yes
checking for daemon... yes
checking for forkpty... no
checking for forkpty in -lutil... yes
checking for vga.h... no
checking for X... no
checking for getopt_long... yes
checking for mktemp... yes
checking for Linux kernel sources... no Makefile found
checking for which drivers can be installed on this system...
checking for caraca_init in -lcaraca_client... no
checking for ir_strerror in -lirman... no
checking for ir_strerror in -lirman_sw... no
checking for portaudio.h... no
checking for alsa/asoundlib.h... no
checking for scsi/sg.h... yes
checking for linux/input.h... yes
checking for sys/soundcard.h... yes
configure: error: *** you need to have the Linux kernel source installed
        for this driver
root@nico-desktop:/opt/lirc-0.8.0#


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#7 Le 02/11/2006, à 18:28

Nicorider

Re : [Résolu] C compiler cannot create executables

et je sais pas pourquoi mais maintenant mon gestionnaire de paquet synaptic est en français par contre le tableau de bord est toujours en anglais!

franchement je n'y comprend rien du tout!


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#8 Le 02/11/2006, à 18:33

Nicorider

Re : [Résolu] C compiler cannot create executables

donc j'ai tapper les commandes pour installer linux-source:

configure: error: *** you need to have the Linux kernel source installed
        for this driver
root@nico-desktop:/opt/lirc-0.8.0# apt-get install linux-source
Lecture des listes de paquets... Fait
Construction de l'arbre des d��pendances... Fait
Les paquets suppl��mentaires suivants seront install��s��:
  linux-source-2.6.15
Paquets sugg��r��s��:
  libncurses-dev kernel-package libqt3-dev
Les NOUVEAUX paquets suivants seront install��s��:
  linux-source linux-source-2.6.15
0 mis �� jour, 2 nouvellement install��s, 0 �� enlever et 0 non mis �� jour.
Il est n��cessaire de prendre 0o/44,5Mo dans les archives.
Apr��s d��paquetage, 44,6Mo d'espace disque suppl��mentaires seront utilis��s.
Souhaitez-vous continuer [O/n]��? o
S��lection du paquet linux-source-2.6.15 pr��c��demment d��s��lectionn��.
(Lecture de la base de donn��es... 88159 fichiers et r��pertoires d��j�� install��s.)
D��paquetage de linux-source-2.6.15 (�� partir de .../linux-source-2.6.15_2.6.15-23.39_all.deb) ...
S��lection du paquet linux-source pr��c��demment d��s��lectionn��.
D��paquetage de linux-source (�� partir de .../linux-source_2.6.15.22_all.deb) ...
Param��trage de linux-source-2.6.15 (2.6.15-23.39) ...

Param��trage de linux-source (2.6.15.22) ...
root@nico-desktop:/opt/lirc-0.8.0# linux-source
bash: linux-source: command not found
root@nico-desktop:/opt/lirc-0.8.0#
root@nico-desktop:/opt/lirc-0.8.0# linux-source-2.6.15
bash: linux-source-2.6.15: command not found
root@nico-desktop:/opt/lirc-0.8.0#

et maintenant que dois je faire???
c'est dure linux...


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#9 Le 02/11/2006, à 18:45

Nicorider

Re : [Résolu] C compiler cannot create executables

Bon est ce que quelqu'un peut m'expliquer svp?

là je viens de redémarrez le pc et surprise le bureau est enfin en français!!
je vois pas le rapport avec libc6-amd64


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#10 Le 02/11/2006, à 18:47

Link31

Re : [Résolu] C compiler cannot create executables

Nicorider a écrit :

root@nico-desktop:/opt/lirc-0.8.0# linux-source
bash: linux-source: command not found
root@nico-desktop:/opt/lirc-0.8.0#
root@nico-desktop:/opt/lirc-0.8.0# linux-source-2.6.15
bash: linux-source-2.6.15: command not found
root@nico-desktop:/opt/lirc-0.8.0#

smile

Pour compiler quoi que ce soit sous Ubuntu sans problèmes, il faut le paquet build-essential.
Le programme d'installation a besoin du code source de Linux, que tu as installé. Mais il est inutile de lancer linux-source : ce n'est pas un programme wink
Maintenant, relance la compilation et ça devrait fonctionner. Si ça ne marche pas, installe ce qui est demandé par le .setup.config.

Mais pourquoi te compliques-tu la vie ? Installe lirc avec Synaptic, ça sera beaucoup plus simple que de compiler wink
Si il n'est pas disponible, active les dépôts Universe (regarde dans les menus de Synaptic) et n'oublie pas de recharger la liste des paquets.

Hors ligne

#11 Le 02/11/2006, à 18:48

Nicorider

Re : [Résolu] C compiler cannot create executables

maintenant j'ai ceci:

nico@nico-desktop:~$ sudo -s
Password:
root@nico-desktop:~# apt-get install linux-source
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
linux-source est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
root@nico-desktop:~#

comment lancer linux-source svp!!!!


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#12 Le 02/11/2006, à 18:49

Nicorider

Re : [Résolu] C compiler cannot create executables

merci tu es très sympathique!


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#13 Le 02/11/2006, à 19:15

Nicorider

Re : [Résolu] C compiler cannot create executables

J'ai installé synaptic via les dépots universe (merci) mais je ne sais pas comment l'exécuter!
ou trouver le paquet build essential?

merci pour ton aide précieuse


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#14 Le 02/11/2006, à 19:15

Nicorider

Re : [Résolu] C compiler cannot create executables

je voulais dire lirc par synaptic via les dépôts universe désolé!


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne

#15 Le 03/11/2006, à 00:58

Nicorider

Re : [Résolu] C compiler cannot create executables

voilà j'ai installer l'irc mais je n'arrive pas à contôler mes programmes

je lance irexec et irxevent j'ai créé un petit programme pour gThumb afin de voir la photo en plein écran mais ça marche po!


Distribution : Ubuntu Hardy Heron 8.04
GNU/linux with 1391402 :).

Hors ligne