Sync'ing up jdk7 at b50

Andrew John Hughes gnu_andrew at member.fsf.org
Thu Feb 12 08:17:43 PST 2009


2009/2/12 Alan Bateman <Alan.Bateman at sun.com>:
> Andrew John Hughes wrote:
>>
>> :
>> It only happened last week :)
>> We already have one portability issue you are probably aware of.
>> Thanks to testing from Matthias Klose, we've found that the build
>> fails on armel:
>>
>> ../../../src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c: In
>> function 'Java_sun_nio_fs_UnixNativeDispatcher_initIDs':
>> ../../../src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c:203:
>> error: 'fstatat64_wrapper' undeclared (first use in this function)
>> ../../../src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c:203:
>> error: (Each undeclared identifier is reported only once
>> ../../../src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c:203:
>> error: for each function it appears in.)
>> make[6]: ***
>> [/build/buildd/openjdk-6-6b14/openjdk/control/build/linux-arm/tmp/java/java.nio/nio/obj/UnixNativeDispatcher.o]
>> Error 1
>>
>>
>> http://launchpadlibrarian.net/22537446/buildlog_ubuntu-jaunty-armel.openjdk-6_6b14-0ubuntu12_FAILEDTOBUILD.txt.gz
>>
>> Strangely, it passes on SPARC and PowerPC (both GNU/Linux).  This
>> function is available in glibc 2.9 so the conditional to just turn it
>> off for GNU/Linux platforms is wrong.
>>
>
> Yes, I guessed this would be a problem but I thought I had changed it so
> that the fallback to use syscall was only compiled in on x86/x64. I see this
> was in b99 (your first mail mentioned b98) so that might explain it.
>
> -Alan.
>

Yes this is b98, that was the most recent revision last week.  We
should sync with b99.

Our preferred way to handle this is to check for fstatat via configure
and use HAVE_FSTATAT as the define rather than doing something as
blunt as #defined(__linux__).  Is there an equivalent in Sun's
Makefile nomenclature?
-- 
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8



More information about the nio-dev mailing list