Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244833 - net-dialup/ltmodem-2.6.9-r1 does not emerge under kernel 2.6.27-r1
Summary: net-dialup/ltmodem-2.6.9-r1 does not emerge under kernel 2.6.27-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-28 23:02 UTC by Aleksandar Topuzovic
Modified: 2008-11-02 10:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to build with 2.6.27 kernel (ltmodem-2.6.9-kernel-2.6.27.patch,686 bytes, patch)
2008-10-28 23:34 UTC, Aleksandar Topuzovic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksandar Topuzovic 2008-10-28 23:02:19 UTC
>>> Emerging (1 of 1) net-dialup/ltmodem-2.6.9-r1 to /
 * ltmodem-2.6-alk-9.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                         [ ok ]
 * checking ebuild checksums ;-) ...                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                [ ok ]
 * checking miscfile checksums ;-) ...                                               [ ok ]
 * checking ltmodem-2.6-alk-9.tar.bz2 ;-) ...                                        [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.27-gentoo-r1/build
 * Found sources for kernel version:
 *     2.6.27-gentoo-r1
 * Checking for suitable kernel configuration options...                             [ ok ]
>>> Unpacking source...
>>> Unpacking ltmodem-2.6-alk-9.tar.bz2 to /var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work
 * Applying ltmodem-2.6.9-kernel-2.6.24.patch ...                                    [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9 ...
 * Preparing ltmodem module
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9 modules
make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r1'
  CC [M]  /var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/lt_modem.o
  CC [M]  /var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.o
/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.c: In function 'lt_virtual_rs_interrupt':
/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.c:365: error: 'struct uart_info' has no member named 'tty'
/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.c: In function 'lt_set_termios':
/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.c:489: warning: passing argument 2 of 'uart_get_baud_rate' from incompatible pointer type
/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.c:489: warning: passing argument 3 of 'uart_get_baud_rate' from incompatible pointer type
/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.c: In function 'lt_startup':
/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.c:571: error: 'struct uart_info' has no member named 'tty'
/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.c: At top level:
/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.c:717: warning: initialization from incompatible pointer type
/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.c: In function 'lt_init':
/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.c:834: warning: passing argument 2 of 'request_irq' from incompatible pointer type
make[2]: *** [/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9/serial.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/work/ltmodem-2.6-alk-9] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r1'
make: *** [module] Error 2
 *
 * ERROR: net-dialup/ltmodem-2.6.9-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3162:  Called linux-mod_src_compile
 *             environment, line 2407:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                 CROSS_COMPILE=${CHOST}-                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"                                             ${BUILD_FIXES}                            ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=  KERNEL_DIR='/usr/src/linux' module
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-dialup/ltmodem-2.6.9-r1/temp/environment'.
 *


Reproducible: Always

Steps to Reproduce:
1. emerge ltmodem
Comment 1 Aleksandar Topuzovic 2008-10-28 23:19:41 UTC
Patch for the solution is:
--- ltmodem-2.6-alk-9.orig/serial.c     2007-09-06 03:56:25.000000000 +0200
+++ ltmodem-2.6-alk-9/serial.c  2008-10-29 00:17:22.000000000 +0100
@@ -362,7 +362,7 @@
                receive_chars(&lt_port,&status,0);

                {
-                       struct tty_struct *tty = lt_port.port.info->tty;
+                       struct tty_struct *tty = lt_port.port.info->port.tty;
                        spin_unlock_irqrestore(&lt_port.port.lock, flags);
                        tty_flip_buffer_push(tty);
                        spin_lock_irqsave(&lt_port.port.lock,flags);
@@ -568,7 +568,7 @@

        // force low latency mode on tty.
        // We will push data from buttom half, no need to delay it further.
-       port->info->tty->low_latency = 1;
+       port->info->port.tty->low_latency = 1;

        lt_modem_ops.PortOpen();
Comment 2 Aleksandar Topuzovic 2008-10-28 23:34:29 UTC
Created attachment 170174 [details, diff]
Patch to build with 2.6.27 kernel
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2008-11-02 10:27:19 UTC
Fixed in cvs, without revbump. Thanks!