pt-drv.o will not compile in emerge plustek-parallel when running under kernel 2.6 Reproducible: Always Steps to Reproduce: 1.use kernel 2.6.x 2.emerge plustek-parallel 3.wait for the error message ;) Actual Results: src/ptdrv.c:1599: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.1-gentoo-r1/build/include/linux/module.h:482) src/ptdrv.c: In function `pt_drv_close': src/ptdrv.c:1619: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.1-gentoo-r1/build/include/linux/module.h:494) make: *** [obj/ptdrv.o] Error 1 !!! ERROR: media-gfx/plustek-parallel-0.42.9 failed. !!! Function src_compile, Line 21, Exitcode 2 !!! (no error message) Expected Results: emerge plustek-parallel with no errors allow me to use my old parallel port scanner under kernel 2.6 bash-2.05b# emerge plustek-parallel Calculating dependencies ...done! >>> emerge (1 of 1) media-gfx/plustek-parallel-0.42.9 to / >>> md5 src_uri ;-) plustek-module-0_42_9.tar.gz >>> Unpacking source... >>> Unpacking plustek-module-0_42_9.tar.gz to /var/tmp/portage/plustek-parallel-0.42.9/work >>> Source unpacked. * Applying plustek-parallel-0.42.9.patch... [ ok ] gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -M ./src/*.c > .depend src/scale.c:134:80: warning: no newline at end of file src/tpa.c:1151:80: warning: no newline at end of file gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -c src/dac.c -o obj/dac.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -c src/detect.c -o obj/detect.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -c src/genericio.c -o obj/genericio.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -c src/image.c -o obj/image.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -c src/map.c -o obj/map.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -c src/misc.c -o obj/misc.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -c src/models.c -o obj/models.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -c src/io.c -o obj/io.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -c src/procfs.c -o obj/procfs.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -c src/motor.c -o obj/motor.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -c src/p9636.c -o obj/p9636.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=42 -D_PTDRV_BUILD=10 -D__KERNEL__ -I/lib/modules/2.6.1-gentoo-r1/build/include -I./h -I./.. -O2 -DMODULE -c src/ptdrv.c -o obj/ptdrv.o src/ptdrv.c:158: parse error before "devfs_handle" src/ptdrv.c:158: warning: type defaults to `int' in declaration of `devfs_handle' src/ptdrv.c:158: warning: initialization makes integer from pointer without a cast src/ptdrv.c:158: warning: data definition has no type or storage class src/ptdrv.c: In function `init_module': src/ptdrv.c:1449: warning: null format string src/ptdrv.c:1449: warning: too many arguments for format src/ptdrv.c:1450: warning: implicit declaration of function `devfs_register_chrdev' src/ptdrv.c:1482: warning: implicit declaration of function `devfs_register' src/ptdrv.c:1483: `DEVFS_FL_DEFAULT' undeclared (first use in this function) src/ptdrv.c:1483: (Each undeclared identifier is reported only once src/ptdrv.c:1483: for each function it appears in.) src/ptdrv.c:1504: warning: implicit declaration of function `devfs_unregister_chrdev' src/ptdrv.c: In function `cleanup_module': src/ptdrv.c:1534: `devfs_handle_t' undeclared (first use in this function) src/ptdrv.c:1534: parse error before "master" src/ptdrv.c:1547: `master' undeclared (first use in this function) src/ptdrv.c:1547: warning: implicit declaration of function `devfs_find_handle' src/ptdrv.c:1548: `DEVFS_SPECIAL_CHR' undeclared (first use in this function) src/ptdrv.c:1549: warning: implicit declaration of function `devfs_unregister' src/ptdrv.c: In function `pt_drv_open': src/ptdrv.c:1599: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.1-gentoo-r1/build/include/linux/module.h:482) src/ptdrv.c: In function `pt_drv_close': src/ptdrv.c:1619: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.1-gentoo-r1/build/include/linux/module.h:494) make: *** [obj/ptdrv.o] Error 1 !!! ERROR: media-gfx/plustek-parallel-0.42.9 failed. !!! Function src_compile, Line 21, Exitcode 2 !!! (no error message)
I've just added a note to the ebuild about it being deprecated and a dependency on 2.4 kernels. Please use the latest sane-backends instead of plustek-parallel. They have support for parallel Plustek scanners now and it works just as well as it used to with the separate module :)