Perl Error Asm/page.h No Such File Or Directory
Prev Next This bug is not in your last search results. Bug10791 - Missing asm/page.h on X86 kernel header install Summary: Missing asm/page.h on X86 kernel header install Status: REJECTED INVALID Product: Other Classification: Unclassified Component: Other Hardware: All Linux Importance: P1 normal Assigned To: other_other URL: Keywords: Duplicates: 10793 (view as bug list) Depends on: Blocks: Show dependency tree /graph Reported: 2008-05-25 08:35 UTC by David Broadfoot Modified: 2008-05-25 10:24 UTC (History) CC List: 1 user (show) bunk See Also: Kernel Version: linux 2.6.26-rc3 Tree: Mainline Regression: --- Attachments Add an attachment (proposed patch, testcase, etc.) Description David Broadfoot 2008-05-25 08:35:26 UTC Latest working kernel version:2.6.24.0 (Last system build I did) Earliest failing kernel version: Distribution: CLFS - SVN Hardware Environment:X86 Software Environment: Problem Description: While compiling Perl 5.8.8, it reports: "gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.04\" -DXS_VERSION=\"1.04\" -fpic "-I../../.." SysV.c SysV.xs:7:25: error: asm/page.h: No such file or directory" Steps to reproduce: Make the headers into a dir, and ls..... ummm...... I have not done a full system build science 2.6.24.0, and thus I am not sure when this was broken. Dave david@cross-lfs.org Comment 1 Adrian Bunk 2008-05-25 10:19:22 UTC *** Bug 10793 has been marked as a duplicate of this bug. *** Comment 2 Adrian Bunk 2008-05-25 10:24:19 UTC Perl should not have used this header, and it's already fixed in Perl 5.10.0 AFAIR you can simply remove the #include from ext/IPC/SysV/SysV.xs Note You need to log in before you can comment on or make changes to this bug. Format For Printing -XML -Clone This Bug -Top of page First Last Prev Next This bug is not in your last search results. Home | New | Browse | Search | [?] | Reports | Help | NewAccount | Log In [x] | Forgot Password Login: [x]
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 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: https://bugzilla.kernel.org/show_bug.cgi?id=10791 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 http://stackoverflow.com/questions/19310541/having-trouble-compiling-c-code-on-ubuntu-include-errors or directory" Here are the headers: #include
is 5.8.8, I've encountered a few annoying problems. Since many people are confused about how to do this, I decided to slog through and figure it out. http://www.perlmonks.org/?displaytype=print;node_id=784595;replies=1 Not fun. The answers to the various problems are scattered hither and http://blog-tmtsts.rhcloud.com/620 yon, making this a very unpleasant process. First, you need to get Perl and apply a regex patch which closes a security hole (many thanks to Rufus Cable for alerting me to the patch): wget http://www.cpan.org/src/perl-5.8.8.tar.gz wget ftp://ftp.cpan.org/pub/CPAN/authors/id/N/NW/NWCLARK/regexp-5.8.8. +patch tar xzf perl-5.8.8.tar.gz cd perl-5.8.8 patch -p1 < ../regexp-5.8.8.patch perl error rm -f {config,Policy}.sh sh Configure -de [download] Be sure to read the INSTALL file for more information about the Configure options. At this point, everything should be fine, but you can't run make yet. Actually, you can run make, but it will likely fail. Fortunately, you can keep fixing errors and rerunning make until all errors go away. The first problem perl error asm/page.h is a strange "You haven't done a make depend yet" error. As it turns out, this is because Ubuntu has decided to link /bin/sh to /bin/dash instead of /bin/bash. It's a faster shell, but not only does it not support everything bash does, it also is less tolerant of errors. The makedepend file has an unterminated quote string, so doing this gets you over the first hurdle: sudo ln -s /bin/bash /bin/sh Be sure to change the symlink back after you're done if you want dash instead of bash (note that using a correct shebang line at the top of your bash scripts makes this a non-issue for you). If you've already tried to run make, you might see this error: makedepend: Already running, exiting That's because it previously exited abnormally (anyone remember "abend"?) and left a .depending directory lying around. Simply remove this directory and rerun. If you run make now, you might hit the second error: No rule to make target `
は /usr/local/perl5_8_2、libpth は /usr/lib64等 を先に読むように設定。 $ mkdir -p /usr/local/perl5_8_2/bin $ cd /usr/local/src $ wget http://www.cpan.org/src/5.0/perl-5.8.2.tar.gz $ tar -xzvf perl-5.8.2.tar.gz $ cd perl-5.8.2 $ ./Configure -Dprefix=/usr/local/perl5_8_2 -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64 /usr/local/lib /lib /usr/lib" -ds && make で、以下のエラーが出て make がこけた。 make: *** No rule to make target `