Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249827 - dev-lang/perl-5.8.8-r5 fails to compile with all use flags off: no asm/page.h
Summary: dev-lang/perl-5.8.8-r5 fails to compile with all use flags off: no asm/page.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-04 18:10 UTC by Vault13
Modified: 2009-09-28 15:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild log and emerge--info (log_and_emerge--info.7z,15.82 KB, application/x-7zip-compressed)
2008-12-04 18:12 UTC, Vault13
Details
build log and emerge--info output (log_and_emerge--info.tar.bz2,16.14 KB, application/binary)
2008-12-06 10:51 UTC, Vault13
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vault13 2008-12-04 18:10:31 UTC
all use flags perl knows about are set to off (this is x86 chroot on amd64)

perl compilation aborts due to missing header file asm/page.h

there is no asm/page.h file on my 1st computer

my 2nd computer has it:
/usr/mips-unknown-linux-gnu/usr/include/asm/page.h

googlin for "perl asm/page.h" brings result "old well-known bug in perl"

after creatin empty file /usr/include/asm/page.h perl compiled succesfully

i suggest that perl be patched to not include the file
Comment 1 Vault13 2008-12-04 18:12:02 UTC
Created attachment 174247 [details]
ebuild log and emerge--info
Comment 2 Wormo (RETIRED) gentoo-dev 2008-12-06 07:09:56 UTC
Thanks for reporting this issue, and doing the legwork to find the solution. Could you please attach ebuild log and emerge info uncompressed? Or, if the ebuild log is really huge, bzip it rather than using 7zip (which most people don't have installed)
Comment 3 Vault13 2008-12-06 10:51:35 UTC
Created attachment 174394 [details]
build log and emerge--info output

same files repacked as tar.bz2
Comment 4 Adeel 2009-02-19 02:59:02 UTC
I just had this problem myself, and a quick google search returned this:
http://www.nntp.perl.org/group/perl.perl5.porters/2007/02/msg121370.html

the patch is:
--- perl-5.8.8/ext/IPC/SysV/SysV.xs.no_asm_page_h       2001-06-30
14:46:07.000000000 -0400
+++ perl-5.8.8/ext/IPC/SysV/SysV.xs     2006-06-02 17:37:22.000000000
-0400
@@ -3,9 +3,6 @@
 #include "XSUB.h"

 #include <sys/types.h>
-#ifdef __linux__
-#   include <asm/page.h>
-#endif
 #if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
 #ifndef HAS_SEM
 #   include <sys/ipc.h>



Comment 5 Torsten Veller (RETIRED) gentoo-dev 2009-09-28 15:59:14 UTC
This should be fixed.