Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 11-26-2010, 09:42 PM   #1
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.

obj-m := rexFBD.o

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

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

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

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, 11:59 PM   #2
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,911

Rep: Reputation: Disabled
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

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, 01:26 AM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 15,987

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

Download a "new" RexFBD:
> >
> 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 01:32 AM.
Old 11-27-2010, 01:44 AM   #4
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 01:59 AM.


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

All times are GMT -5. The time now is 07:15 PM.

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