From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Bernd Kuhls <bernd@kuhls.net>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/mjpg-streamer: fix undefined symbol error
Date: Fri, 10 May 2024 21:49:57 +0200 [thread overview]
Message-ID: <20240510214957.7961fff9@windsurf> (raw)
In-Reply-To: <20240324185659.1777379-1-bernd@kuhls.net>
Hello Bernd,
On Sun, 24 Mar 2024 19:56:59 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:
> +diff --git a/mjpg-streamer-experimental/plugins/input_uvc/CMakeLists.txt b/mjpg-streamer-experimental/plugins/input_uvc/CMakeLists.txt
> +index 72b24fa..90bbfa0 100644
> +--- a/mjpg-streamer-experimental/plugins/input_uvc/CMakeLists.txt
> ++++ b/mjpg-streamer-experimental/plugins/input_uvc/CMakeLists.txt
> +@@ -22,6 +22,7 @@ if (PLUGIN_INPUT_UVC)
> + MJPG_STREAMER_PLUGIN_COMPILE(input_uvc dynctrl.c
> + input_uvc.c
> + jpeg_utils.c
> ++ ../../utils.c
> + v4l2uvc.c)
Thanks for the patch. Are you sure this is the right fix?
Indeed, the way I understand it is that there is a main executable
(mjpg-streamer), which loads using dlopen() a number of plugins. This
symbol resolutions_help is already provided by the mjpg-streamer main
executable itself, so why can't the dlopen()'ed plugin use it? Here
you're basically duplicating this symbol into the plugin itself. Is
that the right way to fix this issue? I am not sure 100% clear on what
are the rules that allow a dlopen() library to use the symbols of the
"thing" that dlopen()s the plugin, but it seems like it is possible.
Also, there is another plugin, input_opencv, which uses the exact same
symbol, so it would also need to be fixed.
Opinion from upstream here would be greatly appreciated to see how they
chose to design their code base.
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-05-10 19:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-24 18:56 [Buildroot] [PATCH 1/1] package/mjpg-streamer: fix undefined symbol error Bernd Kuhls
2024-05-10 19:49 ` Thomas Petazzoni via buildroot [this message]
2024-08-05 22:21 ` Thomas Petazzoni via buildroot
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=20240510214957.7961fff9@windsurf \
--to=buildroot@buildroot.org \
--cc=bernd@kuhls.net \
--cc=thomas.petazzoni@bootlin.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox