SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.