public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/42986]  New: natVMSecureRandom.cc  error: expected type-specifier
@ 2010-02-06 17:42 junior_sd at hotmail dot com
  2010-02-06 17:45 ` [Bug libgcj/42986] " junior_sd at hotmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: junior_sd at hotmail dot com @ 2010-02-06 17:42 UTC (permalink / raw)
  To: java-prs

While compiling GCC-4.4.3 on MinGW (with MSYS), file natVMSecureRandom.cc (i.e.
natVMSecureRandomWin32.cc) fails to compile.

/home/###/gcc-4.4.3/host-i686-pc-mingw32/gcc/xgcc -shared-libgcc
-B/home/###/gcc-4.4.3/host-i686-pc-mingw32/gcc -nostdinc++
-L/home/###/gcc-4.4.3/i686-pc-mingw32/libstdc++-v3/src
-L/home/###/gcc-4.4.3/i686-pc-mingw32/libstdc++-v3/src/.libs
-L/home/###/gcc-4.4.3/i686-pc-mingw32/winsup/mingw
-L/home/###/gcc-4.4.3/i686-pc-mingw32/winsup/w32api/lib -isystem
/home/###/gcc-4.4.3/winsup/mingw/include -isystem
/home/###/gcc-4.4.3/winsup/w32api/include -B/mingw/i686-pc-mingw32/bin/
-B/mingw/i686-pc-mingw32/lib/ -isystem /mingw/i686-pc-mingw32/include -isystem
/mingw/i686-pc-mingw32/sys-include -DHAVE_CONFIG_H -I. -I../.././libjava
-I./include -I./gcj -I../.././libjava -Iinclude -I../.././libjava/include
-I../.././libjava/classpath/include -Iclasspath/include
-I../.././libjava/classpath/native/fdlibm -I../.././libjava/../boehm-gc/include
-I../boehm-gc/include -I../.././libjava/libltdl -I../.././libjava/libltdl
-I../.././libjava/.././libjava/../gcc -I../.././libjava/../zlib
-I../.././libjava/../libffi/include -I../libffi/include -fno-rtti
-fnon-call-exceptions -mthreads -fdollars-in-identifiers -Wswitch-enum
-D_FILE_OFFSET_BITS=64 -ffloat-store -fomit-frame-pointer -Usun
-fno-omit-frame-pointer -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/mingw\"
-DTOOLEXECLIBDIR=\"/mingw/lib\" -DJAVA_HOME=\"/mingw\"
-DBOOT_CLASS_PATH=\"/mingw/share/java/libgcj-4.4.3.jar\"
-DJAVA_EXT_DIRS=\"/mingw/share/java/ext\"
-DGCJ_ENDORSED_DIRS=\"/mingw/share/java/gcj-endorsed\"
-DGCJ_VERSIONED_LIBDIR=\"/mingw/lib/gcj-4.4.3-10\" "-DPATH_SEPARATOR=\";\""
-DECJ_JAR_FILE=\"\"
-DLIBGCJ_DEFAULT_DATABASE=\"/mingw/lib/gcj-4.4.3-10/classmap.db\"
-DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.4.3-10/classmap.db\" -g -O2 -MT
gnu/java/security/jce/prng/natVMSecureRandom.lo -MD -MP -MF
gnu/java/security/jce/prng/.deps/natVMSecureRandom.Tpo-c
gnu/java/security/jce/prng/natVMSecureRandom.cc  -DDLL_EXPORT -DPIC -o
gnu/java/security/jce/prng/.libs/natVMSecureRandom.o

The error is:

gnu/java/security/jce/prng/natVMSecureRandom.cc: In static member function
'static jint gnu::
java::security::jce::prng::VMSecureRandom::natGenerateSeed(JArray<__java_byte>*,
 jint, jint)':
gnu/java/security/jce/prng/natVMSecureRandom.cc:29: error: expected
type-specifier
gnu/java/security/jce/prng/natVMSecureRandom.cc:29: error: expected ';'

The error disappeared after I had modified file natVMSecureRandomWin32.cc in
libjava/gnu/java/security/jce/prng as shown below.

--- natVMSecureRandomWin32.cc.orig      2010-02-06 18:08:18 +0100
+++ natVMSecureRandomWin32.cc   2010-02-06 18:08:39 +0100
@@ -26,7 +26,7 @@ jint
 gnu::java::security::jce::prng::VMSecureRandom::natGenerateSeed(jbyteArray
byte_array, jint offset, jint length)
 {
   if (length != 0)
-    throw new java::lang::UnsupportedOperationException(
+    throw new ::java::lang::UnsupportedOperationException(
       JvNewStringLatin1("natGenerateSeed is not available for Win32
target."));
   return 0;
 }

Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld
--wi
th-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
--dis
able-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry
--d
isable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt
--with
out-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter
--enabl
e-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw-vista special r3)


-- 
           Summary: natVMSecureRandom.cc  error: expected type-specifier
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: junior_sd at hotmail dot com
 GCC build triplet: pc-mingw32
  GCC host triplet: pc-mingw32
GCC target triplet: pc-mingw32


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


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <bug-42986-8172@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2010-11-30 21:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-06 17:42 [Bug libgcj/42986] New: natVMSecureRandom.cc error: expected type-specifier junior_sd at hotmail dot com
2010-02-06 17:45 ` [Bug libgcj/42986] " junior_sd at hotmail dot com
2010-02-06 17:46 ` junior_sd at hotmail dot com
2010-05-16 20:00 ` cestrauss at gmail dot com
     [not found] <bug-42986-8172@http.gcc.gnu.org/bugzilla/>
2010-11-30 20:33 ` ktietz at gcc dot gnu.org
2010-11-30 20:57 ` ktietz at gcc dot gnu.org
2010-11-30 21:08 ` ktietz at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).