From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Bernd Kuhls <bernd@kuhls.net>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v2 1/1] package/mjpg-streamer: fix undefined symbol error
Date: Thu, 8 Aug 2024 21:59:06 +0200 [thread overview]
Message-ID: <20240808215906.6365ecfa@windsurf> (raw)
In-Reply-To: <20240808192126.1767471-1-bernd@kuhls.net>
Hello Bernd,
On Thu, 8 Aug 2024 21:21:26 +0200
Bernd Kuhls <bernd@kuhls.net> wrote:
> Fixes runtime error:
>
> dlopen: /usr/lib/mjpg-streamer/input_uvc.so: undefined symbol: resolutions_help
>
> Patch was suggested by Thomas:
> http://lists.busybox.net/pipermail/buildroot/2024-August/759732.html
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Thanks, applied, two comments below.
> ---
> v2: used code suggested by Thomas, run-time tested (Thomas)
>
> ...-all-symbols-of-mjpg_streamer-binary.patch | 33 +++++++++++++++++++
> 1 file changed, 33 insertions(+)
> create mode 100644 package/mjpg-streamer/0001-Export-all-symbols-of-mjpg_streamer-binary.patch
>
> diff --git a/package/mjpg-streamer/0001-Export-all-symbols-of-mjpg_streamer-binary.patch b/package/mjpg-streamer/0001-Export-all-symbols-of-mjpg_streamer-binary.patch
> new file mode 100644
> index 0000000000..a0b80ff711
> --- /dev/null
> +++ b/package/mjpg-streamer/0001-Export-all-symbols-of-mjpg_streamer-binary.patch
> @@ -0,0 +1,33 @@
> +From fbde1593948ae95f287b2167d0bec5b27948cc01 Mon Sep 17 00:00:00 2001
> +From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> +Date: Tue, 6 Aug 2024 17:04:55 +0200
> +Subject: [PATCH 1/1] Export all symbols of mjpg_streamer binary
Please generate the patches with git format-patch -N. Shall I suggest
that you add:
https://paste.ack.tf/c160ab
into your .git/hooks/post-commit ? This way you will get automatic
check-package verification when you create or rework commits.
> +Fixes runtime error with stripped binary
> +
> + dlopen: /usr/lib/mjpg-streamer/input_uvc.so: undefined symbol: resolutions_help
> +
> +Source: http://lists.busybox.net/pipermail/buildroot/2024-August/759732.html
> +
> +Upstream: https://github.com/jacksonliam/mjpg-streamer/pull/401
> +
> +Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
This commit message is pretty terse. For me or you who have looked at
the problem, it's pretty obvious, but for the maintainer of
mjpg-streamer, it really isn't very clear what is going on and why this
patch would be needed.
Best regards,
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-08-08 19:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-08 19:21 [Buildroot] [PATCH v2 1/1] package/mjpg-streamer: fix undefined symbol error Bernd Kuhls
2024-08-08 19:59 ` Thomas Petazzoni via buildroot [this message]
2024-09-03 20:39 ` Peter Korsgaard
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=20240808215906.6365ecfa@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 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.