LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-09-2015, 01:34 AM   #1
jothichalam
LQ Newbie
 
Registered: Nov 2015
Posts: 5

Rep: Reputation: Disabled
procinfo.h is not with the kernel source[Linux 2.6.18-238.e15


Hi All,

I am using Linux 2.6.18-238.e15. In my application am having an include statement "#include<procinfo.h>". Here am getting the error as "error: procinfo.h: No such file or directory". I have used the command "Locate procinfo.h" but it doesnt list me any procinfo.h file. Am new to this linux. I would like add this header file to fix my issue in my application. Kindly guide me to do.

Thanks
Jothichalam
 
Old 11-09-2015, 11:08 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

CentOS 5.11 : # yum provides */procinfo.h : No matches found.

The header procinfo.h is available from the `procinfo' source code :
ftp://ftp.redhat.com/redhat/linux/en...l5_7.2.src.rpm
>> procinfo-18-19.el5_7.2.src.rpm > procinfo-18.tar.bz2 > procinfo-18/procinfo.h
>>> # cp procinfo.h /usr/local/include/


-
 
Old 11-09-2015, 01:34 PM   #3
jothichalam
LQ Newbie
 
Registered: Nov 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for ur reply knudfl. But procinfo.h is a kernel header file rite. If i copy that file into /usr/local/include will it be work as a user space header. I think "/usr/local/include" is the user space path. Not the kernel source include directory.Kindly update me.

Thanks,
Jothichalam
 
Old 11-09-2015, 01:45 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
What are you trying to do?
 
Old 11-09-2015, 01:52 PM   #5
jothichalam
LQ Newbie
 
Registered: Nov 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi JPollard,

In my Linux kernel source i dont have procinfo.h header file. I just wants to know whether i have to add the source code of procinfo.h in kernel source and rebuild the kernel or i hav to upgrade the kernel.

Thanks
jothichalam
 
Old 11-09-2015, 04:51 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
If you were using kernel version ~2.3.. 2.4 the header procinfo.h might have been present.

But no procinfo.h in later kernels.

The ancient procinfo.h : Easy to find ...
https://www.google.com/webhp?hl=all&...n&q=procinfo.h


-
 
Old 11-09-2015, 05:05 PM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by jothichalam View Post
Hi JPollard,

In my Linux kernel source i dont have procinfo.h header file. I just wants to know whether i have to add the source code of procinfo.h in kernel source and rebuild the kernel or i hav to upgrade the kernel.

Thanks
jothichalam
No application would have used procinfo.h. It was a kernel internal file only for use inside the kernel.

It is also no longer used, thus it serves no purpose now.
 
1 members found this post helpful.
Old 11-09-2015, 05:13 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
There still is one, not for PC, though:
Code:
equery b procinfo.h
sys-kernel/gentoo-sources-4.3.0 (/usr/src/linux-4.3.0-gentoo/arch/c6x/include/asm/procinfo.h)
sys-kernel/gentoo-sources-4.3.0 (/usr/src/linux-4.3.0-gentoo/arch/arm/include/asm/procinfo.h)

Last edited by Emerson; 11-09-2015 at 05:14 PM.
 
Old 11-10-2015, 02:25 AM   #9
jothichalam
LQ Newbie
 
Registered: Nov 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi all,

Please can u all guide me to insert that procinfo.h header file into my kernel source and stepwise procedure to build that kernel and make that header file available as a user space header file.

Thanks,
jothichalam.
 
Old 11-10-2015, 06:56 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
I am using Linux 2.6.18-238.e15.
there is no operating system called that
Now that "el5" bit means it is one of the redhat enterprise linux 5 os's or one of the clones


Quote:
"/usr/local/include"
WHY do you have files in "local"

RHEL/CentOS 5 did not / dose NOT use that directory and it is not in the system $PATH nor in $LD_LIBRARY_PATH nor $PKG_CONFIG_PATH

if YOU installed software there and NOT into /usr then YOU need to manually ADD that set of many locations to the system
 
Old 11-10-2015, 07:02 PM   #11
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by jothichalam View Post
Hi all,

Please can u all guide me to insert that procinfo.h header file into my kernel source and stepwise procedure to build that kernel and make that header file available as a user space header file.

Thanks,
jothichalam.
It doesn't address a user space issue at all. It was always internal to the kernel. Even currently, it is useless to a user application - in the ARM architecture, it is used to describe the hardware CPU by an assembly language implementation.

Totally unusable outside the kernel.

What are you really trying to do?
 
1 members found this post helpful.
Old 11-19-2015, 06:29 AM   #12
jothichalam
LQ Newbie
 
Registered: Nov 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi jpollard,

I have a proc program. in my program am using the structure procsinfo which is a member of procinfo.h. This procinfo.h header file is not available in my environment. Kindly help me to fix this. This is what i want to fix
 
Old 11-19-2015, 06:51 AM   #13
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
As I said, the procinfo.h doesn't exist any more for anything but ARM. And for ARM it is only usable inside the kernel.

Not applications.

The only way to "fix" it is to rewrite the "application".
 
  


Reply

Tags
procinfo


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
Installing Linux on Acer Aspire E15 Presi Linux - Newbie 2 07-17-2015 11:38 AM
[SOLVED] scssi II & scssi III 'long-block' i/o support with CenTos 5.7 kernel 2.6.18-238. warnold Linux - Software 0 11-16-2011 09:01 PM
No Connection Tracking with 2.6.18-238.5.1.el5.centos.plus dman777 Red Hat 2 04-24-2011 09:15 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
Looking for procinfo package rc_cohn Linux - Hardware 1 09-27-2004 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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