Re: shared object not being created when building with QNX toolchain

s1341-libtool <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <CAK5bt9qr6WLYTgP8vNHb5Xbc-KHuXYpzNkFRVv-WvJy2zt4Wew@mail.gmail.com>
I managed to solve my problem. It was deep in libtools.m4. It turns out
that they run $LD --help to scan it for "supported targets.*elf". My $LD
had some flags baked in which prevented --help from outputting the correct
message. This resulted in archive_cmds not being set, which made shared
object linking impossible.

Thanks anyway.
s1341

On 18 February 2016 at 15:09, s1341-libtool <[email protected]> wrote:

> Replying to my own question, as I've refined the test case.
>
> This is the updated Makefile.am: https://ghostbin.com/paste/9wj6d.
>
> Note that now the libfrida-agent-glue.so and libfrida-agent-container.so
> are not expected to be generated. It seems that they were not generated
> with the previous makefile, there were just some symlinks created in .libs.
>
> The libfrida-agent.so is expected to be generated and installed into the
> lib directory, but it is not generated. The install target fails with this
> output:
>
> ```
> libtool: install: /usr/bin/install -p .libs/libfrida-agent.so
> /home/srubenst/github/frida/build/frida-qnx-arm/lib/libfrida-agent.so
> /usr/bin/install: cannot stat '.libs/libfrida-agent.so': No such file or
> directory
> ```
>
> The full output with V=1 is available here:
> https://ghostbin.com/paste/37zpz
>
> Why is the libfrida-agent.so not generated!?!
>
> Please help me as I am tearing out my hair in frustration here.
>
> Thanks
> s1341
>
> On 18 February 2016 at 13:55, s1341-libtool <[email protected]> wrote:
>
>> Hi all,
>>
>> I'm trying to build this (https://ghostbin.com/paste/ksjht) Makefile.am.
>> Unfortunately, for some reason the libfrida-agent.so file is not being
>> generated.
>>
>> The libfrida-agent-container.so and libfrida-agent-glue.so are being
>> generated. The files are located in the .libs directory. There is a
>> libfrida-agent.la, but no .so.
>>
>> Note that this same build file works as expected when building using a
>> linux-arm toolchain, but fails when using a qnx-arm toolchain. I'm building
>> on the same machine, so the only difference between the builds should be
>> the toolchain bits themselves (gcc, ld, ar, nm, ...).
>>
>> I've been struggling with this for a few days now, and I can't seem to
>> get it to work.
>>
>> I'd appreciate any insight or suggestions, as I don't really know how to
>> proceed with this.
>>
>> Thanks
>> s1341
>>
>
>

_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.