Lisp HUG Maillist Archive

deliverying an executable with foreign object files included

List,

Is it possible to deliver an executable which would "contain" (and
make use of functions defined in) a compiled object (i.e. "foo.o") or
code from a static library (i.e. "libfoo.a"). The assumption here is
that we do not own either the source that allows the generation of
foo.o or libfoo.a, yet we want to use (fli:define-foreign-functions)
functions within this object.


Thank you.

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: deliverying an executable with foreign object files included

You can link to any shared object. Look at manardb which uses a couple of libs.
​

​

-------- Original Message --------
 On February 1, 2018 5:28 PM, Jerome Ibanes <jibanes@gmail.com> wrote:

>List,
>
> Is it possible to deliver an executable which would "contain" (and
> make use of functions defined in) a compiled object (i.e. "foo.o") or
> code from a static library (i.e. "libfoo.a"). The assumption here is
> that we do not own either the source that allows the generation of
> foo.o or libfoo.a, yet we want to use (fli:define-foreign-functions)
> functions within this object.
>
>
> Thank you.
>
>
>Lisp Hug - the mailing list for LispWorks users
>lisp-hug@lispworks.com
>http://www.lispworks.com/support/lisp-hug.html
>


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: deliverying an executable with foreign object files included

I do not have the shared objects, just the relocatable objects.

On Thu, Feb 1, 2018 at 7:57 PM, Jaime Fournier <ober@linbsd.org> wrote:
> You can link to any shared object. Look at manardb which uses a couple of libs.
>
>
>
>
> -------- Original Message --------
>  On February 1, 2018 5:28 PM, Jerome Ibanes <jibanes@gmail.com> wrote:
>
>>List,
>>
>> Is it possible to deliver an executable which would "contain" (and
>> make use of functions defined in) a compiled object (i.e. "foo.o") or
>> code from a static library (i.e. "libfoo.a"). The assumption here is
>> that we do not own either the source that allows the generation of
>> foo.o or libfoo.a, yet we want to use (fli:define-foreign-functions)
>> functions within this object.
>>
>>
>> Thank you.
>>
>>
>>Lisp Hug - the mailing list for LispWorks users
>>lisp-hug@lispworks.com
>>http://www.lispworks.com/support/lisp-hug.html
>>
>

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: deliverying an executable with foreign object files included

You can build a shared object from this relocatable objects,by
exporting necessary functions in this relocatable objects to the
shared object.


On Fri, Feb 2, 2018 at 12:17 PM, Jerome Ibanes <jibanes@gmail.com> wrote:
> I do not have the shared objects, just the relocatable objects.
>
> On Thu, Feb 1, 2018 at 7:57 PM, Jaime Fournier <ober@linbsd.org> wrote:
>> You can link to any shared object. Look at manardb which uses a couple of libs.
>>
>>
>>
>>
>> -------- Original Message --------
>>  On February 1, 2018 5:28 PM, Jerome Ibanes <jibanes@gmail.com> wrote:
>>
>>>List,
>>>
>>> Is it possible to deliver an executable which would "contain" (and
>>> make use of functions defined in) a compiled object (i.e. "foo.o") or
>>> code from a static library (i.e. "libfoo.a"). The assumption here is
>>> that we do not own either the source that allows the generation of
>>> foo.o or libfoo.a, yet we want to use (fli:define-foreign-functions)
>>> functions within this object.
>>>
>>>
>>> Thank you.
>>>
>>>
>>>Lisp Hug - the mailing list for LispWorks users
>>>lisp-hug@lispworks.com
>>>http://www.lispworks.com/support/lisp-hug.html
>>>
>>
>
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Updated at: 2020-12-10 08:30 UTC