Alexander K. Hansen wrote:
> I wondered if any of the general fink user community or the package
> maintainer have gotten this when trying to use the editor (scipad) from
> scilab(-atlas)-4.1-1001:
>
> -->ld returned bad status: 100
> ld returned bad status: 100
> Warning: Error loading /sw/lib/libtk8.4.dylib :"link: the shared archive
> was not loaded" !--error 4
> undefined variable : tklib
> at line 27 of function gettklib called by :
> line 17 of function scipad called by :
> scipad();(1)
> while executing a callback
>
> I made sure that libtk8.4 was indeed present, and I tried rebuilding
> scilab. When I looked at the gettklab function I tried running the link
> command manually, and I got the same result. Could this be due to
> differences between Apple and GNU ld, maybe?
>
>
I've done a bit more research on this myself. I use a third-party
NetCDF interface that links to a local copy of the library from
netcdf-shlibs which has been renamed to use a .so extension. I did this
because I figured that the interface was written for Linux, and the
author wouldn't bother to include the .dylib option. However, as a
test, I tried using scilab's "link" command on libnetcdf.4.dylib, and my
identical copy, libnetcdf.so:
-->link("/Users/hansen/scilab/Darwin/libnetcdf.so")
shared archive loaded
Link done
ans =
2.
-->link("/sw/lib/libnetcdf.4.dylib")
ld returned bad status: 100
!--error 236
link: the shared archive was not loaded
$ ls -l /Users/hansen/scilab/Darwin/libnetcdf.so /sw/lib/libnetcdf.4.dylib
-rwxr-xr-x 1 hansen hansen 185244 May 10 14:14
/Users/hansen/scilab/Darwin/libnetcdf.so
-rwxr-xr-x 1 root admin 185244 May 8 07:28 /sw/lib/libnetcdf.4.dylib
And by making a symbolic link libtk8.4.so->libtk8.4.dylib I was able to
get the link command to work. Apparently scilab only fundamentally
knows how to link to .so (and .dll) files.
--
Alexander K. Hansen
Fink User Liaison/Documenter
akh AT finkproject DOT org
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users