Fatal Error Asm/page.h
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Having trouble compiling C code on ubuntu. (#include errors) up vote 6 down vote favorite 1 I'm trying to compile a C program on the newest version of ubuntu, for the purpose of putting the compiled program on another machine later. However, when I compile with gcc prog.c -o prog, I get an error: "fatal error: asm/page.h: No such file or directory" Here are the headers: #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions http://stackoverflow.com/questions/19310541/having-trouble-compiling-c-code-on-ubuntu-include-errors Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers http://superuser.com/questions/901849/gcc-not-picking-up-kernel-header-files are voted up and rise to the top gcc not picking up kernel header files up vote 1 down vote favorite 1 I am trying to compile a program gcc throws fatal error: asm/page.h: No such file or directory page.h exists. How would i setup gcc to include a path. I went a bit nuts and typed apt-get install linux-headers* Here are the results find / -name page.h /usr/src/linux-headers-3.18.0-kali3-amd64/include/config/hugetlb/page.h /usr/src/linux-headers-3.18.0-kali3-common/include/asm-generic/page.h /usr/src/linux-headers-3.18.0-kali3-common/include/xen/page.h /usr/src/linux-headers-3.18.0-kali3-common/arch/x86/include/asm/xen/page.h /usr/src/linux-headers-3.18.0-kali3-common/arch/x86/include/asm/page.h /usr/src/linux-headers-3.18.0-kali1-common/include/asm-generic/page.h /usr/src/linux-headers-3.18.0-kali1-common/include/xen/page.h /usr/src/linux-headers-3.18.0-kali1-common/arch/x86/include/asm/xen/page.h /usr/src/linux-headers-3.18.0-kali1-common/arch/x86/include/asm/page.h /usr/src/linux-headers-3.18.0-kali1-amd64/include/config/hugetlb/page.h gcc share|improve this question asked Apr 15 '15 at 12:13 Tim Williams 34128 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted At execution time you can include a header file using the -I argument... gcc myCProgram.c -o myCProgram -I/usr/src/linux-headers-3.18.0-kali1-common/include/asm-generic/ Check an example here http://www.rapidtables.com/code/linux/gcc/gcc-i.htm and the docum
tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions http://security.stackexchange.com/questions/44861/exploit-compilation-problem you might have Meta Discuss the workings and policies of http://fedoraforum.org/forum/showthread.php?t=192003 this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Information Security Questions Tags Users Badges Unanswered Ask Question _ Information Security Stack Exchange is a question and answer site for fatal error information security professionals. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Exploit Compilation Problem [closed] up vote 1 down vote favorite I am trying to compile the following exploit: http://www.exploit-db.com/exploits/10613/ fatal error asm/page.h But get the following error: local.c:12:22: fatal error: asm/page.h: No such file or directory compilation terminated. linux exploit compiler gcc share|improve this question edited Nov 3 '13 at 13:55 Sajjad Pourali 7741620 asked Nov 3 '13 at 13:42 Ahmed Taher 1911317 closed as off-topic by Terry Chia, Adi, Gilles, TildalWave, Xander Nov 3 '13 at 18:49 This question does not appear to be about Information security within the scope defined in the help center.If this question can be reworded to fit the rules in the help center, please edit the question. add a comment| 1 Answer 1 active oldest votes up vote 2 down vote Your exploit needs page.h header file. You must install linux header package. asm/page.h is available in linux header package linux-headers 3.11.6-1 File List : . . . usr/src/linux-3.11.6-1-ARCH/arch/x86/include/asm/numaq.h usr/src/linux-3.11.6-1-ARCH/arch/x86/include/asm/olpc.h usr/src/linux-3.11.6-1-ARCH/arch/x86/include/asm/olpc_ofw.h usr/src/linux-3.11.6-1-ARCH/arch/x86/include/asm/page.h usr/src/linux-3.11.6-1-ARCH/arch/x86/include/asm/page_32.h usr/src/linux-3.11.6-1-ARCH/arch/x86/include/asm/page_32_types.h usr/src/linux-3.11.6-1-ARCH/arch/x86/include/asm/page_64.h usr/src/linux-3.11.6-1-ARCH/arch/x86/include/asm/page_64_types.h . . . share|improve this answer edited Nov 3 '13 at 13:53 answered Nov 3 '13 at 13:48 Sajjad Pourali
Common F23 Bugs Common F24 Bugs Communicate with Fedora The Documents Bug Reports Fedora Update System (Bodhi) Fedora Build System (Koji) Official Spins FedoraForum.org > Fedora 23/24 > Using Fedora What happened to /usr/include/asm/page.h ? FedoraForum Search User Name Remember Me? Password Forgot Password? Join Us! Register All Albums FAQ Today's Posts Search Using Fedora General support for current versions. Ask questions about Fedora that do not belong in any other forum. Google™ Search FedoraForum Search Red Hat Bugzilla Search Search Forums Show Threads Show Posts Tag Search Advanced Search Go to Page... Thread Tools Search this Thread Display Modes #1 17th June 2008, 05:36 PM chinesebob Offline Registered User Join Date: Jun 2008 Posts: 2 What happened to /usr/include/asm/page.h ? The kernel-headers package used to install a number of files in /usr/include/asm that were used when compiling source code, namely /usr/include/asm/page.h Does anyone know why the kernel-headers package no longer installs these files? Is there some other place my source is supposed to look for them now? Thanks Aaron chinesebob View Public Profile Find all posts by chinesebob #2 17th June 2008, 07:45 PM lazlow Offline Registered User Join Date: Aug 2005 Posts: 3,172 Try here: Quote: /usr/src/kernels/2.6.25.4-10.fc8-x86_64/include/asm-generic/page.h /usr/src/kernels/2.6.25.4-10.fc8-x86_64/include/asm-x86/page.h Characters added to make long enough to post. lazlow View Public Profile Find all posts by lazlow #3 17th June 2008, 08:34 PM chinesebob Offline Registered User Join Date: Jun 2008 Posts: 2 I did see them there, and I am currently compiling with C_INCLUDE_PATH+="/lib/modules/`uname -r`/build/include" make install The issue is that I have a lot of scripts in a test lab where for years we've been able to compile tests with a simple "make install". It will be a bit of a pain to edit all of our scripts with a new include path, especially since we run the same scripts on seven other distributions that have no problem with putting include files in the standard include directory but, may have a problem with a new C_INCLUDE_PATH that is not correct for that distro. chinesebob View Public Profile Find all posts by chinesebob #4 17th June 2008, 09:25 PM lazlow Offline Registered User Join Date: Aug 2005 Posts: 3,172 Just put a link in the old directory to the new. lazlow View Public Profile Find all posts by lazlow #5 9th September 2011, 07:54 PM RoboCat Offline