Issues with compiling R13B03
Yves S. Garret
yoursurrogategod@REDACTED
Sun Jan 17 07:31:24 CET 2010
Hi,
I posted about this in here before:
http://forum.trapexit.org/viewtopic.php?t=17587
Here's the whole post:
Ok, I tried configuring it and keep getting the same warning about not
having ODBC (if possible, I'd like it to use PostgreSQL.)
I found the below link and simply forged ahead, figuring that I could
just set up a connection to a database client later on.
https://www.cs.tcd.ie/~htewari/4D1/erlang/lib/odbc-0.9.4/doc/html/OdbcCompileUnix.html
I did make and was greeted with this mess:
Errors:
make[3]: Entering directory `/home/ysg/Desktop/Documents/Development/
Erlang/VirtualMachines/otp_src_R13B03/lib/jinterface/java_src'
set -e; set -x; \
case "make" in *clearmake*) tflag="-T";; *) tflag="";; esac; \
if test -f com/ericsson/otp/erlang/ignore_config_record.inf; then
xflag=$tflag; fi; \
(cd com/ericsson/otp/erlang && make -f Makefile.otp $xflag opt)
+ tflag=
+ test -f com/ericsson/otp/erlang/ignore_config_record.inf
+ xflag=
+ cd com/ericsson/otp/erlang
+ make -f Makefile.otp opt
make[4]: Entering directory `/home/ysg/Desktop/Documents/Development/
Erlang/VirtualMachines/otp_src_R13B03/lib/jinterface/java_src/com/
ericsson/otp/erlang'
if [ ! -d "/home/ysg/Desktop/Documents/Development/Erlang/
VirtualMachines/otp_src_R13B03/lib/jinterface/priv/" ];then mkdir "/
home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/priv/"; fi
CLASSPATH=/home/ysg/Desktop/Documents/Development/Erlang/
VirtualMachines/otp_src_R13B03/lib/jinterface/java_src/ javac -d /
home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/priv/ OtpAuthException.java
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpException.java:24: warning: The serializable class OtpException
does not declare a static final serialVersionUID field of type long
public abstract class OtpException extends Exception {
^^^^^^^^^^^^
1 problem (1 warning)
CLASSPATH=/home/ysg/Desktop/Documents/Development/Erlang/
VirtualMachines/otp_src_R13B03/lib/jinterface/java_src/ javac -d /
home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/priv/ OtpErlangDecodeException.java
OtpErlangDecodeException.java:28: warning: The serializable class
OtpErlangDecodeException does not declare a static final
serialVersionUID field of type long
public class OtpErlangDecodeException extends OtpErlangException {
^^^^^^^^^^^^^^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpException.java:24: warning: The serializable class OtpException
does not declare a static final serialVersionUID field of type long
public abstract class OtpException extends Exception {
^^^^^^^^^^^^
2 problems (2 warnings)
CLASSPATH=/home/ysg/Desktop/Documents/Development/Erlang/
VirtualMachines/otp_src_R13B03/lib/jinterface/java_src/ javac -d /
home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/priv/ OtpErlangExit.java
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpException.java:24: warning: The serializable class OtpException
does not declare a static final serialVersionUID field of type long
public abstract class OtpException extends Exception {
^^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangObject.java:174: warning: Unnecessary cast from byte to int
abc[k] += ((int)b[j+0] & 0xFF) + ((int)b[j+1]<<8 & 0xFF00)
^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangObject.java:174: warning: Unnecessary cast from byte to int
abc[k] += ((int)b[j+0] & 0xFF) + ((int)b[j+1]<<8 & 0xFF00)
^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangObject.java:175: warning: Unnecessary cast from byte to int
+ ((int)b[j+2]<<16 & 0xFF0000) + ((int)b[j+3]<<24);
^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangObject.java:175: warning: Unnecessary cast from byte to int
+ ((int)b[j+2]<<16 & 0xFF0000) + ((int)b[j+3]<<24);
^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangObject.java:181: warning: Unnecessary cast from byte to int
abc[k] += (int)b[j]<<n & m;
^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangDecodeException.java:28: warning: The serializable class
OtpErlangDecodeException does not declare a static final
serialVersionUID field of type long
public class OtpErlangDecodeException extends OtpErlangException {
^^^^^^^^^^^^^^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpInputStream.java:1019: warning: The local variable n is never read
final int n = read4BE();
^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpInputStream.java:1087: error: The constructor String(int[], int,
int) is undefined
return new String(intbuf, 0, intbuf.length);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpOutputStream.java:46: warning: The field OtpOutputStream.eform is
never read locally
private static final DecimalFormat eform = new DecimalFormat("e
+00;e-00");
^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpOutputStream.java:47: warning: The field OtpOutputStream.ten is
never read locally
private static final BigDecimal ten = new BigDecimal(10.0);
^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpOutputStream.java:48: warning: The field OtpOutputStream.one is
never read locally
private static final BigDecimal one = new BigDecimal(1.0);
^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpOutputStream.java:722: warning: The local variable charbuf is never
read
final char[] charbuf = s.toCharArray();
^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangPort.java:43: warning: The constructor OtpErlangPort(OtpSelf)
is never used locally
private OtpErlangPort(final OtpSelf self) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangRef.java:261: error: Type mismatch: cannot convert from
Object to int[]
newRef.ids = ids.clone();
^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangFun.java:22: warning: The import java.util.Arrays is never
used
import java.util.Arrays;
^^^^^^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangString.java:22: warning: The import java.lang.Character is
never used
import java.lang.Character;
^^^^^^^^^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangList.java:404: error: The constructor String(int[], int, int)
is undefined
return new String(values, 0, values.length);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangTuple.java:258: error: Type mismatch: cannot convert from
Object to OtpErlangObject[]
newTuple.elems = elems.clone();
^^^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangBitstr.java:281: error: Type mismatch: cannot convert from
Object to byte[]
that.bin = bin.clone();
^^^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
AbstractConnection.java:277: warning: The parameter from is never
read
protected void sendBuf(final OtpErlangPid from, final OtpErlangPid
dest,
^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
AbstractConnection.java:510: warning: The label tick_loop is never
explicitly referenced
tick_loop: do {
^^^^^^^^^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpErlangInt.java:59: warning: The local variable j is never read
final int j = intValue();
^
/home/ysg/Desktop/Documents/Development/Erlang/VirtualMachines/
otp_src_R13B03/lib/jinterface/java_src/com/ericsson/otp/erlang/
OtpMD5.java:147: warning: The method dumpstate() from the type OtpMD5
is never used locally
private void dumpstate() {
^^^^^^^^^^^
24 problems (5 errors, 19 warnings)
make[4]: *** [/home/ysg/Desktop/Documents/Development/Erlang/
VirtualMachines/otp_src_R13B03/lib/jinterface/priv/com/ericsson/otp/
erlang/OtpErlangExit.class] Error 1
make[4]: Leaving directory `/home/ysg/Desktop/Documents/Development/
Erlang/VirtualMachines/otp_src_R13B03/lib/jinterface/java_src/com/
ericsson/otp/erlang'
make[3]: *** [opt] Error 2
make[3]: Leaving directory `/home/ysg/Desktop/Documents/Development/
Erlang/VirtualMachines/otp_src_R13B03/lib/jinterface/java_src'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/home/ysg/Desktop/Documents/Development/
Erlang/VirtualMachines/otp_src_R13B03/lib/jinterface'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/home/ysg/Desktop/Documents/Development/
Erlang/VirtualMachines/otp_src_R13B03/lib'
make: *** [fourth_bootstrap_build] Error 2
Since I installed a Java compiler (the configure script didn't mention
that something was lacking), I figured that jinterface would compile
without a hitch.
Any possible solutions to this? I have PostgreSQL installed, how can I
get the Erlang VM to use one of its clients?
More information about the erlang-questions
mailing list