LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 11-26-2010, 08:42 PM   #1
MrSandwich
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Rep: Reputation: 0
Building RexFBD-0.6 on 2.6.36-ck2-ARCH


I downloaded rexFBD-0.6 from here, and I wrote the following makefile by reading part of an online guide (can't remember which one) to make it more compatible with 2.6 than the current one.

Code:
obj-m := rexFBD.o

KDIR := $(HOME)/src/linux-2.6.36
PWD := $(shell pwd)

all:
        $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
and I get (so far) an error and a warning in rexFBD.c saying

Quote:
fatal error: sys/syscall.h: No such file or directory
compilation terminated.
and

Quote:
warning: "CONFIG_MODVERSIONS" is not defined
so, I wonder if anybody's knows how to link sys/syscall.h to make?, or more broadly how to compile this module on 2.6? thanks.
 
Old 11-26-2010, 10:59 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,669

Rep: Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683
you do know that that program is 10 years old and has never been updated to run on a modern Arch install

i do not think it would even run or work if you could build it

have you installed the development source
that file is in the kernel source and in glibc source
on the Arch OS that should be installed by default as part of the os


Quote:
so, I wonder if anybody's knows how to link sys/syscall.h to make?,
you do not link that to a makefile
it is part of the DEFAULT install of the Arch OS
 
Old 11-27-2010, 12:26 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Building RexFBD-0.6 on 2.6.xx ( 2.6.32.11 was used.)

Download a "new" RexFBD: http://wizard.ae.krakow.pl/~mike/download/
> > http://wizard.ae.krakow.pl/~mike/dow...patched.tar.gz
> rexFBD-0.6-patched.tar.gz : 10-Feb-2003

Will compile OK with a modern gcc ( 4.4.1 works.)
Except that no module seems to be build ?
* Building modules, stage 2.
* MODPOST 0 modules


cd rexFBD-0.6/ && ln -s makefile Makefile

make CC="gcc -I/usr/src/linux/include/ -I/usr/src/linux/arch/x86/include"
..

Last edited by knudfl; 11-27-2010 at 12:32 AM.
 
Old 11-27-2010, 12:44 AM   #4
MrSandwich
LQ Newbie
 
Registered: Nov 2010
Posts: 3

Original Poster
Rep: Reputation: 0
@John VV - Yeah, it's old but I can't seem to find an alternative that does a similar job. All the other methods for preventing fork bombs seem to limit the number of processes a user executes whereas this method reduces the number of processes forked per second. Even if it doesn't work, I still wanna see if I can get it to compile for learning purposes. ^_^

I have /usr/include/sys/syscall.h and heaps of syscall.h's in my kernel directory (none of them in a sys/ directory, though). I think the problem is that I cd into $(HOME)/src/linux-2.6.36/ with make, then it can't access /usr/include/sys/syscall.h. I'm still fairly new to make, so I might have a look through some device driver manuals and see if I can work this out.

@knudfl - Tried compiling it and it seemed to do so, don't know where it put the module though (if it compiled one) - I get the same output as you. Guess it's a step closer though (=

Thanks for the replies.

Last edited by MrSandwich; 11-27-2010 at 12:59 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trying to install Arch with 2.6.30-ARCH kernel but uname -r keeps showing 2.6.28.7 PaulFXH Arch 0 08-20-2009 07:58 AM
Arch user wanted to help padawan learner install arch and use it thomas-linuxing Linux - Software 9 10-18-2006 04:02 PM
Kernel build error (2.6.14-ck2) 3saul Linux - General 0 11-05-2005 05:36 PM
FC3:Sound stopped working in all installed kernels after compiling 2.6.13-ck2 kernel whencat Linux - Software 1 09-09-2005 03:22 AM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration