Subject: Re: Java 1.2.2 for i386 with COMPAT_LINUX
To: Todd Vierling <tv@wasabisystems.com>
From: Hauke Fath <hf@Tangro.DE>
List: port-i386
Date: 10/19/2000 12:32:22
At 13:43 17.10.00 -0400, Todd Vierling wrote:
>`It doesn't work at all on NetBSD', however. 1.12 is the most stable
>version that does.
The pkg builds fine on 1.5ALPHA2, and indeed solves my trouble with the
Jikes 1.06 1.5-ELF binary needing thrice the memory of the 1.4-a.out
equivalent. Compile time is back to a minute or so. =8)
On the other hand, the package does not build on NetBSD/i386 1.4.1.
g++ -DHAVE_CONFIG_H -I. -I. -I. -O2 -c -o set.o `test -f set.cpp ||
echo './'`set.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -O2 -c -o stream.o `test -f stream.cpp
|| echo './'`stream.cpp
stream.cpp: In method `const wchar * StreamError::getErrorMessage()':
stream.cpp:55: return to `const wchar *' from `__wchar_t *'
stream.cpp:58: return to `const wchar *' from `__wchar_t *'
stream.cpp:61: return to `const wchar *' from `__wchar_t *'
stream.cpp:64: return to `const wchar *' from `__wchar_t *'
stream.cpp:67: return to `const wchar *' from `__wchar_t *'
stream.cpp:70: return to `const wchar *' from `__wchar_t *'
stream.cpp:73: return to `const wchar *' from `__wchar_t *'
stream.cpp:76: return to `const wchar *' from `__wchar_t *'
stream.cpp:79: return to `const wchar *' from `__wchar_t *'
stream.cpp:85: return to `const wchar *' from `__wchar_t *'
gmake[1]: *** [stream.o] Error 1
gmake[1]: Leaving directory `/usr/src/pkgsrc/lang/jikes/work/jikes-1.12/src'
gmake: *** [all-recursive] Error 1
*** Error code 2
After applying the attached patch, things appear to work well.
hauke
-----------------------------------------------------------------------------
--- work/jikes-1.12/src/stream.cpp~ Tue Jul 25 13:32:33 2000
+++ work/jikes-1.12/src/stream.cpp Thu Oct 19 11:43:49 2000
@@ -52,37 +52,37 @@
switch(kind)
{
case StreamError::BAD_TOKEN:
- return L"Illegal token\n";
+ return (wchar *)L"Illegal token\n";
break;
case StreamError::BAD_OCTAL_CONSTANT:
- return L"Octal constant contains invalid digit\n";
+ return (wchar *)L"Octal constant contains invalid digit\n";
break;
case StreamError::EMPTY_CHARACTER_CONSTANT:
- return L"Empty character constant\n";
+ return (wchar *)L"Empty character constant\n";
break;
case StreamError::UNTERMINATED_CHARACTER_CONSTANT:
- return L"Character constant not properly terminated\n";
+ return (wchar *)L"Character constant not properly terminated\n";
break;
case StreamError::UNTERMINATED_COMMENT:
- return L"Comment not properly terminated\n";
+ return (wchar *)L"Comment not properly terminated\n";
break;
case StreamError::UNTERMINATED_STRING_CONSTANT:
- return L"String constant not properly terminated\n";
+ return (wchar *)L"String constant not properly terminated\n";
break;
case StreamError::INVALID_HEX_CONSTANT:
- return L"The prefix 0x must be followed by at least one hex digit\n";
+ return (wchar *)L"The prefix 0x must be followed by at least one
hex digit\n";
break;
case StreamError::INVALID_FLOATING_CONSTANT_EXPONENT:
- return L"floating-constant exponent has no digit\n";
+ return (wchar *)L"floating-constant exponent has no digit\n";
break;
case StreamError::INVALID_UNICODE_ESCAPE:
- return L"Invalid unicode escape character\n";
+ return (wchar *)L"Invalid unicode escape character\n";
break;
default:
assert(false);
}
- return L"Unknown Error\n";
+ return (wchar *)L"Unknown Error\n";
}
bool StreamError::emacs_style_report=false;
--
Hauke Fath Tangro Software Components GmbH
D-69115 Heidelberg
hf@Tangro.DE Ruf +49-6221-13336-0, Fax -21