[lttng-dev] [PATCH] Fix: multiple definition error with gcc 5.1

Jérémie Galarneau jeremie.galarneau at efficios.com
Fri May 22 15:38:54 EDT 2015


Hi Zifei,

It seems I had missed the patch you had sent with this e-mail. I did end up
having the same issue today as I upgraded to gcc 5.1.

My fix is a combination of what was reported on the open embedded mailing
list (marking the mi and config declarations as extern) and removing what
was left of the function:entry feature.

commit 96ffaa0c61089296dd5c9dd07810f32f97931fc8
Author: Jérémie Galarneau <jeremie.galarneau at efficios.com>
Date:   Fri May 22 12:55:57 2015 -0400

    Clean-up: Remove ifdef-ed out function:entry feature

    Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>

commit 4965f956f3ef47388fb4a1b2f8f504abfe31afe7
Author: Jérémie Galarneau <jeremie.galarneau at efficios.com>
Date:   Fri May 22 12:53:30 2015 -0400

    Fix: Mark MI and Config string declarations as extern

    This fixes a build issue with GCC 5.1 which would complain about
    these symbols being defined multiple times.

    Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>

Thanks a lot and sorry for the delay!
Jérémie

On Mon, Apr 27, 2015 at 5:39 PM, Zifei Tong <zifeitong at gmail.com> wrote:

> I created a minimal reproducer [1] for the UB if you are interested.
>
> [1]: https://gist.github.com/5kg/7304cf74bc0fe13a9f70
>
> Thanks,
> Zifei Tong
>



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150522/c50cb517/attachment.html>


More information about the lttng-dev mailing list