URL: https://linuxfr.org/users/bdhervil/journaux/linmodems-pctel-compile Title: Linmodems, pctel & compile Authors: BdherVil Date: 2003年07月24日T19:32:33+02:00 Tags: Score: 0 Cher journal, J'ai un portable tout bô mais je n'arrive pas à compiler les drivers. L'erreur la voici : gcc -D__KERNEL__ -Wno-trigraphs -fno-common -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DMODULE -DMODVERSIONS -DEXPORT_SYMTAB -DHAL_I8XX -DAUDIO_ROUTING -DINTEL -DBUILD_SYSTEM=\""`uname -s -m -r -p`\"" -DGCC_VERSION=\""`gcc --version | head -1`\"" -I../../include -I/usr/src/linux/include -include /usr/src/linux/include/linux/modversions.h -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pctel\" -DVERSION=\"0.9.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -c -o ptserial.o ptserial.c ptserial.c: In function `rs_close': ptserial.c:2813: invalid operands to binary == make[1]: *** [ptserial.o] Erreur 1 make[1]: Leaving directory `/home/bhubert/atelier/pctel-0.9.6/src/ptserial' make: *** [all] Erreur 2 Et à la ligne 2813 de ptserial.c il y a : #ifdef SERIAL_DEBUG_OPEN printk("rs_close ttys%d, count = %d\n", info->line, state->count); #endif /*2813*/ if ((tty->count == 1) && (state->count != 1)) { /* * Uh, oh. tty->count is 1, which means that the tty * structure will be freed. state->count should always * be one in these conditions. If it's greater than * one, we've got real problems, since it means the * serial port won't be shutdown. */ Rien de bien étrange ... alors si mulder & skelly veulent bien m'aider ....