LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-08-2013, 05:12 AM   #1
Thirupathip
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
error: asm/ppc_asm.h: No such file or directory and error: asm/processor.h: No such f


My previous glibc version is glibc 2.3 and now i am moving my powerpc C componet to 2.11 glibc version. I observed there is huge difference in /usr/include/asm-ppc in glibc and usr/inlude/asm-powerpc in 2.11 version.
I am not able to find corresponding files for ppc_asm.h proccessor.h files in 2.11 version of glibc.. Please can anyone help me to find out where is files went and what are the modifications happen of this files.
I am looking for your replies. It helps me a lot.

Thanks in Advance.
Khyana
 
Old 01-08-2013, 06:06 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,863
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Technically, these files belong to the kernel, not glibc (but it does contain copies of these files).

Ideally, you should have a /usr/include/asm symlink pointing to /usr/src/linux/arch/powerpc (depending on your architecture and the location of your kernel-source),
and a /usr/include/asm-generic symlink pointing to /usr/src/linux/include/asm-generic (depending on the location of your kernel-source).

In this case file ppc_asm.h will be available as /usr/include/asm/ppc_asm.h

Last edited by NevemTeve; 01-08-2013 at 06:08 AM.
 
1 members found this post helpful.
Old 01-25-2013, 02:45 AM   #3
Thirupathip
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for your response..
The files are present in kernal.
Why they have removed lot of asm header files from glibc and added in kernal only..
Here my question is, application can access the kernal files is a good way of programming.. !!
 
Old 01-25-2013, 03:02 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,863
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Normally, you should avoid using kernel-specific headers from user programs.
 
1 members found this post helpful.
  


Reply



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
inline asm, 64-bit asm, intercepting segfaults, etc. rainbowsally Programming 0 02-04-2012 05:10 PM
[SOLVED] Cannot build Linux Kernel 2.6.37 asm/socket.h: No such file or directory gkasica Linux - Kernel 7 01-28-2011 12:10 PM
error: asm/bitops.h: No such file or directory chronickut Linux - Newbie 3 10-04-2010 04:19 PM
asm/posix_types.h: No such file or directory DiBosco Linux - Software 0 07-24-2009 05:34 AM
unable to resolve compilation error;./List.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ amolgupta Programming 3 01-09-2009 10:09 AM

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

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