Right I tried it again with the following configure command:
./configure --host=arm-linux --with-g77 --x-libraries=/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib --x-includes=/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/include --without-pvm --without-xaw3d --without-local-xaw
I get the following error:
making all in routines/int...
make[2]: Entering directory `/home/enpsgp/Desktop/temp/scilab-3.0/routines/int'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/enpsgp/Desktop/temp/scilab-3.0/routines/int'
making all in routines/xsci...
make[2]: Entering directory `/home/enpsgp/Desktop/temp/scilab-3.0/routines/xsci'
armv5tel-cacko-linux-gcc -g -Wall -Dlinux -fwritable-strings -DNARROWPROTO -I/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/include -I/usr/include -I/usr/include -c -o jpc_inter.o jpc_inter.c
jpc_inter.c: In function `sci_tk_activate':
jpc_inter.c:146: warning: implicit declaration of function `Cout'
jpc_inter.c: In function `basic_scilab_mask':
jpc_inter.c:201: error: impossible constraint in `asm'
jpc_inter.c:207: error: impossible constraint in `asm'
make[2]: *** [jpc_inter.o] Error 1
make[2]: Leaving directory `/home/enpsgp/Desktop/temp/scilab-3.0/routines/xsci'
making all in routines/tksci...
make[2]: Entering directory `/home/enpsgp/Desktop/temp/scilab-3.0/routines/tksci'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/enpsgp/Desktop/temp/scilab-3.0/routines/tksci'
make[1]: Leaving directory `/home/enpsgp/Desktop/temp/scilab-3.0/routines'
linking
armv5tel-cacko-linux-g77: /home/enpsgp/Desktop/temp/scilab-3.0/libs/xsci.a: No such file or directory
make: *** [bin/scilex] Error 1
The lines in question in the jpc_inter.c file are as follows:
void sci_tk_activate(void)
{
Display *dpy = (Display *) NULL;
Widget toplevel = (Widget) NULL;
Cout("You have started Scilab in a mode in which TK is not initialized.\n"); // line ************** 146 **************
Cout("Trying to initialize \n");
DisplayInit("",&dpy,&toplevel);
inittk();
BasicScilab = 0;
basic_scilab_mask(&dpy);
flushTKEvents();
}
static int Xsocket=0,fd_in=0,fd_out=0,fd_err=0;
static void basic_scilab_mask( Display **dpy)
{
Xsocket = ConnectionNumber(*dpy);
fd_in = fileno(stdin);
fd_out = fileno(stdout);
fd_err = fileno(stderr);
FD_ZERO(&Select_mask_ref); // ************** Line 201 **************
FD_SET(fd_in , &Select_mask_ref);
FD_SET(Xsocket, &Select_mask_ref);
#ifdef WITH_TK
if ( XTKsocket != 0 ) FD_SET(XTKsocket, &Select_mask_ref);
#endif
FD_ZERO(&Write_mask_ref); // ************** Line 207 **************
/* the two next FD_SET causes select not to wait
*
*/
/* FD_SET(fd_out,&Write_mask_ref);
FD_SET(fd_err,&Write_mask_ref);*/
max_plus1 = Max(fd_in,Xsocket);
max_plus1 = Max(fd_out,max_plus1);
max_plus1 = Max(fd_err,max_plus1);
#ifdef WITH_TK
max_plus1 = Max(XTKsocket,max_plus1);
#endif
max_plus1++;
}
I'm not sure what this FD_ZERO function(?) does, nor where it would be defined (it only appears in .c files).
Any help would be appreciated.
Cheers,
Si