[scilab-Users] scilab 5.1.1 compilation under Solaris 10

Langella Raphael raphael.langella at steria.cnes.fr
Tue Sep 15 18:01:28 CEST 2009


> -----Message d'origine-----
> De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] 
> > Linux 64 bits : doesn't work at all (no window, no error, nothing)
> What kind of problems do you have with Linux 64 bits ? There 
> is many people in the team and users who are working on 
> Scilab with a 64 bits Linux without any problems.

I've already reported it. Under RHEL ES 4u5 x86_64, when I try to start
scilab 64 bits, nothing happens. There is no error, no window opens and
the shell doesn't return. I've tried to compile it, I've tried the 5.1.1
binaries and the nightly builds, I always get the same result.


> > Do you want me to submit again all the changes I had to do 
> to make it work under Solaris 9/10 ?
> It would be great. Many thanks

Those 2 are needed for Solaris 9 and 10

in modules/scicos_blocks/src/c/evaluate_expr.c
line 35, add :
# define isnan(x) \
	(sizeof (x) == sizeof (long double) ? isnan_ld (x) \
	: sizeof (x) == sizeof (double) ? isnan_d (x) \
	: isnan_f (x))
static inline int isnan_f  (float       x) { return x != x; }
static inline int isnan_d  (double      x) { return x != x; }
static inline int isnan_ld (long double x) { return x != x; }

# define isinf(x) \
	(sizeof (x) == sizeof (long double) ? isinf_ld (x) \
	: sizeof (x) == sizeof (double) ? isinf_d (x) \
	: isinf_f (x))
static inline int isinf_f  (float       x) { return isnan (x - x); }
static inline int isinf_d  (double      x) { return isnan (x - x); }
static inline int isinf_ld (long double x) { return isnan (x - x); }


in bin/scilab, line 365 :
"sparc" | "sun4u")

Those 2 are only for Solaris 9

in ./modules/core/src/c/getdynamicdebuginfo.c, delete line 28:
#include <getopt.h>

in ./modules/fileio/src/c, edit files mput.c, mputi.c, mget.c and
mgeti.c.
Line 16 or 17, replace
#include <stdint.h>
by
#include <inttypes.h>



More information about the users mailing list