Skip to content

Fix errors when building with an alternative libc than glibc - #149

Open
Jaeyoon Jung (jaeyoonjung) wants to merge 10 commits into
qualcomm-linux:scarthgapfrom
jaeyoonjung:pr.musl
Open

Fix errors when building with an alternative libc than glibc#149
Jaeyoon Jung (jaeyoonjung) wants to merge 10 commits into
qualcomm-linux:scarthgapfrom
jaeyoonjung:pr.musl

Conversation

@jaeyoonjung

Copy link
Copy Markdown

Otherwise it ends up failed when building with an alternative libc such as musl.

Otherwise it ends up failed when building with an alternative libc such
as musl.

Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>

@lumag Dmitry Baryshkov (lumag) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to go to OE-Core instead.

@lumag

Copy link
Copy Markdown
Contributor

This needs to go to OE-Core instead.

Hmm, or not. Please ignore my comment.

It's unnecessary and redundant as BASE_DEFAULT_DEPS already has
virtual/libc, and causing an error when building with an alternative
libc implementation such as musl.

Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
@jaeyoonjung

Copy link
Copy Markdown
Author

Added one more commit 284edd9

@quaresmajose

Copy link
Copy Markdown
Contributor

Added one more commit 284edd9

Can you update update the PR title acording, removing the bluez5_%.bbappend given that PR is more extensive.

@jaeyoonjung Jaeyoon Jung (jaeyoonjung) changed the title bluez5_%.bbappend: Add libc-glibc override for glibc-gconv-utf-* Fix errors when building with an alternative libc than glibc Nov 26, 2025
Backports the commit 300f7b5c0d5e223441e4687113d55d4350859f9e from
upstream.

Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
Remove __unused macro and use __attribute__((unused)) instead.
Use -1 instead of NULL for SOCKET type.

Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
Have HAVE_SYS_SOCKET_H defined by configure.

Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
Remove __unused macro and use __attribute__((unused)) instead.
'#include <unistd.h>' is needed by 'usleep' and 'close'.

Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
@vkraleti

Copy link
Copy Markdown

Jaeyoon Jung (@jaeyoonjung) thanks for submitting this PR. Since this branch is not yet accepting changes directly via GitHub, will raise this issue internally, get changes accepted there.

Add missing function declarations.
Have HAVE_SYS_SOCKET_H defined by configure.

Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
Have HAVE_SYS_SOCKET_H defined by configure.

Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
Remove __unused macro.
Use 0 over NULL for int type.

Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
@jaeyoonjung

Copy link
Copy Markdown
Author

Jaeyoon Jung (@jaeyoonjung) thanks for submitting this PR. Since this branch is not yet accepting changes directly via GitHub, will raise this issue internally, get changes accepted there.

Alright. I've added one more set of commits, which seems to be the last I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

5 participants