Hi,

I am trying to write a gnustep/Etoile binding  for gnu-smalltalk.
I don't know if this ML is the right one so just let me know.

Here is the thing:

When writing the binding for Cocoa on OSX I can dynamically load framework with 
libtool:

lt_dlopenext ("Foundation.framework/Foundation");
...

I also need the Objective-C runtime for method like objc_getClass.
Currently when I load the objc library it load  /usr/lib/libobjc.so.2, I guess 
this is not the right one.
Using gdb it shows that the symbol does not exist.

(gdb) info address objc_getClass
No symbol "objc_getClass" in current context.
(gdb) info sharedlibrary
>From        To          Syms Read   Shared Object Library
0x003c2850  0x003dad0f  Yes         /lib/ld-linux.so.2
0x00118220  0x00185178  Yes         /usr/local/bin/../lib/libgst.so.7
0x001ba920  0x001bb978  Yes (*)     /lib/libsigsegv.so.0
0x00359000  0x0035c658  Yes (*)     /usr/lib/libffi.so.5
0x001c95d0  0x001ea438  Yes (*)     /lib/libreadline.so.6
0x044cea20  0x044d3438  Yes         /usr/lib/libltdl.so.7
0x00580640  0x0058cdc8  Yes         /lib/libpthread.so.0
0x0059aa60  0x0059ba88  Yes         /lib/libdl.so.2
0x005a28c0  0x005a6928  Yes         /lib/librt.so.1
0x005b04b0  0x005cabb8  Yes         /lib/libm.so.6
0x003fcbf0  0x0051f104  Yes         /lib/libc.so.6
0x05451d00  0x0545c768  Yes (*)     /lib/libtinfo.so.5
0x001f8340  0x001f8498  Yes (*)     /usr/local/bin/../lib/libgstobjc.so
0x001feab0  0x0020c518  Yes (*)     /usr/lib/libobjc.so.2
0x00722f90  0x00739818  Yes (*)     /lib/libgcc_s.so.1


How could I do that with Etoile/GNUstep?

Thanks for any advices.

Mathieu


      

_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à