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

* [Bug libgcj/42986] natVMSecureRandom.cc  error: expected type-specifier
  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 ` 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
  2 siblings, 0 replies; 7+ messages in thread
From: junior_sd at hotmail dot com @ 2010-02-06 17:45 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from junior_sd at hotmail dot com  2010-02-06 17:45 -------
Created an attachment (id=19814)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19814&action=view)
preprocessed output


-- 


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libgcj/42986] natVMSecureRandom.cc  error: expected type-specifier
  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
  2 siblings, 0 replies; 7+ messages in thread
From: junior_sd at hotmail dot com @ 2010-02-06 17:46 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from junior_sd at hotmail dot com  2010-02-06 17:46 -------
Created an attachment (id=19815)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19815&action=view)
patch


-- 


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libgcj/42986] natVMSecureRandom.cc  error: expected type-specifier
  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
  2 siblings, 0 replies; 7+ messages in thread
From: cestrauss at gmail dot com @ 2010-05-16 20:00 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from cestrauss at gmail dot com  2010-05-16 20:00 -------
I can confirm this mingw32 libgcj build failure exists on current trunk (4.6.0
revision 159436). The original patch attached to this report does solve the
issue for me, after updating it so it applies cleanly.

Regards,
Cesar


-- 

cestrauss at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cestrauss at gmail dot com


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libgcj/42986] natVMSecureRandom.cc  error: expected type-specifier
       [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
  2 siblings, 0 replies; 7+ messages in thread
From: ktietz at gcc dot gnu.org @ 2010-11-30 21:08 UTC (permalink / raw)
  To: java-prs

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

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Kai Tietz <ktietz at gcc dot gnu.org> 2010-11-30 21:08:18 UTC ---
As gcc 4.4.x branch doesn't have natVMSecurityRandomWin32.cc (and also not the
file natVMSecurityRandom.cc file. I close this bug. I am a bit curious how you
can modify a none-existing file. I assume you used a local patched 4.4.x
branch.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libgcj/42986] natVMSecureRandom.cc  error: expected type-specifier
       [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
  2 siblings, 0 replies; 7+ messages in thread
From: ktietz at gcc dot gnu.org @ 2010-11-30 20:57 UTC (permalink / raw)
  To: java-prs

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

--- Comment #5 from Kai Tietz <ktietz at gcc dot gnu.org> 2010-11-30 20:56:40 UTC ---
Author: ktietz
Date: Tue Nov 30 20:56:35 2010
New Revision: 167314

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167314
Log:
2010-11-30  Kai Tietz  <kai.tietz@onevision.com>

        Backport from mainline
        2010-08-12  Tom Tromey  <tromey@redhat.com>

        PR libgcj/42986
        * gnu/java/security/jce/prng/natVMSecureRandomWin32.cc
        (natGenerateSeed): Add missing "::".


Modified:
    branches/gcc-4_5-branch/libjava/ChangeLog
   
branches/gcc-4_5-branch/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libgcj/42986] natVMSecureRandom.cc  error: expected type-specifier
       [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
  2 siblings, 0 replies; 7+ messages in thread
From: ktietz at gcc dot gnu.org @ 2010-11-30 20:33 UTC (permalink / raw)
  To: java-prs

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

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktietz at gcc dot gnu.org

--- Comment #4 from Kai Tietz <ktietz at gcc dot gnu.org> 2010-11-30 20:33:29 UTC ---
Fix was applied to trunk (4.6) at rev. 163199


^ permalink raw reply	[flat|nested] 7+ messages in thread

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).