-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alpine linux can't link to the library installed via apk
#2860
Comments
hrmmm, that's worrying |
is |
i will probably need to spin up an alpine VM to look into this. can you verify that the "missing" symbols are present in |
Oh, it doesn't matter, usually my project HAS to be compiled on MacOS/FreeBSD/AlpineLinux (sometimes another Linux distro, e.g. ArchLinux, dependons on my teammate's needs) That set MUSL (ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1)
# MUSL LIBC
if test -n "$MUSL"
# set CFLAGS "$CFLAGS -D __MUSL__ -D _GNU_SOURCE\n"
set CFLAGS "$CFLAGS -D __MUSL__\n"
end The linking issue still there without |
They're there except N wison | /home/wison objdump -T /usr/lib/libnotcurses.so | rg notcurses
# /usr/lib/libnotcurses.so: file format elf64-x86-64
# 0000000000000000 DF *UND* 0000000000000000 Base notcurses_core_init
# 0000000000000000 DF *UND* 0000000000000000 Base ncplane_notcurses
# 0000000000003740 g DF .text 0000000000000017 Base notcurses_init
I wison | /home/wison objdump -T /usr/lib/libnotcurses-core.so | rg \
-e "notcurses_core_init" \
-e "notcurses_stdplane" \
-e "notcurses_stop" \
-e "ncplane_putstr_yx" \
-e "ncplane_putegc_yx" \
-e "ncpile_render" \
-e "ncpile_rasterize"
# 000000000002e7a0 g DF .text 0000000000000004 notcurses_stdplane
# 0000000000033940 g DF .text 0000000000000093 ncplane_putegc_yx
# 00000000000350d0 g DF .text 0000000000000e60 notcurses_core_init
# 000000000002e7b0 g DF .text 0000000000000004 notcurses_stdplane_const
# 0000000000045c70 g DF .text 000000000000024b ncpile_render_to_file
# 00000000000478d0 g DF .text 0000000000000354 ncpile_rasterize
# 0000000000031320 g DF .text 00000000000002e9 notcurses_stop
# 0000000000045ec0 g DF .text 0000000000000464 ncpile_render
# 0000000000046330 g DF .text 00000000000000e6 ncpile_render_to_buffer |
Install via native
apk
Create a hello program, compile and run:
Libraries in the default link path:
The text was updated successfully, but these errors were encountered: