LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-09-2010, 04:20 PM   #1
pratyushdeka255
LQ Newbie
 
Registered: Apr 2010
Posts: 8

Rep: Reputation: 0
installed linux-2.6.21 and lzo-2.03. Now donot know how to include headers files.


I have installed linux-2.6.21 and lzo-2.03 from source code in fedora core 7 in the same directory. Now I wanted to include header files of lzo library in the linux kernel source code. How to do that?
 
Old 04-09-2010, 04:36 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,625

Rep: Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870
Quote:
Originally Posted by pratyushdeka255 View Post
I have installed linux-2.6.21 and lzo-2.03 from source code in fedora core 7 in the same directory. Now I wanted to include header files of lzo library in the linux kernel source code. How to do that?
No idea, since your question is hard to understand. Do you have FC7? If so, did you upgrade the running system kernel, or just download kernel source into your home directory? Where do you want to put the LZO libraries?

I'm sure there's a way, but why bother?? Fedora core 7 is ancient...the latest version is 12, and 13 will be out shortly. Since as you say, this is a new install, you need to install something current, as this will make most things much easier.
 
Old 04-10-2010, 03:42 PM   #3
pratyushdeka255
LQ Newbie
 
Registered: Apr 2010
Posts: 8

Original Poster
Rep: Reputation: 0
I have installed lzo library in fedora core 7 linux-2.6.21 kernel and it was installed in /usr/local/include/lzo directory. Now I want to include the header files of lzo library (for example lzoconf.h, lzo1x.h, lzodefs.h) in the source code of linux (mm/vmscan.c).

I included the header files like this

#include<lzo/lzoconf.h>
#include<lzo/lzo1x.h>

When we compile the kernel it is showing some errors
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CHK include/linux/compile.h
CC mm/vmscan.o
mm/vmscan.c: error: lzo/lzoconf.h: No such file or directory
mm/vmscan.c: error: lzo/lzo1x.h: No such file or directory
make[1]: ***[mm/vmscan.o] Error 1
make: *** [mm] Error 2

How I resolve this problem? What shoud I do?
 
Old 04-10-2010, 04:10 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,625

Rep: Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870
Quote:
Originally Posted by pratyushdeka255 View Post
I have installed lzo library in fedora core 7 linux-2.6.21 kernel and it was installed in /usr/local/include/lzo directory. Now I want to include the header files of lzo library (for example lzoconf.h, lzo1x.h, lzodefs.h) in the source code of linux (mm/vmscan.c).

I included the header files like this

#include<lzo/lzoconf.h>
#include<lzo/lzo1x.h>

When we compile the kernel it is showing some errors
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CHK include/linux/compile.h
CC mm/vmscan.o
mm/vmscan.c: error: lzo/lzoconf.h: No such file or directory
mm/vmscan.c: error: lzo/lzo1x.h: No such file or directory
make[1]: ***[mm/vmscan.o] Error 1
make: *** [mm] Error 2

How I resolve this problem? What shoud I do?
You've provided some more info, but your question still doesn't make much sense. Your include files are NOT installed in /usr/local/include, except for very specific things that you install there manually. The code you're looking for is not going to be in the system-wide includes, until you put it there. Either download the RPM development headers and install them, or read the instructions that came with the .gz file.

And again: FC7 is very, VERY old. It would be a much better idea to upgrade, than to spend time developing software for such an old platform.
 
Old 04-10-2010, 05:14 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,517

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
the software repos for the VERY VERY old fedora 7 were moved into the HISTORICAL ARCHIVES
you will need to point yum to them

BUT fedora 7 is a DEAD os
Please install the current version fedora 12 .Fedora 13 is in testing and will be out soon .

a link-- -- but i recommend you DO NOT do this--
" Repository configuration for older Fedora releases. "
http://forums.fedoraforum.org/showthread.php?t=221471
 
Old 04-13-2010, 11:21 AM   #6
pratyushdeka255
LQ Newbie
 
Registered: Apr 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Now I have installed fedora 12 and have installed the source code also. Now I want to use the lzo library in the source code. How would I proceed?
 
Old 04-13-2010, 12:12 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,625

Rep: Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870
Quote:
Originally Posted by pratyushdeka255 View Post
now i have installed fedora 12 and have installed the source code also. Now i want to use the lzo library in the source code. How would i proceed?
you open the file and read the instructions that came with it
 
Old 04-13-2010, 01:33 PM   #8
pratyushdeka255
LQ Newbie
 
Registered: Apr 2010
Posts: 8

Original Poster
Rep: Reputation: 0
while installing the linux-2.6.31 source code in fedora 12 I got an error

[root@pratyush linux-2.6.31]# make install
sh /home/parag/rpmbuild/SOURCES/linux-2.6.31/arch/x86/boot/install.sh 2.6.31 arch/x86/boot/bzImage \
System.map "/boot"
/sbin/new-kernel-pkg: line 277: /sbin/mkinitrd: No such file or directory
mkinitrd failed

How to resolve the problem??
 
Old 04-13-2010, 07:13 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,517

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
linux-2.6.31 ????????

what is it you are building ??????
if a linux kernel it is old
Linux 2.6.31 kernel released on 9 September, 2009

and fedora 12 already has a newer version installed

if all you need is the CURRENT kernel's source then use yum
Code:
yum install kernel-devel
 
Old 02-28-2011, 01:00 AM   #10
saurabh nigam
Member
 
Registered: Feb 2009
Location: @ /home & @ my blog at http://saurabh-nigam.blogspot.com/
Distribution: Slackware , Fedora , Ubuntu
Posts: 35

Rep: Reputation: 15
Smile

Hi pratyush
Here goes your solution which I got after a lot of head hunting

Good Luck!

Last edited by saurabh nigam; 02-28-2011 at 01:07 AM.
 
Old 02-28-2011, 08:17 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,625

Rep: Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870Reputation: 6870
Quote:
Originally Posted by saurabh nigam View Post
Hi pratyush
Here goes your solution which I got after a lot of head hunting
Good Luck!
Good luck indeed...this thread is almost a year old at this point.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Recursively include headers in include option for gcc kvm1983 Linux - Newbie 5 09-04-2012 03:21 PM
which headers usr/include/ or /usr/include/nptl/? Chris.Rector Linux - Enterprise 0 02-02-2007 01:40 PM
Updating kernel headers /usr/include/linux mhansen Slackware 4 11-30-2006 06:31 AM
Unable to include headers in Makefile Raphexion Programming 2 11-05-2005 08:00 AM
Why Samba donot know my files have been modified? whepin Linux - General 1 01-17-2002 08:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:56 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