Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jun 2011 19:50:10 GMT
From:      chukharev@mail.ru
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/158305: math/scilab Error building the scilab manual file
Message-ID:  <201106301950.p5UJoAGX066045@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/158305; it has been noted by GNATS.

From: chukharev@mail.ru
To: "Rob Farmer" <rfarmer@predatorlabs.net>
Cc: bug-followup@freebsd.org
Subject: Re: ports/158305: math/scilab Error building the scilab manual file
Date: Thu, 30 Jun 2011 22:22:42 +0300

 I think, the reason is actually the famous "interoperability" of java.
 It was declared but...
 
 Answers to points you rise go first, then what I have found myself.
 
 On Thu, 30 Jun 2011 12:56:52 +0300, Rob Farmer <rfarmer@predatorlabs.net> wrote:
 
 > I setup a basic bashrc with the locale settings, then ran su. Running
 > locale as root showed what you have. I built it several times and
 > didn't get an error. I normally use openjdk6 but I tried diablo 1.6
 > too.
 
 I tried to install openjdk6. No change.
 
 > One thing I did notice, though was this warning:
 >
 > -- Building documentation (en_US) --
 > LANG=C SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1
 > ./bin/scilab-adv-cli -nb -nouserstartup -e "try
 > xmltojar([],[],'en_US');catch exit(-1);end;exit(0);"
 > Warning: Localization issue: Error while binding the domain from
 > /usr/obj/usr/ports/math/scilab/work/scilab-5.3.2/../locale/ or
 > /usr/obj/usr/ports/math/scilab/work/scilab-5.3.2/locale/: Switch to
 > the default language (English).
 >
 > Building the Scilab manual master document for en_US.
 > Building the scilab manual file [javaHelp]
 >
 > It goes away if you run make config and select NLS:
 > -- Building documentation (en_US) --
 > LANG=C SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1
 > ./bin/scilab-adv-cli -nb -nouserstartup -e "try
 > xmltojar([],[],'en_US');catch exit(-1);end;exit(0);"
 >
 > Building the Scilab manual master document for en_US.
 > Building the scilab manual file [javaHelp]
 
 Same effect here.
 
 > Maybe try that? I'm not sure what else would be wrong. There's not a
 > clear error message in the PR (just gmake saying something failed) -
 > is there one further back in the output?
 
 No error before.
 
 > I updated ports today and have pretty much the same packages as you:
 
 Yeah, close enough...
 
 
 I made a study, running the parts last executed in make, then gmake and so on.
 The answer is close to the end below - I guess it's that I use i386 on
 a 64-bit notebook, which is "vice versa" mentioned below.
 
 Commands are prepended by " $ ", first two are just showing my system.
 Output is shortened for brevity.
 
    $ uname -a
 FreeBSD vovavaio 8.2-STABLE FreeBSD 8.2-STABLE #32: Sat May 28 19:41:02 EEST 2011     root@vovavaio:/usr/obj/usr/src/sys/VOVA  i386
    $ dmesg | head -26
 Copyright (c) 1992-2011 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 	The Regents of the University of California. All rights reserved.
 FreeBSD is a registered trademark of The FreeBSD Foundation.
 FreeBSD 8.2-STABLE #32: Sat May 28 19:41:02 EEST 2011
       root@vovavaio:/usr/obj/usr/src/sys/VOVA i386
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: Intel(R) Core(TM)2 Duo CPU     P8700  @ 2.53GHz (2536.51-MHz 686-class CPU)
     Origin = "GenuineIntel"  Id = 0x1067a  Family = 6  Model = 17  Stepping = 10
     Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
     Features2=0x408e3fd<SSE3,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE>
     AMD Features=0x20100000<NX,LM>
     AMD Features2=0x1<LAHF>
     TSC: P-state invariant
 real memory  = 6442450944 (6144 MB)
 avail memory = 3116675072 (2972 MB)
 ACPI APIC Table: <Sony VAIO>
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 FreeBSD/SMP: 1 package(s) x 2 core(s)
    cpu0 (BSP): APIC ID:  0
    cpu1 (AP): APIC ID:  1
 ACPI Warning: 32/64X FACS address mismatch in FADT - 0xBDF17E40/0x00000000BDF17D40, using 32 (20101013/tbfadt-586)
 ioapic0 <Version 2.0> irqs 0-23 on motherboard
 kbd1 at kbdmux0
 acpi0: <Sony> on motherboard
 acpi0: [ITHREAD]
 
    $ cd /usr/ports/math/scilab/
    $ sudo make
 ...
    $ cd /usr/ports/math/scilab/work/scilab-5.3.2/
    $ sudo gmake -d -w doc ; echo $?
 ...
 Must remake target `doc'.
 Invoking recipe from Makefile:1721 to update target `doc'.
 -- Building documentation (en_US) --
 LANG=C SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 ./bin/scilab-adv-cli -nb -nouserstartup -e "try xmltojar([],[],'en_US');catch exit(-1);end;exit(0);"
 Putting child 0x283928b0 (doc) PID 74968 on the chain.
 Live child 0x283928b0 (doc) PID 74968
 Warning: Localization issue: Error while binding the domain from /usr/ports/math/scilab/work/scilab-5.3.2/../locale/ or /usr/ports/math/scilab/work/scilab-5.3.2/locale/: Switch to the default language (English).
 
 Building the Scilab manual master document for en_US.
 Building the scilab manual file [javaHelp]
 Reaping losing child 0x283928b0 PID 74968
 gmake: *** [doc] Error 1
 Removing child 0x283928b0 PID 74968 from chain.
 gmake: Leaving directory `/usr/ports/math/scilab/work/scilab-5.3.2'
 2
    $ sudo LANG=C SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 ./bin/scilab-adv-cli -nb -nouserstartup -e "try xmltojar([],[],'en_US');catch exit(-1);end;exit(0);" || echo $?
 Warning: Localization issue: Error while binding the domain from /usr/ports/math/scilab/work/scilab-5.3.2/../locale/ or /usr/ports/math/scilab/work/scilab-5.3.2/locale/: Switch to the default language (English).
 
 Building the Scilab manual master document for en_US.
 Building the scilab manual file [javaHelp]
 255
    $ sudo LANG=C SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 sh -x ./bin/scilab-adv-cli -nb -nouserstartup -e "try xmltojar([],[],'en_US');catch exit(-1);end;exit(0);" || echo $?
 ...
 + test -n ''
 + test -n ''
 + do_scilex -nb -nouserstartup -e 'try xmltojar([],[],'\''en_US'\'');catch exit(-1);end;exit(0);' -nw
 + /usr/ports/math/scilab/work/scilab-5.3.2/scilab-bin -nb -nouserstartup -e 'try xmltojar([],[],'\''en_US'\'');catch exit(-1);end;exit(0);' -nw
 Warning: Localization issue: Error while binding the domain from /usr/ports/math/scilab/work/scilab-5.3.2/../locale/ or /usr/ports/math/scilab/work/scilab-5.3.2/locale/: Switch to the default language (English).
 
 Building the Scilab manual master document for en_US.
 Building the scilab manual file [javaHelp]
 255
    $ SCI=`pwd` /usr/ports/math/scilab/work/scilab-5.3.2/scilab-bin -nb -nouserstartup -e 'try xmltojar([],[],'\''en_US'\'');catch exit(-1);end;exit(0);' -nw || echo $?
 Warning: Localization issue: Error while binding the domain from /usr/ports/math/scilab/work/scilab-5.3.2/../locale/ or /usr/ports/math/scilab/work/scilab-5.3.2/locale/: Switch to the default language (English).
 
 Could not load JVM dynamic library (libjava).
 Error: Shared object "libjvm.so" not found, required by "scilab-bin"
 If you are using a binary version of Scilab, please report a bug http://bugzilla.scilab.org/.
 If you are using a self-built version of Scilab, update the script bin/scilab to provide the path to the JVM.
 The problem might be related to SELinux. Try to deactivate it.
 Please also check that you are not trying to run Scilab 64 bits on a 32 bits system (or vice versa).
 
 Scilab cannot open JVM library.
 1
 
 -- 
 Vladimir Chukharev
 Tampere University of Technology



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106301950.p5UJoAGX066045>