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 25/06/2006, à 00:25

isaklm

impossible de compiler isapnptools

Bonjour,

voila sur un veiux pc je tente d'installer une carte son sb_sbawe et j'ai besoin de isapnptools... Que je ne trouve pas dans les depots alors que selon un autre post il y est...
Donc j'ai téléchargé une archive que j'ai décompressé et cela donne ça :

root@KLM:/home/isa/Desktop/isapnptools-1.26# ./configure --prefix=/usr
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... no
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 mawk... mawk
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

Si quelqu'un a une idée...

Ai-je bien fait d'installer automake1.9 et ses collègues?
N'y a-t-il pas un paquet dans les depots qui permette d'avoir toute la base des outils pour compiler et installer un programme ?
Et pour makeinfo j'imagine que ce n'est pas grave ?

si quelqu'un a la solution, merci d'avance (ça bientôt 4 heures que je regardes partout, que j'essaie d'autres choses et ...rien)  sad

#2 Le 25/06/2006, à 00:50

isaklm

Re : impossible de compiler isapnptools

Ok, j'ai installé le paquet buid-essential et ca m'a résolu le problème... smile
Super paquet celui-là... c'est exactement ce que je cherchais...
Par contre maintenant :

checking for flex... no
checking for lex... no
./configure: line 1273: flex: command not found
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 1361: lex: com mand not found
configure: error: cannot find output from lex; giving up

voila...
je vais chercher vite fait dans synaptic...

#3 Le 25/06/2006, à 01:41

isaklm

Re : impossible de compiler isapnptools

ok, paquet flex installé, et aussi une librairie de développement c (callbacks.c)
Maintenant j'y suis presque mais la je vais dormir...

gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c callbacks.c
callbacks.c: Dans la fonction «normal_fatal_error_callback» :
callbacks.c:116: attention : incompatible implicit declaration of built-in funct ion «exit»
callbacks.c: Dans la fonction «callbacks_init» :
callbacks.c:150: attention : incompatible implicit declaration of built-in funct ion «exit»
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c iopl.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c pnp-access.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c res-access.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c realtime.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c cardinfo.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c pnp-select.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c resource.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c mysnprtf.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c release.c
rm -f libisapnp.a
ar cru libisapnp.a callbacks.o iopl.o pnp-access.o res-access.o realtime.o cardi nfo.o pnp-select.o resource.o mysnprtf.o release.o
ranlib libisapnp.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c pnpdump.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c pnpdump_main. c
gcc  -g -O2  -o pnpdump  pnpdump.o pnpdump_main.o libisapnp.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c isapnp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c isapnp_main.c
isapnp_main.l:366: erreur: static declaration of «serial_identifier» follows non -static declaration
../include/isapnp/res-access.h:66: erreur: previous declaration of «serial_ident ifier» was here
make[1]: *** [isapnp_main.o] Erreur 1
make[1]: quittant le répertoire « /home/isa/Desktop/isapnptools-1.26/src »
make: *** [all-recursive] Erreur 1


Il y a des trucs bizarre : "callbacks.c:116: attention : incompatible implicit declaration of built-in funct ion «exit»"

et aussi "erreur: previous declaration of «serial_ident ifier» was here"

#4 Le 08/11/2006, à 08:42

pr0sp3r

Re : impossible de compiler isapnptools

isaklm a écrit :

ok, paquet flex installé, et aussi une librairie de développement c (callbacks.c)
Maintenant j'y suis presque mais la je vais dormir...

gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c callbacks.c
callbacks.c: Dans la fonction «normal_fatal_error_callback» :
callbacks.c:116: attention : incompatible implicit declaration of built-in funct ion «exit»
callbacks.c: Dans la fonction «callbacks_init» :
callbacks.c:150: attention : incompatible implicit declaration of built-in funct ion «exit»
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c iopl.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c pnp-access.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c res-access.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c realtime.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c cardinfo.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c pnp-select.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c resource.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c mysnprtf.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c release.c
rm -f libisapnp.a
ar cru libisapnp.a callbacks.o iopl.o pnp-access.o res-access.o realtime.o cardi nfo.o pnp-select.o resource.o mysnprtf.o release.o
ranlib libisapnp.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c pnpdump.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c pnpdump_main. c
gcc  -g -O2  -o pnpdump  pnpdump.o pnpdump_main.o libisapnp.a
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c isapnp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include    -g -O2 -c isapnp_main.c
isapnp_main.l:366: erreur: static declaration of «serial_identifier» follows non -static declaration
../include/isapnp/res-access.h:66: erreur: previous declaration of «serial_ident ifier» was here
make[1]: *** [isapnp_main.o] Erreur 1
make[1]: quittant le répertoire « /home/isa/Desktop/isapnptools-1.26/src »
make: *** [all-recursive] Erreur 1


Il y a des trucs bizarre : "callbacks.c:116: attention : incompatible implicit declaration of built-in funct ion «exit»"

et aussi "erreur: previous declaration of «serial_ident ifier» was here"

isaklm,
look at this under URL:
http://www.archivum.info/debian-bugs-di … 07019.html


diff -urN ../tmp-orig/isapnptools-1.26/src/isapnp_main.l ./src/isapnp_main.l
--- ../tmp-orig/isapnptools-1.26/src/isapnp_main.l      2001-05-09
00:14:21.000000000 +0200
+++ ./src/isapnp_main.l 2004-12-20 14:10:31.903834608 +0100
@@ -363,7 +363,7 @@
        return 0;
}

-static unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN];
+unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN];
static char *boardid[NUM_CARDS+1];
static unsigned long serno[NUM_CARDS+1];