2001-10-16 00:55:28

by Herbert Rosmanith

[permalink] [raw]
Subject: 2.4.12 compilation fails ieee1284


gcc -D__KERNEL__ -I/data/root/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include /data/root/linux/include/linux/modversions.h -c -o ieee1284_ops.o ieee1284_ops.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)
make[2]: *** [ieee1284_ops.o] Error 1
make[2]: Leaving directory `/data/root/linux/drivers/parport'
make[1]: *** [_modsubdir_parport] Error 2
make[1]: Leaving directory `/data/root/linux/drivers'
make: *** [_mod_drivers] Error 2



no idea how to fix it (too late/too tired too).


2001-10-16 21:48:13

by Markus Brückner

[permalink] [raw]
Subject: Re: 2.4.12 compilation fails ieee1284

Herbert Rosmanith wrote:

>gcc -D__KERNEL__ -I/data/root/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include /data/root/linux/include/linux/modversions.h -c -o ieee1284_ops.o ieee1284_ops.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)
>make[2]: *** [ieee1284_ops.o] Error 1
>make[2]: Leaving directory `/data/root/linux/drivers/parport'
>make[1]: *** [_modsubdir_parport] Error 2
>make[1]: Leaving directory `/data/root/linux/drivers'
>make: *** [_mod_drivers] Error 2
>
I simply changed this to IEE1284_PH_ECP_DIR_UNKNOWN. It compiles right
and doesn't seem to screw up the operation of the module.

HTH
Markus