Skip to content

Conversation

@r41k0u
Copy link
Contributor

@r41k0u r41k0u commented Jun 25, 2025

The signature for libpisp::compute_optimal_stride has changed, and it is called by libcamera extrenally. While adding a default parameter makes it backwards compatible, using libcamera.so to build rpicam-apps with -Wl, --no-undefined will cause undefined symbols.

This change preserves the API by overloading the function to have both the previous and new signature. This will emit both symbols in the shared object. Only compute_optimal_stride in utils.hpp needs this change as this is the only function being used in libcamera as an API from utils.

More context at https://bugs.launchpad.net/ubuntu/+source/libpisp/+bug/2115319

The signature for compute_optimal_stride has changed, and it is called by libcamera
extrenally. While adding a default parameter makes it backwards compatible, using
libcamera.so to build rpicam-apps with -Wl, --no-undefined will cause undefined symbols.

This change preserves the API by overloading the function to have both the previous and
new signature. This will emit both symbols in the shared object. Only
compute_optimal_stride in utils.hpp needs this change as this is the only function being
used in libcamera as an API from utils.
@naushir naushir merged commit 2fe9084 into raspberrypi:main Jun 26, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants