help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] DLD and linker scripts


From: Wolfgang Dann
Subject: [Help-smalltalk] DLD and linker scripts
Date: Wed, 30 May 2012 00:23:16 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]