Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [PREFIX] Problem compiling libperl on Solaris 11
Date: Sat, 31 May 2008 13:41:32
Message-Id: 20080531134039.GO9590@gentoo.org
On 02-03-2007 12:24:30 +0100, Fabrizio Listello wrote:
>> Which patch? On Solaris 10/Sparc only 2.5.4 is unsuable, because it >> doesn't recognise multiple files in single patch files. > > System is Solaris 11/x86, patch 2.5.9. Error is: > > No file to patch. Skipping patch. > patch: **** fseek : Invalid argument > > > I did some 'truss' and I found the following: > when using the XOPEN_SOURCE version: > [...] > llseek(3, 0, SEEK_CUR) = 1355 > stat64("pch.c", 0x08045AA0) = 0 > lseek(3, 538, 2147483647) Err#22 EINVAL > [...] > and it fails. > when using the non-XOPEN_SOURCE version: > [..] > llseek(3, 0, SEEK_CUR) = 1355 > stat64("pch.c", 0x08045AB0) = 0 > llseek(3, 538, SEEK_SET) = 538 > [...] > a call to llseek is done. > Don't ask me why it works, but it do. > > Anyway, patching patch ebuild at line 33 with: > ! use x86-solaris && append-flag -D_XOPEN_SOURCE=500 > should resolve the issue.
Thanks for the research on this one! I hit the same issue, and fixed it in the tree. -- Fabian Groffen Gentoo on a different level -- gentoo-alt@l.g.o mailing list