opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-smalltalk@gnu.org 30 May 2012 • 6:23AM -0400

[Help-smalltalk] DLD and linker scripts
by Wolfgang Dann

REPLY TO AUTHOR
 
REPLY TO GROUP




It would be fine if the DLD could handle linker scripts,
or at least would generate an appropriate error message.

In Debian and Gentoo libncurses.so is such a script.

At the moment this happens in stable gst:

st> PackageLoader fileInPackage: 'NCurses'
"Global garbage collection... done"
Loading package NCurses
PackageLoader
st> NCWindow helloWorld
Object: CFunctionDescriptor new: 1 "<0x7f3fb73c2fe0>" error: Invalid C
call-out initscr
SystemExceptions.CInterfaceError(Exception)>>signal (ExcHandling.st:254)
SystemExceptions.CInterfaceError class(Exception class)>>signal:
(ExcHandling.st:161)
CFunctionDescriptor(CCallable)>>callInto: (CCallable.st:165)
NCWindow class>>primInitScr (NCurses.star#VFS.ZipFile/ncurses.st:1)
NCWindow class>>initscr (NCurses.star#VFS.ZipFile/ncurses.st:1360)
NCWindow class>>helloWorld (NCurses.star#VFS.ZipFile/ncurses.st:2740)
UndefinedObject>>executeStatements (a String:1)
nil

If I load the real library it succeeds:
st> DLD addLibrary: 'libncurses.so.5'
DLD
st> NCWindow helloWorld
NCWindow
st>

Cheers,
Wolfgang



_______________________________________________
help-smalltalk mailing list
help-smalltalk@gnu....
https://lists.gnu.org/mailman/listinfo/help-smalltalk

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.