I am trying to get our wrapper for Scilab working, but so far no luck.  Scilab 5.5.0 release on both OSX and linux (ubuntu).  On both OSX and linux I am able to build swig+scilab with something like (on ubuntu)

git clone https://github.com/swig/swig.git -b gsoc2012-scilab swig-scilab
cd swig-scilab
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz
Tools/pcre-build.sh
./autogen.sh
./configure --disable-ccache --with-scilab-inc=/home/ian/scilab-5.5.0/include --with-scilab=/home/ian/scilab-5.5.0/bin/scilab-cli  --prefix=/home/ian/Desktop/swig-bin
make
make install

then I do a cd into Examples/scilab/simple and do a

ian@ian-VirtualBox:~/Desktop/swig-scilab/Examples/scilab/simple$ ~/Desktop/swig-bin/bin/swig -scilab example.i

which generates the builder.sce which I run and it generates the libexample.so file.  I try to do an exec runme.sci , but when I do I get a

nlibext(), 'libexample', list_functions)
                                         !--error 236
addinter: The shared archive was not loaded: /home/ian/Desktop/swig-scilab/Examples/scilab/simple//libexample.so: undefined symbol: Foo
at line      20 of exec file called by :   
exec loader.sce;
at line       3 of exec file called by :   
exec runme.sci

so I did a quick nm libsample.sci, and we can see that the Foo symbol is definitely exported:

ian@ian-VirtualBox:~/Desktop/swig-scilab/Examples/scilab/simple$ nm libexample.so
                 U assignOutputVariable
00000000002052d0 B __bss_start
0000000000205304 b c1_local
                 U checkInputArgument
                 U checkOutputArgument
0000000000205308 b c_local
                 U com_
00000000002052d0 b completed.6972
                 U createPointer
                 U createScalarDouble
                 U createSingleString
                 w __cxa_finalize@@GLIBC_2.2.5
0000000000001440 t deregister_tm_clones
00000000000038b3 t direct_gateway
00000000000014b0 t __do_global_dtors_aux
0000000000204dd0 t __do_global_dtors_aux_fini_array_entry
0000000000205140 d __dso_handle
0000000000204de0 d _DYNAMIC
00000000002052d0 D _edata
0000000000205310 B _end
0000000000003856 T example_Init
0000000000003a3c T _fini
                 U floor@@GLIBC_2.2.5
00000000002052e0 b fname
                 U Foo
00000000000032a6 T Foo_get
000000000000337c T Foo_set
00000000000014f0 t frame_dummy
0000000000204dc8 t __frame_dummy_init_array_entry
0000000000004800 r __FRAME_END__
                 U free@@GLIBC_2.2.5
                 U gcd
                 U getAllocatedSingleString
...

What's up?  Its the same exact problem on OSX.