Problem compiling
Mike Bates <[email protected]>
| Newsgroups | gmane.linux.redhat.taroon |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have been working to get ltmodem-8.26a9 to compile under taroon with no
luck. It seems that with gcc 3.2.3-20 there is a type problem or some sort.
Under the RH9.0 version of gcc it compiled and worked fine. Any ideas?
Error message below with code snippet. Oh! I did try going to the ltmodem
group for help but they said until taroon was release production they would
not be able to help.
Mike
Using KCFLAGS for gcc version 3.x
gcc -D__KERNEL__ -I/lib/modules/2.4.21-3.EL/build/include -Wall
- -Wstrict-prototypes -std=gnu89 -O3 -fomit-frame-pointer -fno-strict-aliasing
- -pipe -fno-strength-reduce -DMODULE -DLT_VERSION=8.26a9 -DLINUX -DNO_EEPROM
- -DLT_SERIAL_MODULE=lt_serial -c -o ltmodem.a ltmodem.c
ld -r -o lt_modem.o ltmodem.a ltmdmobj.o".gcc3"
Using KCFLAGS for gcc version 3.x
gcc -D__KERNEL__ -I/lib/modules/2.4.21-3.EL/build/include -Wall
- -Wstrict-prototypes -std=gnu89 -O3 -fomit-frame-pointer -fno-strict-aliasing
- -pipe -fno-strength-reduce -DMODULE -DLT_VERSION=8.26a9 -DLINUX -DNO_EEPROM
- -DLT_SERIAL_MODULE=lt_serial -c -o serial-lt-2.4.a serial-lt-2.4.c
serial-lt-2.4.c: In function `rs_close':
serial-lt-2.4.c:2994: invalid operands to binary ==
make: *** [serial-lt-2.4.a] Error 1
Checking for driver products:
- -rw-r--r-- 1 root root 543412 Oct 1 09:16 lt_modem.o
Compilation of lt_serial.o failed,
Code snippet-----
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.
*/
printk("rs_close: bad serial port count; tty->count is 1, "
"state->count is %d\n", state->count);
state->count = 1;
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/ew1ab161nVKDk/oRAhuxAJ9ULvjMT7tP9F3H74Gk4+jgg0SG9wCfRssN
Wpez2KvCNjp6WIMBQEB45nw=
=Z32T
-----END PGP SIGNATURE-----
--
Taroon-beta-list mailing list
[email protected]
http://www.redhat.com/mailman/listinfo/taroon-beta-list