LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 10-25-2009, 07:30 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Status of compilation of Scilab (v4.x and v5.1.1 ) under Slackware 13


Hi Forum

I have been trying to Install Scilab in Slackware 13 64.

Since there is no SlackBuild for this app, I downloaded the pre requirements as well as the source code from here : http://www.scilab.org/download/

I Installed some dependencies from SlackBuilds, like fftw, blas, lapack, and proceeded to configure without MATIO, UMFPACK and PVM support.

Since i want to build a Slack package, I defaulted the prefix to a build folder :

./configure --prefix=/home/alex/Packages/Scilab/Targ --without-matio --without-umfpack --without-pvm

the result is this : ( seems good though... )


Scilab is configured as follows. Please verify that this configuration
matches your expectations.

Host system type : x86_64-unknown-linux-gnu

Option Value
-------------------------------------------------------------------------
Shared libraries....... --enable-shared=yes yes
Static libraries....... --enable-static=no no
GNU ld................. --with-gnu-ld=yes yes
Enable debug .......... --enable-debug=no no
Enable debug C......... --enable-debug-C=no no
Enable debug C++....... --enable-debug-CXX=no no
Enable debug Fortran... --enable-debug-fortran=no no
Enable stop on warning. --enable-stop-on-warning=

Compiler Configuration:
Intel (--with-intelcompilers) .... =
GNU gcc (--with-gcc) ............. =
GNU Fortran 77 (--with-g77) ...... =
GNU Fortran 95 (--with-gfortran) . =

Options:
Use PVM (--without-pvm) .......................... = no
PVM include (--with-pvm-include) ................. =
PVM library (--with-pvm-library) ................. =
Compile with Ocaml (--without-ocaml) ............. =
Do not use TCL/TK (--without-tk) ................. =
TCL include (--with-tcl-include) ................. =
TCL library (--with-tcl-library) ................. =
TK include (--with-tk-include) ................... =
TK library (--with-tk-library) ................... =
Install XML Help (--with-install-help-xml) ....... =
Make the package relocatable (--enable-relocatable)= no
Use FFTW (--without-fftw) ........................ =
Use MATIO (--without-matio) ...................... = no

Scicos enable

Ocaml Configuration (for Modelica compiler):
OCAMLC ............. = ocamlc
OCAMLOPT ........... = ocamlopt
OCAMLDEP ........... = ocamldep

Not using PVM

FFTW Configuration:
FFTW LIBS .......... = -lfftw3
FFTW CFLAGS ........ =

Not using MATIO

Not using UMFPACK

BLAS/LAPACK/ATLAS Configuration:
BLAS LIBS ............. = -lblas
BLAS TYPE ............. = Generic Blas
LAPACK LIBS ........... = -llapack
LAPACK TYPE ........... = Library -llapack


Gettext/localization configuration:
xgettext ............... = /usr/bin/xgettext
msgfmt ................ = /usr/bin/msgfmt
msgfmt_opts ............ =
msgcat ................ = /usr/bin/msgcat

Docbook XSL path ....... = /home/alex/Packages/Scilab/scilab-5.1.1/thirdparty/docbook/
Batik (SVG) ............ = /home/alex/Packages/Scilab/scilab-5.1.1/thirdparty/batik-all-1.7.jar
Saxon XSLT ............. = /home/alex/Packages/Scilab/scilab-5.1.1/thirdparty/saxon.jar
FOP (XML => PDF) ....... = /home/alex/Packages/Scilab/scilab-5.1.1/thirdparty/fop.jar
Jeuclid (MathML) ....... = /home/alex/Packages/Scilab/scilab-5.1.1/thirdparty/jeuclid-core.jar
Commons I/O ............ = /home/alex/Packages/Scilab/scilab-5.1.1/thirdparty/commons-io.jar
XML graphics commons ... = /home/alex/Packages/Scilab/scilab-5.1.1/thirdparty/xmlgraphics-commons-1.3.1.jar
XML commons external ... = /home/alex/Packages/Scilab/scilab-5.1.1/thirdparty/xml-apis-ext.jar

Java Configuration:
JAVA_HOME ........... = /usr/lib64/java
JAVAC ............... = /usr/lib64/java/bin/javac
JAVA_CLASSPATH ...... =
JAVA_VERSION ........ = 1.5
JAVAC_FLAGS ......... = -g
JAVA_JNI_INCLUDE .... = -I/usr/lib64/java/include -I/usr/lib64/java/include/linux
JAVA_JNI_LIBS ....... = -L/usr/lib64/java/jre/lib/amd64 -ljava -lverify -L/usr/lib64/java/jre/lib/amd64/server -ljvm
JAVA_JNI_LIBS_PRELOAD =
JAVA ................ = /usr/lib64/java/bin/java
JAR ................. = /usr/lib64/java/bin/jar
ANT ................. = /usr/bin/ant

TCL/TK configuration:
TK_INC_PATH ........ = -I/usr/include
TCL_INC_PATH ....... = -I/usr/include
TCLTK_LIBS ......... = -L/usr/lib64 -ltk8.5 -L/usr/lib64 -ltcl8.5 -ldl
TCL_SERIAL_VERSION . = 8.5.7
TK_SERIAL_VERSION .. = 8.5.7

XML configuration:
XML_FLAGS .......... = -I/usr/include/libxml2
XML_LIBS ........... = -lxml2 -lz -lm
XML_VERSION ........ = 2.7.3

PCRE configuration:
PCRE_CFLAGS ........ =
PCRE_LIBS .......... = -L/usr/lib64 -lpcreposix -lpcre
PCRE_VERSION ....... = 7.7

SWIG Configuration:
SWIG generation disabled

GIWS Configuration:
GIWS generation disabled

Libtool config:
objext .............. = o
libext (static) ..... = a
shrext_cmds ......... = .so
exeext .............. =

Compilation paths:
srcdir .............. = .
srcdir_full ......... = /home/alex/Packages/Scilab/scilab-5.1.1
builddir ............ = /home/alex/Packages/Scilab/scilab-5.1.1

Platform informations:
host ........... = x86_64-unknown-linux-gnu
host_cpu ....... = x86_64
host_vendor .... = unknown
host_os ... .... = linux-gnu
hostname ....... = iskandhar
CPU 64 bits .... = true

Options used to compile and link:
prefix ......... = /home/alex/Packages/Scilab/Targ
localedir ...... = ${datarootdir}/locale
VERSION ........ = 5
CC ............. = gcc
CFLAGS ......... = -g -O2 -DNDEBUG -fno-stack-protector -DNARROWPROTO -m64 -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/
PCFLAGS ........ =
DEFS ........... = -DHAVE_CONFIG_H
LD ............. = /usr/x86_64-slackware-linux/bin/ld -m elf_x86_64
LDFLAGS ........ =
LIBS ........... =
CXX ............ = g++
CXXFLAGS ....... = -g -O2 -DNDEBUG -fno-stack-protector -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/
F77 ............ = g77
FFLAGS ......... = -g -O2 -DNDEBUG -m64 -fPIC -I$(top_srcdir)/modules/core/includes/
F77_LDFLAGS .... =
TERMCAP_LIB .... = -lncurses


bash-3.1#



... but when i type "make all", it does not build the libs and executables... and fails... like this :

bash-3.1# make all
Making all in libs
make[1]: Entering directory `/home/alex/Packages/Scilab/scilab-5.1.1/libs'
Making all in MALLOC
make[2]: Entering directory `/home/alex/Packages/Scilab/scilab-5.1.1/libs/MALLOC'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../modules/core/includes -g -O2 -DNDEBUG -fno-stack-protector -DNARROWPROTO -m64 -I../../modules/core/includes/ -I../../libs/MALLOC/includes/ -I../../modules/localization/includes/ -MT libscimalloc_la-sci_mem_alloc.lo -MD -MP -MF .deps/libscimalloc_la-sci_mem_alloc.Tpo -c -o libscimalloc_la-sci_mem_alloc.lo `test -f 'src/sci_mem_alloc.c' || echo './'`src/sci_mem_alloc.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../../modules/core/includes -g -O2 -DNDEBUG -fno-stack-protector -DNARROWPROTO -m64 -I../../modules/core/includes/ -I../../libs/MALLOC/includes/ -I../../modules/localization/includes/ -MT libscimalloc_la-sci_mem_alloc.lo -MD -MP -MF .deps/libscimalloc_la-sci_mem_alloc.Tpo -c src/sci_mem_alloc.c -fPIC -DPIC -o .libs/libscimalloc_la-sci_mem_alloc.o
0 entries
mv -f .deps/libscimalloc_la-sci_mem_alloc.Tpo .deps/libscimalloc_la-sci_mem_alloc.Plo
mv: cannot stat `.deps/libscimalloc_la-sci_mem_alloc.Tpo': No such file or directory
make[2]: *** [libscimalloc_la-sci_mem_alloc.lo] Error 1
make[2]: Leaving directory `/home/alex/Packages/Scilab/scilab-5.1.1/libs/MALLOC'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alex/Packages/Scilab/scilab-5.1.1/libs'
make: *** [all-recursive] Error 1

This is unexpected... ;-(... I am clueless here...




About the Scilab-4.x slackbuild... i changed the architecture from i386 to x86_64, and tried to build the package, but it asks me for tcl 8.4...

checking for header file tcl.h... found in /usr/include
checking if tcl is version 8.4 or later... (8.5) yes
checking for tcl library tcl8.5... configure: error: header file tcl.h has been found for 8.4* but no corresponding tcl library (ie libtcl8.4.so)
bash-3.1#


Where can I change the "nature" of the tcl the slackbuild asks for...?

Thanks in advance

BRGDS

Alex
 
Old 10-26-2009, 08:53 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,282

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Scilab 5.1.1
Quote:
`.deps/libscimalloc_la-sci_mem_alloc.Tpo': No such file or ...
..... Investigating, what's done with '.Tpo's .....
cd scilab-5.1.1/
grep .Tpo ./*
result : Makefile.in → → " mv -f " → → .... getting the line numbers ....
grep -n "mv -f" Makefile.in
Code:
573:@am__fastdepCC_TRUE@        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
580:@am__fastdepCC_TRUE@        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
587:@am__fastdepCC_TRUE@        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
594:@am__fastdepCC_TRUE@        mv -f $(DEPDIR)/scilab_bin-mainscic.Tpo $(DEPDIR)/scilab_bin-mainscic.Po
601:@am__fastdepCC_TRUE@        mv -f $(DEPDIR)/scilab_bin-mainscic.Tpo $(DEPDIR)/scilab_bin-mainscic.Po
608:@am__fastdepCC_TRUE@        mv -f $(DEPDIR)/scilab_static_bin-mainscic.Tpo $(DEPDIR)/scilab_static_bin-mainscic.Po
615:@am__fastdepCC_TRUE@        mv -f $(DEPDIR)/scilab_static_bin-mainscic.Tpo $(DEPDIR)/scilab_static_bin-mainscic.Po
" mv -f " : a problem , if <file>.Tpo is used more than once.

Suggest : backup Makefile.in, and edit the seven lines :
replace ' mv -f ' with ' cp -a '.
..... and 'make' runs OK, no errors.
If it's a Slackbuild : extract the tarball, edit Makefile.in
and "pack it up" again.
...........
...........

Scilab 4.1.2
Tcl-8.4 , tk-8.4 works OK with Scilab 4.1.2 and Scilab 5.1.1 .
Tcl-8.6 , tk-8.6 works with neither.

I don't see any problems in tcl.h , Slackware 13.
The default is tcl tk 8.5.7 , did you change it ?
8.5.7 is supposed to work, I think.
Could it be an x86_64 issue ? ( I use x86.)

Suggest : remove tcl tk tclx and use packages tcl-8.4.18,
tk-8.4.18 from Slackware 12.1 , or recompile 8.4.18's .

The test compiling was made on Mandriva 2009.1, which has all
dependencies in the repos.
( I used tcl, tk 8.4.13 from Mandriva 2007.)
The installable 'scilab-5.1' in Mandriva 2009.1 uses tcl-8.6,
tk-8.6, so I guess there is some patching in the src.rpm ,
scilab-5.1-3mdv2009.1.src.rpm
http://mirrors.evolva.ro/mandriva/of...2009.1.src.rpm
.....

Last edited by knudfl; 10-26-2009 at 08:57 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
scilab code sivaprasad84 Debian 1 08-17-2009 08:39 AM
SciLab GUI randomman Linux - General 1 08-28-2008 02:57 AM
Error during compilation of X-WIndows on slackware-10.2 tooparam Linux - General 2 11-27-2005 11:05 PM
Slackware current status davidsrsb Slackware 2 10-22-2003 09:42 PM
Slackware 9.0 kernel compilation arggghh vurtuali Slackware 3 06-16-2003 03:03 PM


All times are GMT -5. The time now is 06:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration