LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Secure Delete Won't Compile (https://www.linuxquestions.org/questions/slackware-14/secure-delete-wont-compile-313256/)

slitscan 04-14-2005 02:18 PM

Secure Delete Won't Compile
 
I am trying to install thc's secure-delete, but when I run make I get an error:
Code:

gcc -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -c sdel-lib.c
gcc -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o srm srm.c sdel-lib.o
strip srm
gcc -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o sfill sfill.c sdel-lib.o
strip sfill
gcc -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o sswap sswap.c sdel-lib.o
strip sswap
gcc -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o smem smem.c sdel-lib.o
strip smem
gcc -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2  -I/lib/modules/`uname -r`/build/include -c sdel-mod.c
In file included from /lib/modules/2.6.11/build/include/linux/irq.h:21,
                from /lib/modules/2.6.11/build/include/asm/hardirq.h:6,
                from /lib/modules/2.6.11/build/include/linux/hardirq.h:6,
                from /lib/modules/2.6.11/build/include/linux/interrupt.h:11,
                from /usr/include/asm/smplock.h:9,
                from sdel-mod.c:22:
/lib/modules/2.6.11/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /lib/modules/2.6.11/build/include/asm/hardirq.h:6,
                from /lib/modules/2.6.11/build/include/linux/hardirq.h:6,
                from /lib/modules/2.6.11/build/include/linux/interrupt.h:11,
                from /usr/include/asm/smplock.h:9,
                from sdel-mod.c:22:
/lib/modules/2.6.11/build/include/linux/irq.h:72: error: `NR_IRQS' undeclared here (not in a function)
In file included from /lib/modules/2.6.11/build/include/linux/irq.h:74,
                from /lib/modules/2.6.11/build/include/asm/hardirq.h:6,
                from /lib/modules/2.6.11/build/include/linux/hardirq.h:6,
                from /lib/modules/2.6.11/build/include/linux/interrupt.h:11,
                from /usr/include/asm/smplock.h:9,
                from sdel-mod.c:22:
/lib/modules/2.6.11/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/lib/modules/2.6.11/build/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in a function)
In file included from /lib/modules/2.6.11/build/include/asm/hardirq.h:6,
                from /lib/modules/2.6.11/build/include/linux/hardirq.h:6,
                from /lib/modules/2.6.11/build/include/linux/interrupt.h:11,
                from /usr/include/asm/smplock.h:9,
                from sdel-mod.c:22:
/lib/modules/2.6.11/build/include/linux/irq.h:79: error: `NR_IRQS' undeclared here (not in a function)
In file included from sdel-mod.c:22:
/usr/include/asm/smplock.h:14: error: parse error before "kernel_flag_cacheline"
In file included from sdel-mod.c:22:
/usr/include/asm/smplock.h:47:40: macro "lock_kernel" passed 1 arguments, but takes just 0
/usr/include/asm/smplock.h:48: error: syntax error before '{' token
/usr/include/asm/smplock.h:63:42: macro "unlock_kernel" passed 1 arguments, buttakes just 0
/usr/include/asm/smplock.h:64: error: syntax error before '{' token
sdel-mod.c: In function `smash_it':
sdel-mod.c:197: error: `O_RDWR' undeclared (first use in this function)
sdel-mod.c:197: error: (Each undeclared identifier is reported only once
sdel-mod.c:197: error: for each function it appears in.)
sdel-mod.c:302: error: `O_WRONLY' undeclared (first use in this function)
sdel-mod.c:302: error: `O_TRUNC' undeclared (first use in this function)
sdel-mod.c: In function `wipefile':
sdel-mod.c:322: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)
sdel-mod.c:324: warning: assignment makes pointer from integer without a cast
sdel-mod.c:337: error: `PATH_MAX' undeclared (first use in this function)
sdel-mod.c:380: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
make: *** [sdel-mod.o] Error 1


__J 04-14-2005 03:42 PM

you are missing "irq_vectors.h" per the output above. not sure where irq_vectors.h comes from, but make sure this application is able to be compiled on a 2.6 kernel.


All times are GMT -5. The time now is 11:42 AM.