LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-14-2005, 02:18 PM   #1
slitscan
LQ Newbie
 
Registered: Feb 2005
Posts: 8

Rep: Reputation: 0
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
 
Old 04-14-2005, 03:42 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTPD with secure & non-secure logins Ricci Graham Linux - Software 6 02-24-2020 11:49 PM
security newbie, but not Linux newbie. advice on secure delete tools mattie_linux Linux - Security 19 08-15-2005 01:50 AM
can i delete the folder i compile from? whatpot Linux - Newbie 16 04-10-2005 06:54 PM
Secure Delete for linux? meindlj Linux - Security 8 06-23-2004 09:31 AM
secure delete journal bun_zee Linux - Security 1 06-21-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration