Hi,
I am running octave-3.3.51. I wanted to install the java-1.2.7 package.
Unfortunately, I got the following warnings and errors.
Is there fix available or work around?
Thank you.
-Charles
pkg -verbose install java-1.2.7.tar.gz
__java__.cc: In function ‘std::string get_module_path(const std::string&,
bool)’:
__java__.cc:223: error: ‘getcwd’ is not a member of ‘octave_env’
__java__.cc: In function ‘void initialize_jvm()’:
__java__.cc:385: warning: deprecated conversion from string constant to ‘char*’
__java__.cc: In function ‘octave_value get_array_elements(JNIEnv*, _jobject*,
const octave_value_list&)’:
__java__.cc:612: warning: deprecated conversion from string constant to ‘char*’
__java__.cc:
In function ‘octave_value set_array_elements(JNIEnv*, _jobject*, const
octave_value_list&, const octave_value&)’:
__java__.cc:634: warning: deprecated conversion from string constant to ‘char*’
__java__.cc: In function ‘octave_value box(JNIEnv*, _jobject*, _jclass*)’:
__java__.cc:783: warning: deprecated conversion from string constant to ‘char*’
__java__.cc:848: warning: deprecated conversion from string constant to ‘char*’
__java__.cc: In function ‘int unbox(JNIEnv*, const octave_value&, jobject_ref&,
jclass_ref&)’:
__java__.cc:988: warning: deprecated conversion from string constant to ‘char*’
__java__.cc:1052: warning: deprecated conversion from string constant to ‘char*’
__java__.cc: In function ‘int java_event_hook()’:
__java__.cc:1117: warning: deprecated conversion from string constant to ‘char*’
__java__.cc:
In member function ‘octave_value octave_java::do_java_invoke(JNIEnv*,
const std::string&, const octave_value_list&)’:
__java__.cc:1696: warning: deprecated conversion from string constant to ‘char*’
__java__.cc:
In static member function ‘static octave_value
octave_java::do_java_invoke(JNIEnv*, const std::string&, const
std::string&, const octave_value_list&)’:
__java__.cc:1721: warning: deprecated conversion from string constant to ‘char*’
__java__.cc:
In static member function ‘static octave_value
octave_java::do_java_create(JNIEnv*, const std::string&, const
octave_value_list&)’:
__java__.cc:1746: warning: deprecated conversion from string constant to ‘char*’
__java__.cc: In member function ‘octave_value octave_java::do_java_get(JNIEnv*,
const std::string&)’:
__java__.cc:1767: warning: deprecated conversion from string constant to ‘char*’
__java__.cc:
In static member function ‘static octave_value
octave_java::do_java_get(JNIEnv*, const std::string&, const
std::string&)’:
__java__.cc:1787: warning: deprecated conversion from string constant to ‘char*’
__java__.cc:
In member function ‘octave_value octave_java::do_java_set(JNIEnv*,
const std::string&, const octave_value&)’:
__java__.cc:1813: warning: deprecated conversion from string constant to ‘char*’
__java__.cc:
In static member function ‘static octave_value
octave_java::do_java_set(JNIEnv*, const std::string&, const
std::string&, const octave_value&)’:
__java__.cc:1835: warning: deprecated conversion from string constant to ‘char*’
make: *** [__java__.oct] Error 1
mkdir (/tmp/oct-IZxkBk)
untar (java-1.2.7.tar.gz, /tmp/oct-IZxkBk)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for mkoctfile... mkoctfile
retrieving compile and link flags from mkoctfile
checking for F77_FUNC... yes
checking for octave... octave
checking for OCTAVE_VERSION in Octave... 3.3.51
checking for octave_config_info('canonical_host_type') in Octave...
x86_64-unknown-linux-gnu
checking for octave_config_info('SHLEXT') in Octave... so
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for strip... strip
checking for java... /usr/local/jdk1.6.0_21/bin/java
checking for javac... /usr/local/jdk1.6.0_21/bin/javac
checking for jar... /usr/local/jdk1.6.0_21/bin/jar
checking for Java version... 1.6.0_21
configure: creating ./config.status
config.status: creating Makeconf
"$prefix" is /usr/local/octave/3.3.51/share/octave/packages/java-1.2.7
"$exec_prefix" is ${prefix}
octave commands will install into the following directories:
m-files: /usr/local/octave/3.3.51/share/octave/3.3.51/site/m/octave-forge
oct-files:
/usr/local/octave/3.3.51/libexec/octave/3.3.51/site/oct/x86_64-unknown-linux-gnu/octave-forge
binaries:
/usr/local/octave/3.3.51/libexec/octave/3.3.51/site/exec/x86_64-unknown-linux-gnu
alternatives:
m-files:
/usr/local/octave/3.3.51/share/octave/3.3.51/site/octave-forge-alternatives/m
oct-files:
/usr/local/octave/3.3.51/libexec/octave/3.3.51/site/octave-forge-alternatives/oct/x86_64-unknown-linux-gnu
shell commands will install into the following directories:
binaries: ${exec_prefix}/bin
man pages: ${datarootdir}/man
libraries: ${exec_prefix}/lib
headers: ${prefix}/include
octave-forge is configured with
octave: octave (version 3.3.51)
mkoctfile: mkoctfile for Octave 51
java: yes
find . -name NOINSTALL -print # shows which toolboxes won't be installed
'make' returned the following error: make: Entering directory
`/tmp/oct-IZxkBk/java-1.2.7/src'
if [ "Xamd64X" = "XX" ]; then \
mkoctfile -DHAVE_OCTAVE_33 -v -DJAVAPKG_BUILD
-I/usr/local/jdk1.6.0_21/include -I/usr/local/jdk1.6.0_21/include/linux
-o __java__.oct __java__.cc ; \
else \
mkoctfile -DHAVE_OCTAVE_33 -v -DJAVAPKG_BUILD -DJAVA_ARCH=\\\"amd64\\\"
-DJAVA_HOME=\\\"/usr/local/jdk1.6.0_21\\\"
-I/usr/local/jdk1.6.0_21/include -I/usr/local/jdk1.6.0_21/include/linux
-o __java__.oct __java__.cc ; \
fi
g++ -c -fPIC
-I/usr/local/octave/3.3.51/include/octave-3.3.51/octave/..
-I/usr/local/octave/3.3.51/include/octave-3.3.51/octave
-I/usr/local/octave/3.3.51/include -I/usr/include/freetype2 -g -O2
-I/usr/local/jdk1.6.0_21/include -I/usr/local/jdk1.6.0_21/include/linux
-DHAVE_OCTAVE_33 -DJAVAPKG_BUILD -DJAVA_ARCH=\"amd64\"
-DJAVA_HOME=\"/usr/local/jdk1.6.0_21\" __java__.cc -o __java__.o
make: Leaving directory `/tmp/oct-IZxkBk/java-1.2.7/src'
error:
called from `pkg>configure_make' in file
/usr/local/octave/3.3.51/share/octave/3.3.51/m/pkg/pkg.m near line
1251, column 2
error: called from:
error: /usr/local/octave/3.3.51/share/octave/3.3.51/m/pkg/pkg.m at line 712,
column 5
error: /usr/local/octave/3.3.51/share/octave/3.3.51/m/pkg/pkg.m at line 287,
column 7
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev