Søren:

(Sorry for late reply, January is always busy with family stuff and X-Mas overflow.)

(BTW I've included the list too)

Søren Hauberg wrote:
Hi

søn, 26 12 2010 kl. 22:04 +0100, skrev [email protected]:
Sorry, I couldn't keep my promise to check last week, I had only little
time for experiments.

No prob! Christmas is also taking my time (which is very nice BTW)

What I did:
I downloaded a GNU tarball from SVN (not ideal, but it always worked
before) *)
It didn't compile at all first; it turned out I had to add "configure"
into ./src from another java-1.2.8 pkg I had lying around (actually one
that Martin Hepperle sent me and that installed OK).

You have to generate the 'configure' file by running './autogen.sh' when
you download code from SVN. I've attached a version of the package where
this has been done. So, you can just try that one.

Could you try these three things?

      1.  Install the attached package and try the same things as before.
         (if this just works there is no need for the two other tests)

Done, see attached. Compiles, installs, but gives runtime errors

      2.  Install the package as an ordinary user (without root access).
         This might have an impact on the installation. Then try and see
         if things work better.

Done, see attached. Compiles but won't install (pkg list remains empty)

      3.  Uncompress the package file and run './configure' from within
         the 'src' directory. Then see if Java was found.

Didn't do, as Java is always found, AFAICS in the logs


Attached are some logs (as ordinary user & root user) all copied into one file, created when trying "pkg install java-1.2.8.tar.gz" run on:
MandrivaLinux 2010.1
OpenJDK 1.6.0
java-1.2.8 pkg  you sent me
octave-3.3.55 snapshot

I see that there's indeed a __java__.oct present in /usr/local/libexec/octave/packages/java-1.2.8/i686-pc-linux-gnu-api-v43+/
but is gives runtime errors.
In addition, it gives similar runtime errors when exiting octave (when the jvm is unloaded, I guess).

So, something doesn't compile properly, but I can't see what it is.

I also tried to compile the previous java-1.2.8 pkg (made by Martin Hepperle; that version compiled w/o a hitch on 3.2.4 and -AFAIR- 3.3.51) but it wouldn't compile at all in octave-3.3.55.
Apparently more things changed than just getcwd()?


Best wishes,

Philip
As ordinary user:
=================

octave-3.3.55:10> pkg install -verbose -auto java-1.2.8_soren.tar.gz
warning: load_path: /home/philip/octave/java-1.2.8/i686-pc-linux-gnu-api-v43+: 
No such file or directory


mkdir (/tmp/oct-cRJv2l)
untar (java-1.2.8_soren.tar.gz, /tmp/oct-cRJv2l)
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.2.4
checking for octave_config_info('canonical_host_type') in Octave... 
i586-mandriva-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/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/java
checking for javac... /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/javac
checking for jar... /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/jar
checking for Java version... 1.6.0_18
configure: creating ./config.status
config.status: creating Makeconf
 
  "$prefix" is /home/philip/octave/java-1.2.8
  "$exec_prefix" is ${prefix}

octave commands will install into the following directories:
   m-files:   /usr/share/octave/3.2.4/site/m/octave-forge
   oct-files: 
/usr/lib/octave/3.2.4/site/oct/i586-mandriva-linux-gnu/octave-forge
   binaries:  /usr/lib/octave/3.2.4/site/exec/i586-mandriva-linux-gnu
alternatives:
   m-files:   /usr/share/octave/3.2.4/site/octave-forge-alternatives/m
   oct-files: 
/usr/lib/octave/3.2.4/site/octave-forge-alternatives/oct/i586-mandriva-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.2.4)
   mkoctfile:   mkoctfile for Octave 4
   java:        yes

find . -name NOINSTALL -print    # shows which toolboxes won't be installed

make: Entering directory `/tmp/oct-cRJv2l/java-1.2.8/src'
if [ "Xi386X" = "XX" ]; then \
                mkoctfile -DHAVE_OCTAVE_32 -v -DJAVAPKG_BUILD 
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include 
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include/linux -o __java__.oct 
__java__.cc ; \
        else \
                mkoctfile -DHAVE_OCTAVE_32 -v -DJAVAPKG_BUILD 
-DJAVA_ARCH=\\\"i386\\\" 
-DJAVA_HOME=\\\"/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0\\\" 
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include 
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include/linux -o __java__.oct 
__java__.cc ; \
        fi
g++ -c -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 
-fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 
-mtune=generic -fasynchronous-unwind-tables -DH5_USE_16_API 
-I/usr/include/freetype2 -fPIC -I/usr/include/octave-3.2.4 
-I/usr/include/octave-3.2.4/octave -mieee-fp -O2 -g -pipe -Wformat 
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector 
--param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic 
-fasynchronous-unwind-tables -I/usr/include/freetype2 
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include 
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include/linux -DHAVE_OCTAVE_32 
-DJAVAPKG_BUILD -DJAVA_ARCH=\"i386\" 
-DJAVA_HOME=\"/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0\" __java__.cc -o 
__java__.o
g++ -shared -Wl,-Bsymbolic -o __java__.oct __java__.o -L/usr/lib/octave-3.2.4 
-loctinterp -loctave -lcruft -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro 
-Wl,-O1 -Wl,--build-id -llapack -lblas -lfftw3 -lfftw3f -lreadline -lncurses 
-ldl -lhdf5 -lz -lm -lfreetype -lz -L/usr/X11R6/lib -lGL -lGLU -L/usr/X11R6/lib 
-L/usr/lib/gcc/i586-manbo-linux-gnu/4.4.3 
-L/usr/lib/gcc/i586-manbo-linux-gnu/4.4.3/../../.. -lhdf5 -lz -lgfortranbegin 
-lgfortran -lm -lfreetype -lGL -lGLU
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/javac -source 1.3 -target 1.3 
org/octave/ClassHelper.java org/octave/OctClassLoader.java 
org/octave/Octave.java org/octave/OctaveReference.java org/octave/Matrix.java 
org/octave/JDialogBox.java org/octave/DlgListener.java 
org/octave/TeXtranslator.java org/octave/TeXcode.java
rm -f octave.jar
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/jar cf octave.jar  
org/octave/ClassHelper.class  org/octave/OctClassLoader.class  
org/octave/Octave.class  org/octave/OctaveReference.class  
org/octave/Matrix.class  org/octave/JDialogBox.class  
org/octave/DlgListener.class  org/octave/TeXtranslator.class  
org/octave/TeXcode.class org/octave/images/question.png 
org/octave/images/error.png org/octave/images/warning.png 
org/octave/images/information.png org/octave/images/octave.png
make: Leaving directory `/tmp/oct-cRJv2l/java-1.2.8/src'
copyfile /tmp/oct-cRJv2l/java-1.2.8/src/__java__.h 
/tmp/oct-cRJv2l/java-1.2.8/src/octave.jar/tmp/oct-cRJv2l/java-1.2.8/inst
copyfile /tmp/oct-cRJv2l/java-1.2.8/src/__java__.oct 
/tmp/oct-cRJv2l/java-1.2.8/inst/i686-pc-linux-gnu-api-v43+


..but in the end, "pkg install" doesn't show java...


---------------------------------------------------------------------------

As root:
========

octave-3.3.55:5> pkg install -verbose -auto java-1.2.8_soren.tar.gz
warning: creating installation directory /usr/local/share/octave/packages


mkdir (/tmp/oct-iiZZxl)
untar (java-1.2.8_soren.tar.gz, /tmp/oct-iiZZxl)
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.2.4
checking for octave_config_info('canonical_host_type') in Octave... 
i586-mandriva-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/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/java
checking for javac... /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/javac
checking for jar... /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/jar
checking for Java version... 1.6.0_18
configure: creating ./config.status
config.status: creating Makeconf
 
  "$prefix" is /usr/local/share/octave/packages/java-1.2.8
  "$exec_prefix" is ${prefix}

octave commands will install into the following directories:
   m-files:   /usr/share/octave/3.2.4/site/m/octave-forge
   oct-files: 
/usr/lib/octave/3.2.4/site/oct/i586-mandriva-linux-gnu/octave-forge
   binaries:  /usr/lib/octave/3.2.4/site/exec/i586-mandriva-linux-gnu
alternatives:
   m-files:   /usr/share/octave/3.2.4/site/octave-forge-alternatives/m
   oct-files: 
/usr/lib/octave/3.2.4/site/octave-forge-alternatives/oct/i586-mandriva-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.2.4)
   mkoctfile:   mkoctfile for Octave 4
   java:        yes

find . -name NOINSTALL -print    # shows which toolboxes won't be installed

make: Entering directory `/tmp/oct-iiZZxl/java-1.2.8/src'
if [ "Xi386X" = "XX" ]; then \
                mkoctfile -DHAVE_OCTAVE_32 -v -DJAVAPKG_BUILD 
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include 
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include/linux -o __java__.oct 
__java__.cc ; \
        else \
                mkoctfile -DHAVE_OCTAVE_32 -v -DJAVAPKG_BUILD 
-DJAVA_ARCH=\\\"i386\\\" 
-DJAVA_HOME=\\\"/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0\\\" 
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include 
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include/linux -o __java__.oct 
__java__.cc ; \
        fi
g++ -c -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 
-fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 
-mtune=generic -fasynchronous-unwind-tables -DH5_USE_16_API 
-I/usr/include/freetype2 -fPIC -I/usr/include/octave-3.2.4 
-I/usr/include/octave-3.2.4/octave -mieee-fp -O2 -g -pipe -Wformat 
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector 
--param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic 
-fasynchronous-unwind-tables -I/usr/include/freetype2 
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include 
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/include/linux -DHAVE_OCTAVE_32 
-DJAVAPKG_BUILD -DJAVA_ARCH=\"i386\" 
-DJAVA_HOME=\"/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0\" __java__.cc -o 
__java__.o
g++ -shared -Wl,-Bsymbolic -o __java__.oct __java__.o -L/usr/lib/octave-3.2.4 
-loctinterp -loctave -lcruft -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro 
-Wl,-O1 -Wl,--build-id -llapack -lblas -lfftw3 -lfftw3f -lreadline -lncurses 
-ldl -lhdf5 -lz -lm -lfreetype -lz -L/usr/X11R6/lib -lGL -lGLU -L/usr/X11R6/lib 
-L/usr/lib/gcc/i586-manbo-linux-gnu/4.4.3 
-L/usr/lib/gcc/i586-manbo-linux-gnu/4.4.3/../../.. -lhdf5 -lz -lgfortranbegin 
-lgfortran -lm -lfreetype -lGL -lGLU
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/javac -source 1.3 -target 1.3 
org/octave/ClassHelper.java org/octave/OctClassLoader.java 
org/octave/Octave.java org/octave/OctaveReference.java org/octave/Matrix.java 
org/octave/JDialogBox.java org/octave/DlgListener.java 
org/octave/TeXtranslator.java org/octave/TeXcode.java
rm -f octave.jar
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/jar cf octave.jar  
org/octave/ClassHelper.class  org/octave/OctClassLoader.class  
org/octave/Octave.class  org/octave/OctaveReference.class  
org/octave/Matrix.class  org/octave/JDialogBox.class  
org/octave/DlgListener.class  org/octave/TeXtranslator.class  
org/octave/TeXcode.class org/octave/images/question.png 
org/octave/images/error.png org/octave/images/warning.png 
org/octave/images/information.png org/octave/images/octave.png
make: Leaving directory `/tmp/oct-iiZZxl/java-1.2.8/src'
copyfile /tmp/oct-iiZZxl/java-1.2.8/src/__java__.h 
/tmp/oct-iiZZxl/java-1.2.8/src/octave.jar/tmp/oct-iiZZxl/java-1.2.8/inst
copyfile /tmp/oct-iiZZxl/java-1.2.8/src/__java__.oct 
/tmp/oct-iiZZxl/java-1.2.8/inst/i686-pc-linux-gnu-api-v43+


octave-3.3.55:6> pkg list
Package Name  | Version | Installation directory
--------------+---------+-----------------------
        java *|   1.2.8 | /usr/local/share/octave/packages/java-1.2.8

octave-3.3.55:7> javaclasspath
error: javaclasspath: 
/usr/local/libexec/octave/packages/java-1.2.8/i686-pc-linux-gnu-api-v43+/__java__.oct:
 failed to load: 
/usr/local/libexec/octave/packages/java-1.2.8/i686-pc-linux-gnu-api-v43+/__java__.oct:
 undefined symbol: _ZNK17octave_base_value14function_valueEb
error: called from:
error:   /usr/local/share/octave/packages/java-1.2.8/javaclasspath.m at line 
49, column 14

^D
octave-3.3.55:4> error: 
/usr/local/libexec/octave/packages/java-1.2.8/i686-pc-linux-gnu-api-v43+/__java__.oct:
 failed to load: 
/usr/local/libexec/octave/packages/java-1.2.8/i686-pc-linux-gnu-api-v43+/__java__.oct:
 undefined symbol: _ZNK17octave_base_value14function_valueEb
error: ignoring octave_execution_exception while preparing to exit
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to