Scilab compilation cannot find header files.

Jonathan Blanchard BlanchardJ at ieee.org
Sun Sep 7 19:28:35 CEST 2008


When compiling Scilab if I do not build Scilab inside it's source tree
some part of the compilation process do not correctly find some
included files. For example when compiling misc.c which include
machine.h the following error message is generated.

gmake[2]: Entering directory `/export/home/jo/build/scilab/libs/libst'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I. -I/export/home/jo/build/scilab/scilab-5.0-rc1/libs/libst
-I../../modules/core/includes     -O2 -DNDEBUG -DSVR4 -DSYSV -Dsolaris
-I/export/home/jo/build/scilab/scilab-5.0-rc1/libs/MALLOC/includes/
-I/export/home/jo/build/scilab/scilab-5.0-rc1/modules/localization/includes/
-MT misc.lo -MD -MP -MF .deps/misc.Tpo -c -o misc.lo
/export/home/jo/build/scilab/scilab-5.0-rc1/libs/libst/misc.c
 gcc -DHAVE_CONFIG_H -I.
-I/export/home/jo/build/scilab/scilab-5.0-rc1/libs/libst
-I../../modules/core/includes -O2 -DNDEBUG -DSVR4 -DSYSV -Dsolaris
-I/export/home/jo/build/scilab/scilab-5.0-rc1/libs/MALLOC/includes/
-I/export/home/jo/build/scilab/scilab-5.0-rc1/modules/localization/includes/
-MT misc.lo -MD -MP -MF .deps/misc.Tpo -c
/export/home/jo/build/scilab/scilab-5.0-rc1/libs/libst/misc.c  -fPIC
-DPIC -o .libs/misc.o
In file included from
/export/home/jo/build/scilab/scilab-5.0-rc1/libs/libst/misc.c:14:
./../../modules/core/includes/machine.h:459:22: error: PATH_MAX.h: No
such file or directory
./../../modules/core/includes/machine.h:462:18: error: BOOL.h: No such
file or directory
./../../modules/core/includes/machine.h:465:20: error: PARAMS.h: No
such file or directory

I use the following build script :

export LDFLAGS="-R $HOME/local/gcc/lib -R $HOME/local/ncurses/lib -R
$HOME/local/pcre/lib -R $HOME/local/libxml/lib"
export LD_OPTIONS=$LDFLAGS
export PATH=$HOME/local/gcc/bin:$PATH

./scilab-5.0-rc1/configure --build=i386-pc-solaris2.11
--prefix=$HOME/local/scilab LDFLAGS="-R $HOME/local/gcc/lib -R
$HOME/local/ncurses/lib -R $HOME/local/pcre/lib -R
$HOME/local/libxml/lib" --without-gui --without-javasci
--with-libxml2=$HOME/local/libxml --with-pcre=$HOME/local/pcre
--without-matio --without-tk
--srcdir=$HOME/build/scilab/scilab-5.0-rc1
time gmake

Any insight on this situation would be appreciated as it is kind of
annoying. A workaround is to add the quite a few include path to the
CC env. var. but there is around 10 of them.

Jonathan Blanchard



More information about the dev mailing list