Skip to content

breakpad: fix linking on Linux - #1825

Merged
illwieckz merged 1 commit into
masterfrom
illwieckz/linux-breakpad
Sep 28, 2025
Merged

illwieckz merged 1 commit into
masterfrom
illwieckz/linux-breakpad

Conversation

@illwieckz

Copy link
Copy Markdown
Member

Fixes #1817:

It broke because the link didn't find the breakpad_getcontext symbol.
I tried adding src/common/linux/breakpad_getcontext.S to the source list, but it didn't worked.
Fortunately this source is only meant to be used when getcontext isn't provided by the system, setting HAVE_GETCONTEXT tells the source the function is there.

I haven't tested on Bullseye yet (Docker build distro). Actually I'm surprised that me testing the docker build didn't faced that error before. If it works on Bullseye, then we will assume it works everywhere.

@illwieckz

Copy link
Copy Markdown
Member Author

It built on Bullseye on my end.

@slipher

slipher commented Sep 28, 2025

Copy link
Copy Markdown
Member

LGTM

@illwieckz
illwieckz force-pushed the illwieckz/linux-breakpad branch from 1685807 to f6bc547 Compare September 28, 2025 16:33
@illwieckz

illwieckz commented Sep 28, 2025 •

Copy link
Copy Markdown
Member Author

I modified it a bit to only set the definition for that srclibs-breakpad target and not for the whole.

I also now know how to make it work by listing the src/common/linux/breakpad_getcontext.S file, when doing so it is also required to add the ASM language to the project(Daemon C CXX) line, but I postpone the evaluation of such solution because it may have toolchain implication in cross-compilation use case.

@illwieckz

Copy link
Copy Markdown
Member Author

I merge this for the release.

@illwieckz
illwieckz merged commit eb7e0a1 into master Sep 28, 2025
1 check was pending
@illwieckz
illwieckz deleted the illwieckz/linux-breakpad branch September 28, 2025 16:53
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.

Linux Breakpad doesn't build

2 participants