All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
To: Andrei Gherzan <andrei@gherzan.ro>
Cc: Yocto Project <yocto@yoctoproject.org>,
	Gary Thomas <gary@mlbassoc.com>,
	Alexandru Vaduva <vaduva.jan.alexandru@gmail.com>
Subject: Re: [meta-raspberrypi] Using the camera
Date: Wed, 11 Jun 2014 13:54:35 +0100	[thread overview]
Message-ID: <5398518B.7070904@dynamicdevices.co.uk> (raw)
In-Reply-To: <CAK18fxFkAt3TZRHAqxN5bpp47KC-rGRodOyX=BDsF6PcbPc36w@mail.gmail.com>


> I merged the patches but there is a strange behavior. With --as-needed
> removed i still get the unneeded dependency.
>  0x00000001 (NEEDED)                     Shared library: [libmmal_core.so]
>  0x00000001 (NEEDED)                     Shared library: [libmmal_util.so]
>  0x00000001 (NEEDED)                     Shared library:
> [libmmal_vc_client.so]
>  0x00000001 (NEEDED)                     Shared library: [libvcos.so]
>  0x00000001 (NEEDED)                     Shared library: [libbcm_host.so]
>  0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
>  0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
>  0x00000001 (NEEDED)                     Shared library: [librt.so.1]
>  0x00000001 (NEEDED)                     Shared library: [libvchiq_arm.so]
>  0x00000001 (NEEDED)                     Shared library: [libc.so.6]
>
> Alex, can you take another look on this? It seems like somehow the fix
> doesn't work for me.

If I understand you correctly the issue is that by default bitbake is
providing --no-as-needed into the userland configuration step

This has the effect that libmmal_vc_client is removed as a needed
library, therefore not loaded when raspivid loads,
and therefore doesn't register components that it would register when it
was loaded (because of use of
__attribute__((constructor,used)) decorating functions in that library).

We override --as-needed with --no-as-needed so that the dependency upon
libmmal_vc_client is no longer removed,
which I think is what you show above. If you remove my patch you should
see libmmal_vc_client disappear I believe.

Cheers,

Alex



  reply	other threads:[~2014-06-11 12:54 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19 16:18 [meta-raspberrypi] Using the camera Edward Vidal
2013-11-19 16:22 ` Gary Thomas
2013-12-03 21:54   ` Andrei Gherzan
2013-12-03 22:13     ` jan alexandru vaduva
2014-05-25 11:36       ` Alex J Lennon
2014-05-25 20:51         ` Alexandru Vaduva
2014-05-26 10:39           ` Alex J Lennon
2014-05-26 17:56             ` Alex J Lennon
2014-05-26 18:24               ` Alexandru Vaduva
2014-05-26 18:34                 ` Alex J Lennon
2014-05-26 18:40                   ` Alexandru Vaduva
2014-06-01 21:07                     ` Alex J Lennon
2014-06-01 21:22                       ` Alexandru Vaduva
2014-06-01 21:35                         ` Alex J Lennon
2014-06-02  1:18                           ` Alex J Lennon
2014-06-10 18:01                             ` Andrei Gherzan
2014-06-10 19:21                               ` Andrei Gherzan
2014-06-11 12:54                                 ` Alex J Lennon [this message]
2014-06-11 17:00                                   ` Andrei Gherzan
  -- strict thread matches above, loose matches on Subject: below --
2013-11-18 20:37 Gary Thomas
2013-11-18 21:10 ` Philipp Wagner
2013-11-18 21:55   ` Gary Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5398518B.7070904@dynamicdevices.co.uk \
    --to=ajlennon@dynamicdevices.co.uk \
    --cc=andrei@gherzan.ro \
    --cc=gary@mlbassoc.com \
    --cc=vaduva.jan.alexandru@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.