public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "junior_sd at hotmail dot com" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug libgcj/42986] New: natVMSecureRandom.cc error: expected type-specifier Date: Sat, 06 Feb 2010 17:42:00 -0000 [thread overview] Message-ID: <bug-42986-18753@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2010-02-06 17:42 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-02-06 17:42 junior_sd at hotmail dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-42986-18753@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).