Questions tagged [musl]

A new standard library to power a new generation of Linux-based devices.

MUSL, a new standard library to power a new generation of Linux-based devices. MUSL is lightweight, fast, simple, free, and strives to be correct in the sense of standards-conformance and safety.
http://www.musl-libc.org/

149 questions
0
votes
2 answers

Compiling with musl gives: 'Error relocating - secure_getenv: symbol not found'

I am trying to compile a simple C program using a musl toolchain v1.2.1 on x86_64 Debian. The program secgetenv.c is as follows: #define _GNU_SOURCE #include #include int main() { char *res; res =…
peachykeen
  • 4,143
  • 4
  • 30
  • 49
0
votes
1 answer

X11 linking issue potentially musl libc related

I am running Alpine Linux with musl libc attempting to install- https://github.com/patrickhaller/no-wm/ with- make install I have musl-dev and libx11-dev installed. libx11-dev puts libs in /usr/lib not /usr/X11/lib.…
0
votes
1 answer

File compiled by gcc on a musl toolchain not found by /bin/sh

I was trying out the muslcc images on dockerhub, but cannot run a compiled Hello World program. The image I am using is: muslcc/i686:x86_64-linux-musl (found here). I load the image with: docker run -it --rm -v /path/to/local:/var…
asuprem
  • 554
  • 1
  • 5
  • 17
0
votes
2 answers

Undefined references to symbols in standard libraries with musl-cross-make

I am using a musl-targeting cross compiler for arm, built with musl-cross-make (gcc 9.2.0, musl 1.2.0). When I compile a simple hello world c program with printf, I get undefined references for symbols that are in the standard…
ErwinP
  • 402
  • 3
  • 9
0
votes
1 answer

Yocto: add musl library giving build error

In my rootfs I need musl support. I added musl in my local.conf by adding: TCLIBC = "musl" IMAGE_INSTALL_append = " musl" built core-image-full-cmdline. I am getting error like below > +++ > > make[4]: Leaving directory >…
jojo
  • 13
  • 5
0
votes
0 answers

ERROR: undefined reference to `ruserok` - while compiling PAM-1.1.8 for arm64

.libs/pam_rhosts.o: In function pam_sm_authenticate: pam_rhosts.c:(.text+0x1e4): undefined reference to ruserok' While compiling Linux-PAM-1.1.8 for arm64. I get this error. ruserok is defined under a Macro check #ifdef __UCLIBC__ ... …
Sheik
  • 17
  • 7
0
votes
2 answers

OpenCascade compilation failure on Alpine linux with musl libc (mallinfo: has initializer but incomplete type error)

I'm trying to compile OpenCascade (OCE) with g++/gcc on Alpine Linux. It builds fine on Ubuntu but the same project fails on Apline with the errors: OSD_MemInfo.cxx: In member function 'void OSD_MemInfo::Update()': OSD_MemInfo.cxx:146:19: error:…
JacobP
  • 561
  • 3
  • 21
0
votes
1 answer

MUSL C library does not work yocto project

I'm using yocto project to build linux kernel for my sama5d27 som1 board. I'm trying to reduce the size of the released kernel so I replaced sysVinit to busybox init and now I am trying to replace gClibrary with musl C library. Under my Poky…
gaston
  • 51
  • 14
0
votes
1 answer

Why compiling with musl on Alpine fails and on ArchLinux succeeds

This is a curiosity question: why? Why does it have a different behavior for the exact same code? I often have the issue that I can compile something in one distribution but not in another. So today I bumped into one of those issue again where when…
Cecile
  • 1,553
  • 1
  • 15
  • 26
0
votes
1 answer

Linking libs into a binary in order to make it static on most of linux environment

I am currently searching for a way to make a binary that I just compiled, a portable binary for most of all linux environment. I was considering Ermine but it's not free (looking for a free solution right now) and tried also with Statifier but…
Gerald
  • 83
  • 8
0
votes
1 answer

How to compile GTK+ base application with musl-gcc?

I compiled this GTK+ Example App with both gcc & musl-gcc. Both of those produced a binary file, but musl-gcc produced binary does not execute correctly & shows bunch of errors. Note: I installed both musl-libc and libgtk3 dev version. Note: ldd…
samadadi
  • 3,100
  • 7
  • 25
  • 37
0
votes
0 answers

one binary for several Linux distros, one compiler for all

First Question: What is the best way to support various 'standard' Linux platforms with a single C++11 binary? This binary uses a handful of third party libraries including boost, zlib, xml2, openssl (all of which I can build statically). The binary…
Vic
  • 1
  • 1
-1
votes
1 answer

libc.musl-x86_64.so.1 is missing with alpine:3.7 and Apple M1

I try to install php-xdebug in docker, but I got this error #5 7.875 ERROR: unsatisfiable constraints: #5 7.875 php5-xdebug-2.5.5-r0: #5 7.875 masked in: cache #5 7.875 satisfies: #5 7.875 …
Toraaa
  • 145
  • 2
  • 10
1 2 3
9
10