Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] libssp missing from target
@ 2010-08-31 14:52 Grant Edwards
  2010-08-31 16:20 ` Grant Edwards
  2010-08-31 18:07 ` Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Grant Edwards @ 2010-08-31 14:52 UTC (permalink / raw)
  To: buildroot

I just added a package (systemtap) that uses libssp.  I find libssp.so
et al. are present in output/staging/lib but missing from
output/target/lib. Is there something I need to do in my package
makefile to tell buildroot that my package needs libssp to be copied
from staging into target?

-- 
Grant Edwards               grant.b.edwards        Yow! My NOSE is NUMB!
                                  at               
                              gmail.com            

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] libssp missing from target
  2010-08-31 14:52 [Buildroot] libssp missing from target Grant Edwards
@ 2010-08-31 16:20 ` Grant Edwards
  2010-08-31 18:05   ` Thomas Petazzoni
  2010-08-31 18:07 ` Thomas Petazzoni
  1 sibling, 1 reply; 7+ messages in thread
From: Grant Edwards @ 2010-08-31 16:20 UTC (permalink / raw)
  To: buildroot

On 2010-08-31, Grant Edwards <grant.b.edwards@gmail.com> wrote:

> I just added a package (systemtap) that uses libssp.  I find libssp.so
> et al. are present in output/staging/lib but missing from
> output/target/lib. Is there something I need to do in my package
> makefile to tell buildroot that my package needs libssp to be copied
> from staging into target?

I just enabled building of gdbserver for the target, and now it's
missing a libarary on the target as well (libthread_db).

How do I tell buildroot to copy to output/target the libraires
required by the binaries in output/target/usr/bin?

-- 
Grant Edwards               grant.b.edwards        Yow! Jesus is my POSTMASTER
                                  at               GENERAL ...
                              gmail.com            

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] libssp missing from target
  2010-08-31 16:20 ` Grant Edwards
@ 2010-08-31 18:05   ` Thomas Petazzoni
  2010-08-31 18:29     ` Grant Edwards
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2010-08-31 18:05 UTC (permalink / raw)
  To: buildroot

On Tue, 31 Aug 2010 16:20:23 +0000 (UTC)
Grant Edwards <grant.b.edwards@gmail.com> wrote:

> I just enabled building of gdbserver for the target, and now it's
> missing a libarary on the target as well (libthread_db).
> 
> How do I tell buildroot to copy to output/target the libraires
> required by the binaries in output/target/usr/bin?

Assuming you're using an external toolchain, libthread_db should
already be added to the target by the following snippet in
toolchain/toolchain-external/ext-tool.mk :

ifneq ($(BR2_PTHREADS_NONE),y)
LIB_EXTERNAL_LIBS+=libpthread.so
ifeq ($(BR2_PACKAGE_GDB_SERVER),y)
LIB_EXTERNAL_LIBS+=libthread_db.so
endif # gdbserver
endif # ! no threads

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] libssp missing from target
  2010-08-31 14:52 [Buildroot] libssp missing from target Grant Edwards
  2010-08-31 16:20 ` Grant Edwards
@ 2010-08-31 18:07 ` Thomas Petazzoni
  2010-08-31 18:39   ` Grant Edwards
  2010-09-01  8:56   ` Will Newton
  1 sibling, 2 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2010-08-31 18:07 UTC (permalink / raw)
  To: buildroot

On Tue, 31 Aug 2010 14:52:34 +0000 (UTC)
Grant Edwards <grant.b.edwards@gmail.com> wrote:

> I just added a package (systemtap) that uses libssp.  I find libssp.so
> et al. are present in output/staging/lib but missing from
> output/target/lib. Is there something I need to do in my package
> makefile to tell buildroot that my package needs libssp to be copied
> from staging into target?

What is libssp ? Who needs it (besides systemtap) and for what ?

It seems to exist in uClibc toolchains, but not in glibc toolchains.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] libssp missing from target
  2010-08-31 18:05   ` Thomas Petazzoni
@ 2010-08-31 18:29     ` Grant Edwards
  0 siblings, 0 replies; 7+ messages in thread
From: Grant Edwards @ 2010-08-31 18:29 UTC (permalink / raw)
  To: buildroot

On 2010-08-31, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:
> On Tue, 31 Aug 2010 16:20:23 +0000 (UTC)
> Grant Edwards <grant.b.edwards@gmail.com> wrote:
>
>> I just enabled building of gdbserver for the target, and now it's
>> missing a libarary on the target as well (libthread_db).
>> 
>> How do I tell buildroot to copy to output/target the libraires
>> required by the binaries in output/target/usr/bin?
>
> Assuming you're using an external toolchain, libthread_db should
> already be added to the target by the following snippet in
> toolchain/toolchain-external/ext-tool.mk :
>
> ifneq ($(BR2_PTHREADS_NONE),y)
> LIB_EXTERNAL_LIBS+=libpthread.so
> ifeq ($(BR2_PACKAGE_GDB_SERVER),y)
> LIB_EXTERNAL_LIBS+=libthread_db.so
> endif # gdbserver
> endif # ! no threads

It appears my ext-tool.mk file is out-of-date.  I'll update it to
include that bitof code.

-- 
Grant Edwards               grant.b.edwards        Yow! Look!  A ladder!
                                  at               Maybe it leads to heaven,
                              gmail.com            or a sandwich!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] libssp missing from target
  2010-08-31 18:07 ` Thomas Petazzoni
@ 2010-08-31 18:39   ` Grant Edwards
  2010-09-01  8:56   ` Will Newton
  1 sibling, 0 replies; 7+ messages in thread
From: Grant Edwards @ 2010-08-31 18:39 UTC (permalink / raw)
  To: buildroot

On 2010-08-31, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:
> On Tue, 31 Aug 2010 14:52:34 +0000 (UTC)
> Grant Edwards <grant.b.edwards@gmail.com> wrote:
>
>> I just added a package (systemtap) that uses libssp.  I find libssp.so
>> et al. are present in output/staging/lib but missing from
>> output/target/lib. Is there something I need to do in my package
>> makefile to tell buildroot that my package needs libssp to be copied
>> from staging into target?
>
> What is libssp?

I don't really know.  Here are the text symbols it defines:

 __chk_fail
 __stack_chk_fail
 __stack_chk_fail_local
 __gets_chk
 __memcpy_chk
 __memmove_chk
 __mempcpy_chk
 __memset_chk
 __stpcpy_chk
 __strcat_chk
 __strcpy_chk
 __strncat_chk
 __strncpy_chk

My guess is it's some internal uClibc stuff.

> Who needs it (besides systemtap)

Nothing that I happen to be building (as far as I know).

> and for what?

I don't know.  Does it matter?

> It seems to exist in uClibc toolchains, but not in glibc toolchains.

OK.

Why not run "ldd" on the binaries in output/target/bin and
output/target/usr/bin and just copy whatever libraries they need?

Does buildroot need to know exactly for what a library is used by each
binary?

-- 
Grant Edwards               grant.b.edwards        Yow! I want to kill
                                  at               everyone here with a cute
                              gmail.com            colorful Hydrogen Bomb!!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] libssp missing from target
  2010-08-31 18:07 ` Thomas Petazzoni
  2010-08-31 18:39   ` Grant Edwards
@ 2010-09-01  8:56   ` Will Newton
  1 sibling, 0 replies; 7+ messages in thread
From: Will Newton @ 2010-09-01  8:56 UTC (permalink / raw)
  To: buildroot

On Tue, Aug 31, 2010 at 7:07 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> On Tue, 31 Aug 2010 14:52:34 +0000 (UTC)
> Grant Edwards <grant.b.edwards@gmail.com> wrote:
>
>> I just added a package (systemtap) that uses libssp. ?I find libssp.so
>> et al. are present in output/staging/lib but missing from
>> output/target/lib. Is there something I need to do in my package
>> makefile to tell buildroot that my package needs libssp to be copied
>> from staging into target?
>
> What is libssp ? Who needs it (besides systemtap) and for what ?

I believe it's part of gcc, used for stack checking.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-09-01  8:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-31 14:52 [Buildroot] libssp missing from target Grant Edwards
2010-08-31 16:20 ` Grant Edwards
2010-08-31 18:05   ` Thomas Petazzoni
2010-08-31 18:29     ` Grant Edwards
2010-08-31 18:07 ` Thomas Petazzoni
2010-08-31 18:39   ` Grant Edwards
2010-09-01  8:56   ` Will Newton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox