RE: Problem compiling

"Post, Mark K" <[email protected]>
Newsgroups gmane.linux.redhat.taroon
Message-ID <564DE4477544D411AD2C00508BDF0B6A19634C77@usahm018.exmi01.exch.eds.com>
It appears to be because of this difference in
/lib/modules/2.4.21-3.ELsmp/build/include
(which translates to /usr/src/linux-2.4.21-3.EL/include/linux/tty.h):
@@ -265,7 +265,7 @@
        int session;
        kdev_t  device;
        unsigned long flags;
-       int count;
+       atomic_t count;
        struct winsize winsize;
        unsigned char stopped:1, hw_stopped:1, flow_stopped:1, packet:1;
        unsigned char low_latency:1, warned:1;


The "int count" is from a stock kernel.  The "atomic_t count" is from Red
Hat's kernel source.


Mark Post

-----Original Message-----
From: Mike Bates [mailto:[email protected]]
Sent: Wednesday, October 01, 2003 1:22 PM
To: [email protected]
Subject: Problem compiling 


-----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


--
Taroon-beta-list mailing list
[email protected]
http://www.redhat.com/mailman/listinfo/taroon-beta-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.