Dear Java pkg developers for Octave,
I tried to install a java package, java-1.2.7.tar.gz, on Octave 3.4.0
installation but it failed with the following error:
# octave
GNU Octave, version 3.4.0
Copyright (C) 2011 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.
Octave was configured for "x86_64-unknown-linux-gnu".
Additional information about Octave is available at http://www.octave.org.
Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html
Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type `news'.
warning: function
/usr/local/octave/3.4.0/share/octave/packages/strings-1.0.7/strtrim.m
shadows a core library function
warning: function
/usr/local/octave/3.4.0/share/octave/packages/specfun-1.0.9/erfcx.m shadows
a built-in function
warning: function
/usr/local/octave/3.4.0/share/octave/packages/statistics-1.0.10/prctile.m
shadows a core library function
warning: function
/usr/local/octave/3.4.0/share/octave/packages/statistics-1.0.10/fstat.m
shadows a core library function
octave:1> pkg install -auto -global java-1.2.7.tar.gz
__java__.cc:59: error: ‘int octave_refcount’ redeclared as different kind of
symbol
/usr/local/octave/3.4.0/include/octave-3.4.0/octave/../octave/oct-refcount.h:28:
error: previous declaration of ‘template<class T> class octave_refcount’
__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:1054: error: missing template arguments before ‘++’ token
__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
'make' returned the following error: make: Entering directory
`/tmp/oct-s3ldFY/java-1.2.7/src'
if [ "Xamd64X" = "XX" ]; then \
/usr/local/octave/3.4.0/bin/mkoctfile-3.4.0
-DHAVE_OCTAVE_34 -v -DJAVAPKG_BUILD -I/usr/lib/jvm/include
-I/usr/lib/jvm/include/linux -o __java__.oct __java__.cc ; \
else \
/usr/local/octave/3.4.0/bin/mkoctfile-3.4.0
-DHAVE_OCTAVE_34 -v -DJAVAPKG_BUILD -DJAVA_ARCH=\\\"amd64\\\"
-DJAVA_HOME=\\\"/usr/lib/jvm\\\" -I/usr/lib/jvm/include
-I/usr/lib/jvm/include/linux -o __java__.oct __java__.cc ; \
fi
g++ -c -fPIC -I/usr/local/octave/3.4.0/include/octave-3.4.0/octave/..
-I/usr/local/octave/3.4.0/include/octave-3.4.0/octave
-I/usr/local/octave/3.4.0/include -I/usr/include/freetype2 -g -O2
-I/usr/lib/jvm/include -I/usr/lib/jvm/include/linux -DHAVE_OCTAVE_34
-DJAVAPKG_BUILD -DJAVA_ARCH=\"amd64\" -DJAVA_HOME=\"/usr/lib/jvm\"
__java__.cc -o __java__.o
make: Leaving directory `/tmp/oct-s3ldFY/java-1.2.7/src'
error: called from `pkg>configure_make' in file
/usr/local/octave/3.4.0/share/octave/3.4.0/m/pkg/pkg.m near line 1332,
column 9
error: called from:
error: /usr/local/octave/3.4.0/share/octave/3.4.0/m/pkg/pkg.m at line 783,
column 5
error: /usr/local/octave/3.4.0/share/octave/3.4.0/m/pkg/pkg.m at line 354,
column 9
octave:1>
Regards,
- Chansup
MIT Lincoln Lab
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev