bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug cp-tools/40188] New: javah creates constants using name of supercla


From: gnu_andrew at member dot fsf dot org
Subject: [Bug cp-tools/40188] New: javah creates constants using name of superclass
Date: 18 May 2009 19:01:13 -0000

The OpenJDK7 b58 build fails with:

/usr/bin/gcc  -O3   -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused
-Wno-parentheses -pipe -fno-omit-frame-pointer -D_LITTLE_ENDIAN -g   -D_amd64_
-Damd64 -DARCH='"amd64"' -DLINUX -DRELEASE='"1.7.0_0"' -D_LARGEFILE64_SOURCE
-D_GNU_SOURCE -D_REENTRANT -D_LP64=1 -I.
-I/mnt/builder/icedtea/openjdk-ecj/build/linux-amd64/tmp/java/java.nio/nio/CClassHeaders
-I../../../src/solaris/javavm/export -I../../../src/share/javavm/export
-I../../../src/share/native/sun/nio/ch -I../../../src/share/native/java/io
-I../../../src/share/native/java/net -I../../../src/solaris/native/java/net
-I/mnt/builder/icedtea/openjdk-ecj/build/linux-amd64/tmp/java/java.nio/nio/CClassHeaders/../../../java.lang/java/CClassHeaders
-I../../../src/share/native/common -I../../../src/solaris/native/common
-I../../../src/share/native/java/nio -I../../../src/solaris/native/java/nio   
-c -o
/mnt/builder/icedtea/openjdk-ecj/build/linux-amd64/tmp/java/java.nio/nio/obj64/ServerSocketChannelImpl.o
 ../../../src/solaris/native/sun/nio/ch/ServerSocketChannelImpl.c
../../../src/solaris/native/sun/nio/ch/FileDispatcherImpl.c: In function
'Java_sun_nio_ch_FileDispatcherImpl_lock0':
../../../src/solaris/native/sun/nio/ch/FileDispatcherImpl.c:195: error:
'sun_nio_ch_FileDispatcherImpl_NO_LOCK' undeclared (first use in this function)
../../../src/solaris/native/sun/nio/ch/FileDispatcherImpl.c:195: error: (Each
undeclared identifier is reported only once
../../../src/solaris/native/sun/nio/ch/FileDispatcherImpl.c:195: error: for
each function it appears in.)
../../../src/solaris/native/sun/nio/ch/FileDispatcherImpl.c:197: error:
'sun_nio_ch_FileDispatcherImpl_INTERRUPTED' undeclared (first use in this
function)

This is because gjavah generates the INTERRUPTED and NO_LOCK constants as:

sun_nio_ch_FileDispatcher_INTERRUPTED
sun_nio_ch_FileDispatcher_NO_LOCK

i.e. after the class in which they occur, not the class for which they are
being generated.


-- 
           Summary: javah creates constants using name of superclass
           Product: classpath
           Version: 0.98
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cp-tools
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gnu_andrew at member dot fsf dot org
OtherBugsDependingO 39410
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40188





reply via email to

[Prev in Thread] Current Thread [Next in Thread]