Skip to contentSkip to conversation

2.4.12: IEEE-1284 won't compile

DISCUSSION Steve Snyder 2 participants 2 messages Oct 11, 2001

lore
Share & tools
lore
#0 lore raw

Patched from 2.4.11 on a RedHat v7.1 system, no errors seen in patching:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.12/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -c -o procfs.o
procfs.c
ieee1284_ops.c: In function `ecp_forward_to_reverse':
ieee1284_ops.c:365: `IEEE1284_PH_DIR_UNKNOWN' undeclared (first use in this function)
ieee1284_ops.c:365: (Each undeclared identifier is reported only once ieee1284_ops.c:365: for each function it appears in.) ieee1284_ops.c: In function `ecp_reverse_to_forward':
ieee1284_ops.c:397: `IEEE1284_PH_DIR_UNKNOWN' undeclared (first use in this function)
gcc -D__KERNEL__ -I/usr/src/linux-2.4.12/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -c -o usb-uhci.o
usb-uhci.c
make[2]: *** [ieee1284_ops.o] Error 1
make[2]: *** Waiting for unfinished jobs....
ld -m elf_i386 -r -o usbcore.o usb.o usb-debug.o hub.o
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/usr/src/linux-2.4.12/drivers/parport' make[1]: *** [_modsubdir_parport] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Leaving directory /usr/src/linux-2.4.12/drivers/usb' make[1]: Leaving directory /usr/src/linux-2.4.12/drivers'
make: *** [_mod_drivers] Error 2m

#1 lore raw
Quoted 1 line · Steve Snyder

Patched from 2.4.11 on a RedHat v7.1 system, no errors seen in patching:

ieee1284_ops.c Thu Oct 11 11:22:31 2001 renamed from ieee1284_ops.c~ Thu Oct 11 11:10:37 2001 +0 -0
@@ -362,7 +362,7 @@
        } else {
                DPRINTK (KERN_DEBUG "%s: ECP direction: failed to

reverse\n",

                         port->name);
-               port->ieee1284.phase = IEEE1284_PH_DIR_UNKNOWN;
+               port->ieee1284.phase = IEEE1284_PH_ECP_DIR_UNKNOWN;
        }

        return retval;

@@ -394,7 +394,7 @@
DPRINTK (KERN_DEBUG
"%s: ECP direction: failed to switch
forward\n",

                         port->name);
-               port->ieee1284.phase = IEEE1284_PH_DIR_UNKNOWN;
+               port->ieee1284.phase = IEEE1284_PH_ECP_DIR_UNKNOWN;
        }



	Robert Love