Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-05-2009, 08:17 PM   #1
LQ Newbie
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Problem running .o files after they are compiled from .c files in fedora core 1

Hi everyone! My first post here (That smiley is GOOD!)

I had read the "Please READ this before posting!" sticky but still didn't find a solution so I'll try to find it here. Sorry if I still did something wrong.

I am doing some research, which requires me to compile NUSHU - passive covert channel engine for Linux 2.4 kernels(The last post in the html).
Unfortunately, it is not supported for newer kernels.

Summary of problem:
Used makefile with command "make -f Makefile", got some .o files as a result.
Changed their permissions from their properties to allow Execution.
Tried "./FILE_NAME_HERE.o" in Terminal and got:
"bash: ./FILE_NAME_HERE.o: cannot execute binary file" response.
Trying to find a way to make the program work now.

What I did is I installed Fedora Core 1 (not sure if it's a good idea), got the files into the system and had done the following:

1: Changed a line in "Makefile" from "KHDRS=/usr/src/linux/include" to "KHDRS=/usr/src/linux-2.4.22-1.2115.nptl/include", as the former directory doesn't exist.

2: Copied "ip.h" and "tcp.h" header files from "/usr/src/linux-2.4.22-1.2115.nptl/include/linux" to "/usr/src/linux-2.4.22-1.2115.nptl/include/net", required by some of the header files.

3: Compiled using the command "make -f Makefile", after which I get a few .o files (i.e. crypt.o, nushu_sender.o, d3des.o etc"

From manual it looks as if that's the end and the .o files are executables. I search online but didn't get much clue as to what they are
Tried to run the .o files but they cannot be executed.

I think chances are either I did not compile the files correctly or not using the right way to run the .o files, or that it doesn't work in Fedora Core 1.
That being said, I thank anyone for their trying to help!

Last edited by Starrie; 03-05-2009 at 08:20 PM.
Old 03-05-2009, 08:24 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
I think you need to learn about c programming, compiling and linking before researching blue pill lkm's. Also, this topic may be against LQ policy.

You don't run object files. Object files are linked to produce an executable program. Building a new kernel is different. The kernel doesn't run in the normal c environment. It lives in kernel land and programs you compile and run are in userland. The c library is different.

A kernel module has a .ko extension by convention. The .o files you have may be intermediate files used to produce a kernel module.


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
Bind problem: config files are missing after re-install bind 9.5 on Fedora Core 8 elvisious Linux - Software 1 07-15-2008 07:49 PM
Problem in booting from compiled linux kernel in Fedora Core sagsriv Linux - Newbie 3 02-18-2008 12:39 PM
problem in mounting cdrom(audio files running but not reading data files) amit_usual Linux - Newbie 7 12-29-2007 05:52 AM
Extract gz files on fedora Core 4 Jacko123 Linux - Newbie 1 08-28-2007 02:45 AM
Accessing Old Files Through Fedora Core md2bn08 Linux - Newbie 1 05-06-2004 02:50 AM > Forums > Linux Forums > Linux - Newbie

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

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