I think that OSv is very much Linux compatible in that case so may things 
from this article I found do apply 
- http://www.kaizou.org/2015/01/linux-libraries/.

On Tuesday, November 28, 2017 at 10:08:50 AM UTC-5, Waldek Kozaczuk wrote:
>
> I meant -fPIC.
>
> On Tuesday, November 28, 2017 at 9:35:37 AM UTC-5, Waldek Kozaczuk wrote:
>>
>> Hi,
>>
>> I think that you should be able to have a.so resolve func_b() from b.so 
>> but it will depend on where b.so is placed. For sure the so have to be 
>> position independent (-fPIE option). Can you send us error you are seeing 
>> (I presume you are).
>>
>> As far as Java goes you either use -jar and then you can only point to 
>> single jar (this is simply how java works) or use -cp to point to list of 
>> directories or jar. You cannot do java -jar a.jar -cp b.jar. You either 
>> have to combine b.jar with a.jar or do java -cp a.jar:b.jar 
>> <name-of-class-with-main>.
>>
>> Hope it helps,
>> Waldek
>>
>> On Tuesday, November 28, 2017 at 6:56:45 AM UTC-5, wang Yu wrote:
>>>
>>> i am fresh man in osv, and i have a question about it; 
>>> if we have some dyminic library .so, i want to how to run? 
>>> for example, a.so have main enter, and it want to call the func_b() 
>>> in b.so(we don't want to recompile it) 
>>> a.c --->a.so 
>>> extern void func_b(void) 
>>> void main(void) 
>>> { 
>>>   ... 
>>>    func_b(); 
>>>    ... 
>>> } 
>>>
>>> b.c--->b.so 
>>> void func_b(void) 
>>> { 
>>>   .... 
>>> } 
>>>
>>> i have edit  module.py  like this 
>>>
>>> ``` 
>>> from osv.modules import api 
>>>
>>> default = api.run('/a.so') 
>>> ```` 
>>> usr.manifest 
>>> a.so:${MODULE_DIR}/a.so 
>>> b.so:${MODULE_DIR}/b.so 
>>>
>>> but when running, it can't look func_b() 
>>>
>>> and i have the same question about server jar 
>>> a.jar b.jar c.jar 
>>> a.jar have the main, it depend on b.jar and c.jar 
>>> i use like this cannot find b.jar and c.jar's function 
>>> default = api.run("/java.so -jar a.jar "); 
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to