[oe] [PATCH 5/5] samba: fix build by linking with bfd instead of gold

Andreas Müller schnitzeltony at googlemail.com
Wed Sep 7 20:07:24 UTC 2016


On Wed, Sep 7, 2016 at 6:51 PM, Khem Raj <raj.khem at gmail.com> wrote:
>
>> On Sep 6, 2016, at 2:29 PM, Andreas Müller <schnitzeltony at googlemail.com> wrote:
>>
>> On Tue, Sep 6, 2016 at 8:28 PM, Khem Raj <raj.khem at gmail.com> wrote:
>>>
>>>> On Sep 4, 2016, at 1:15 PM, Andreas Müller <schnitzeltony at googlemail.com> wrote:
>>>>
>>>> Use this workaround as long as there is no better (upstream) fix
>>>>
>>>> Signed-off-by: Andreas Müller <schnitzeltony at googlemail.com>
>>>> ---
>>>> meta-networking/recipes-connectivity/samba/samba_4.4.5.bb | 2 +-
>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb b/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb
>>>> index e35d527..3205c5d 100644
>>>> --- a/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb
>>>> +++ b/meta-networking/recipes-connectivity/samba/samba_4.4.5.bb
>>>> @@ -88,7 +88,7 @@ EXTRA_OECONF += "--enable-fhs \
>>>>                "
>>>> DISABLE_STATIC = ""
>>>>
>>>> -LDFLAGS += "-Wl,-z,relro,-z,now"
>>>> +LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}”
>>>
>>> what is the original problem ?
>>>
>> | default/source3/libsamba-cluster-support-samba4.so: error: undefined
>> reference to ‘dbghdrclass'
>
>
> Does it mean that we are missing some library or object on linker cmdline ?
>
Have no idea. Googling around and checking samba's git I saw that it
tends to break with new version of binutils. Before changing linker, I
played around with patches adding dependencies / removing LDFLAGS all
did not lead to working build. So I finally replaced gold and samba is
fine again.

Andreas



More information about the Openembedded-devel mailing list