Debian Error Asm/page.h No Such File Or Directory
Contents |
Member Registered: 2014-03-06 Posts: 13 Gcc errors. Where is asm/page.h? Hi, I'm trying to compile some code using gcc. The code does asm/page.h ubuntu include asm/page.h but I don't have thad header in /usr/include/asm or asm/page.h download asm-generic. Linux headers are installed.x.c:30:22: fatal error: asm/page.h: No such file or directory #include
Error: ‘page_size’ Undeclared (first Use In This Function)
compilation terminated.Any idea how to fix this? Last edited by Truc (2014-09-24 14:15:29) Offline #2 2014-09-24 14:15:06 Marcel- Member From: Utrecht, NL Registered: 2006-12-03 Posts: 259
Unistd.h No Such File Or Directory Linux
Re: Gcc errors. Where is asm/page.h? Are you sure it shouldn't be asm/page.h? Not that that one is present. Last edited by Marcel- (2014-09-24 14:15:21) Offline #3 2014-09-24 14:17:54 Truc Member Registered: 2014-03-06 Posts: 13 Re: Gcc errors. Where is asm/page.h? Indeed Marcel-. I edited my post also included error message.▶ ls /usr/include/asm-generic/ vmsplice local root exploit auxvec.h int-ll64.h mman.h sembuf.h signal.h termbits.h bitsperlong.h ioctl.h msgbuf.h setup.h socket.h termios.h errno-base.h ioctls.h param.h shmbuf.h sockios.h types.h errno.h ipcbuf.h poll.h shmparam.h stat.h ucontext.h fcntl.h kvm_para.h posix_types.h siginfo.h statfs.h unistd.h int-l64.h mman-common.h resource.h signal-defs.h swab.h ▶ ls /usr/include/asm a.out.h hyperv.h msr-index.h processor-flags.h socket.h unistd_32.h auxvec.h ioctl.h msr.h ptrace-abi.h sockios.h unistd_64.h bitsperlong.h ioctls.h mtrr.h ptrace.h stat.h unistd_x32.h boot.h ipcbuf.h param.h resource.h statfs.h vm86.h bootparam.h ist.h perf_regs.h sembuf.h svm.h vmx.h byteorder.h kvm.h poll.h setup.h swab.h vsyscall.h debugreg.h kvm_para.h posix_types.h shmbuf.h termbits.h e820.h ldt.h posix_types_32.h sigcontext.h termios.h errno.h mce.h posix_types_64.h sigcontext32.h types.h fcntl.h mman.h posix_types_x32.h siginfo.h ucontext.h hw_breakpoint.h msgbuf.h prctl.h signal.h unistd.h Offline #4 2014-09-24 14:26:24 Marcel- Member From: Utrecht, NL Registered: 2006-12-03 Posts: 259 Re: Gcc errors. Where is asm/page.h? This file seems to be present in the Linux kernel. Offline #5 2014-09-24 14:29:01 Msegade Member Registered: 2013-10-15 Posts: 2 Re: Gcc errors. Where is asm/page.h? $ pacman -Ql linux-headers | grep asm/page.h Offline #6 2014-09-24 14:30:42 Truc Member Registered
Powered by phpBB Forum Software © phpBB Group
here for a quick http://superuser.com/questions/901849/gcc-not-picking-up-kernel-header-files overview of the site Help Center Detailed answers to http://fedoraforum.org/forum/showthread.php?t=192003 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 no such Super User Questions 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 no such file answer The best answers 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.
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. chin