<br><font size=2 face="sans-serif">Followup to this note:</font>
<br><font size=2 face="sans-serif">===<br>
I've recently installed 5.4.1 running on linux mint debian, "olivia".
  I posted recently about issues related</font><font size=3> </font><font size=2 face="sans-serif"><br>
to keyboard focus when running on a headless server via ssh -Y.  I
found a workaround and am struggling on.</font><font size=3> </font>
<br><font size=2 face="sans-serif">I cannot figure out how to get dynamic
linking to work as it used to. </font>
<br><font size=2 face="sans-serif">===</font>
<br>
<br><font size=2 face="sans-serif">I figured out the dynamic linking intersci
issues.</font>
<br><font size=2 face="sans-serif">The short answer is, use the skeleton
toolbox </font>
<br><font size=2 face="sans-serif">scilab-5.4.1/contrib/toolbox_skeleton</font>
<br><font size=2 face="sans-serif">as a sample.</font>
<br>
<br><font size=2 face="sans-serif">There are various things to figure out
-- the trickiest was this -- </font>
<br><font size=2 face="sans-serif">Intersci may not be officially supported,
but it's there if you turn on the support.</font>
<br><font size=2 face="sans-serif">You have to use intersci  manually
(or maybe there's some other hack to the makefile?)</font>
<br><font size=2 face="sans-serif">and it only makes c language interfaces
- which is fine.</font>
<br><font size=2 face="sans-serif">The generated code won't compile unless
you utter a particular incantation -- </font>
<br><font size=2 face="sans-serif">the "setenv" line below.  toradiali.c
is the code generated by intersci.</font>
<br><font size=2 face="sans-serif">My code is toradial.f.</font>
<br>
<br><font size=2 face="sans-serif">(If you want to see how painful it is
to do this the "new" way, poke around in the toolbox,</font>
<br><font size=2 face="sans-serif">and look at the various interface routines.</font>
<br><font size=2 face="sans-serif">Also this was somewhat useful... obviously
a lot of work to write.  Thank you Michael.</font>
<br><font size=2 face="sans-serif">  http://perso.telecom-paristech.fr/~blanchet/FCFD/Scilab/docs/sciextensions-v0.2.pdf
 )</font>
<br>
<br>
<br><font size=2 face="sans-serif">builder_gateway_fortran.sce:</font>
<br><font size=2 face="sans-serif">===</font>
<br><font size=2 face="sans-serif">// This file is released under the 3-clause
BSD license. See COPYING-BSD.</font>
<br>
<br><font size=2 face="sans-serif">function builder_gw_fortran()</font>
<br><font size=2 face="sans-serif">    setenv("__USE_DEPRECATED_STACK_FUNCTIONS__","YES");</font>
<br><font size=2 face="sans-serif">libname="sfhtst1"  ;
// library name</font>
<br><font size=2 face="sans-serif">names=  ["fortran_sum","sci_fsum";
"toradial","intstoradial"]; // subroutine, interface
pairs</font>
<br><font size=2 face="sans-serif">files=["sci_fsum.c","toradiali.c"]
; // The interface sources, maybe?</font>
<br><font size=2 face="sans-serif">  tbx_build_gateway(libname,names,files,
..</font>
<br><font size=2 face="sans-serif">           
      get_absolute_file_path("builder_gateway_fortran.sce"),
..</font>
<br><font size=2 face="sans-serif">           
      ["../../src/fortran/libfsum"]);</font>
<br><font size=2 face="sans-serif">endfunction</font>
<br>
<br><font size=2 face="sans-serif">builder_gw_fortran();</font>
<br><font size=2 face="sans-serif">clear builder_gw_fortran; // remove
builder_gw_fortran on stack</font>
<br><font size=2 face="sans-serif">===</font>
<br><font size=2 face="sans-serif">The "tbx_* routines copy everything
to TMPDIR so that's where you look to see what's going on.</font>
<br>
<br><font size=2 face="sans-serif">Since the .desc file that interface.sci
uses to generate the c code seems to completely define the interface,</font>
<br><font size=2 face="sans-serif">I do hope that the swig solution that
is threatened for version 6 </font>
<br><font size=2 face="sans-serif">will use that file as input .</font>
<br>
<br><font size=2 face="sans-serif">Steve</font>
<br>