Questions tagged [glibc]
The GNU C library is used as the C library in the GNU system and most systems with the Linux kernel. It defines the "system calls" and other basic facilities such as open, malloc, printf, exit, etc.
2,097
questions
0
votes
1
answer
10
views
what is different at same libc? 1.2 1.3 1.4 etc
Reference: https://libc.nullbyte.cat/
There are same libc-2.27.so but different Ubuntu.
Ex)
libc6_2.27-3ubuntu1.2_amd64
libc6_2.27-3ubuntu1.3_amd64
libc6_2.27-3ubuntu1.4_amd64
What these number ...
0
votes
0
answers
6
views
How to update libc.so.6(GLIBC_2.26)(64bit) to 2.27 and more on OPENSUSE LEAP15.2 linux distribution. Opensuse, php8-fpm, php8, apache2
I have updated the php7 to php8 and I tried to install php8-fpm (nginx) or apache2
during installation, I am getting this error:
Problem: nothing provides 'libc.so.6(GLIBC_2.27)(64bit)' needed by the ...
0
votes
1
answer
20
views
Yocto Dunfell - glibc do_stash_locale failed in multilib enabled environment
Yocto build failed in glibc. Build failed in do_stash_locale with below error.
ERROR: lib64-glibc-2.31+gitAUTOINC+1094741224-r0 do_stash_locale: The recipe lib64-glibc is trying to install files into ...
0
votes
0
answers
20
views
Why the same tasks cost differerent CPU on linux kernel 4.9 and 5.4?
My application is a compute intensive task(I.e. video encoding). When it is running on linux kernel 4.9(Ubuntu 16.04), the cpu usage is 3300%. But when it is running on linux kernel 5.4(Ubuntu 20.04), ...
1
vote
1
answer
125
views
GLIBC_2.29' not found
enter image description here
ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.29' not found (required by /usr/local/lib/python3.7/dist-packages/grpc/_cython/cygrpc.cpython-37m-arm-...
0
votes
0
answers
7
views
How to build a .so for export to another machine? [duplicate]
I'm trying to build a .so library to run on another machine. The other machine doesn't allow me to install other libraries, nor can I run a compiler there, I just need to give it a ready executable ...
4
votes
0
answers
95
views
+50
Clang compilation into sysroot with newer glibc
I'm trying to compile with a sysroot for Ubuntu 22.04 from a Ubuntu 20.04 image, and I'm having quite a bit of trouble, getting linker errors like these:
/usr/bin/ld: ../build_rootfs/x86_64_jammy/lib/...
-2
votes
0
answers
35
views
How to disassemble functions of linux library? [duplicate]
sleep() for example,
main.c:
#include <unistd.h>
void main(void) {
sleep(5);
}
objdump of main.o
000006a0 <sleep@plt>:
6a0: 00003e17 auipc t3,0x3
6a4: 994e2e03 ...
0
votes
0
answers
43
views
How to crate conda environment with GLIBC > 2.12 in HPC
I am working within HPC where I have no root privileges. The latest version of GLIBC in the HPC is 2.12 where for many applications GLIBC>2.14 is required. I need to install an application that ...
1
vote
1
answer
3k
views
Error /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found
firstly, I google'd a lot but nothing I found related to my case, I have an ELF executable file I'm trying to run it in my Ubuntu WSL, I've changed the permissions (chmod +x file), when I run it, this ...
0
votes
0
answers
17
views
Building ros2 galactic with custom glibc
I am using Ubuntu 18.04 on Nvidia Jetson Xavier having armv8 architecture. I have downloaded and build the source code of glibc and modified according to my needs. The glibc version is 2.27 same as ...
3
votes
0
answers
41
views
AmigaShell C++ (m68k-amigaos-g++) and command line arguments
I have tried working with the command line arguments in a small C++ program on Amiga 1200 (Workbench 3.1.4).
I have compiled with the use of bebbo’s cross-compiler g++ (m68k-amigaos-g++) (see https://...
2
votes
0
answers
66
views
How do I decrypt with openssl something encrypted with cbc_crypt (xencrypt)?
In a database there is string encrypted with glibc's xencrypt which is using internally cbc_crypt and the decryption was happening with xdecrypt function which also uses cbc_crypt.
Since glibc 2.32 ...
0
votes
0
answers
49
views
Conda reports conflicts but there seems to be no conflict
I've been struggling to update pyqt to a newest version, but it failed with package conflict. (the package I tried to update seems irrelevant here)
As it is evident from the following message I've ...
0
votes
0
answers
19
views
Upgrade GLIBC in hadoop mapreduce on AWS
I've got an application that runs in an AWS EMR hadoop cluster with mapreduce. We're trying to modernize some of the tools we're using to build this application, and the current build environment is ...
1
vote
1
answer
105
views
How to fix error or warning in C: "implicit declaration of function ‘inet_aton’; did you mean ‘inet_pton’?"
I am unable to use inet_aton() to convert an ASCII IP address such as "192.168.0.1" to a struct in_addr address in network byte order because I cannot get my code to compile.
I'm working in ...
3
votes
1
answer
151
views
Azure App Service with Python 3.9 deployment failed
We are trying to deploy a rather simple flask app to azure app service. The deployment (using local git) fails with the following output:
remote: Python Version: /tmp/oryx/platforms/python/3.9.12/bin/...
1
vote
1
answer
86
views
How to find the size of chunk allocated by malloc in the glibc library?
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char * ptr1 = NULL;
char * newptr = NULL;
ptr1 = (char *) malloc(8 * sizeof(int));
if (ptr1 == NULL)
exit(EXIT_FAILURE)...
0
votes
0
answers
59
views
patchelf - stat: No such file or directory
We are trying to solve below issue :
INFO | jvm 2 | 2022/04/05 09:06:23.421 | Caused by:
java.lang.UnsatisfiedLinkError:
/home/usr/examples/tmp/.djl.ai/pytorch/1.9.1-cpu-linux-x86_64/0.14.0-cpu-...
-1
votes
1
answer
435
views
Downgrade GLIBC version on ubuntu 20.04
Is there any way by which I can downgrade GLIBC version from 2.31 to 2.29 on my Ubuntu 20.04.4?
I am trying to run kedro application on docker which gives me following error:
OSError: /lib/x86_64-...
0
votes
0
answers
37
views
Can't install lib32-glibc using pacman in MSYS2
I'm quite new to pacman, and got the following error while installing lib32-glibc using "pacman -Syu lib32-glibc" in MSYS2(Windows 10), anyone know what should I do?
pacman output:
error: ...
0
votes
0
answers
32
views
Are these test failures in glibc when building Linux From Scratch acceptable?
I'm building LFS. I'm using Arch Linux (inside a VM) as my host system. I've allocated 7 cores/14 threads to the VM, along with 24 GB RAM. I got to glibc in Chapter 8. I compiled it, but when I ran ...
0
votes
0
answers
53
views
ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found
I'm getting this error while running my python script on a Linux virtual machine.
Traceback (most recent call last): File "model.py",
line 7, in <module> from data_load import * ...
4
votes
3
answers
109
views
On better understanding the strncpy() function behavior
In the Linux manpage of strncpy I read:
If the length of src is less than n, strncpy() writes additional
null bytes to dest to ensure that a total of n bytes are written.
In this limit case (no \0 ...
0
votes
0
answers
77
views
Can't link with the cross-built Arm aarch64 TensorFlow? Undefined reference to GLIBC
I cross-built the TensorFlow Lite C API shared library libtensorflowlite_c.so: my host machine was Linux Ubuntu x86 64, and I built the library for Arm aarch64 using this toolchain. I built it using ...
1
vote
0
answers
51
views
Linux/C: Dynamic Memory Allocation - Tune release policy
My program is sometimes terminated by the kernel OOM killer, and I have some questions about the memory allocation/free in my program. First, let me describe what the program does:
Scan a directory ...
0
votes
1
answer
66
views
Custom ld-linux.so for subprocesses
I am running a program with a set of custom libraries as follows:
/path/to/my/ld-linux-x86-64.so.2 --library-path /path/to/my/libs /path/to/my/executable
This works great for most of the programs I ...
1
vote
1
answer
52
views
Compiling old C code Y2038 conform still results in 4 byte variables
According to this overview in order to compile Y2038 conform old code, we just need to add the preprocessor macro __USE_TIME_BITS64 to gcc, but that does not seem to work on an ARMv7 board with Debian ...
0
votes
2
answers
41
views
How to read from STDIN_FILENO with blocking I/O
How can I read from STDIN_FILENO with blocking, I/O, i.e. I won't get -1 if there isn't any data. Seems that I have to clone the handle somehow. But I don't know why.
1
vote
2
answers
281
views
Rails deployment on AWS server (EBS) | Issue with nokogiri-1.13.3-aarch64-linux wrt GLIBC_2.29
Have deployed my Rails application but now getting following error in /var/log/puma/puma.log file
Early termination of worker
ERROR: It looks like you're trying to use Nokogiri as a precompiled ...
0
votes
1
answer
60
views
how to link to specify glibc
I have a cmake project that need to be linked with glibc-2.33. As system glibc is low version and install new glibc to system is not recommended, I build and install glibc-2.33 following with #2 in ...
0
votes
1
answer
57
views
Why I can execute files without execution permission if I use ld-2.31.so?
I am a bit shocked about this discover.
If I don't have execution permission on a file, say, foo... I can still execute it with:
/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ./foo
(ld-linux-x86-64.so.2 ...
1
vote
0
answers
101
views
Error in cross compiling glibc for (Linux 5.16.10, aarch64) host on a x86_64 linux machine: Unknown architecture 'armv8.5-a'
I need to use glibc v2.35, with memory tagging support (to be used on aarch64, linux 5.16.10 VM running in QEMU). I am trying to cross-compile glibc from source on my machine which is x86_64.
I first ...
1
vote
2
answers
34
views
mktime causes overflow in SLES 15 SP3
SLES 15 SP3 makes use of glibc 2.31 and our convert time code using mktime is failing with ulong overflow. Can anyone let us know if we are missing something here. Or do we have any other alternative ...
3
votes
1
answer
53
views
Questions regarding glibc startup code for X86-64
I am looking into the startup code in Glibc for x86-64, and I am curious about the below two places which I highlighted in the screenshot directly.
Code: https://github.com/bminor/glibc/blob/master/...
1
vote
1
answer
168
views
installing anaconda in aarch64 linux
i am trying to install anaconda for aarch64 linux . the instance is setup in oracle cloud and the image used for the instance is oracle linux 8
i downloaded the distribution for anacoda from the ...
-1
votes
1
answer
239
views
Application failed to run on Arch Linux with glibc package version 2.35-2
The strange thing is that teh glibc package version 2.35-2 does not contain /usr/lib/libdl.so nor /usr/lib/libpthread.so
Here is strace:
chilkat/chilkat-9.5.0-x86_64-linux-gcc/lib/glibc-hwcaps/x86-64-...
-1
votes
1
answer
33
views
Who develops glibc , the os kernel programmer?
I am really confused about glibc, and I wanna know who develop it.Maybe the os kernel programmer? Or someone else?
0
votes
0
answers
181
views
Glibc errors in Alpine Linux tried everything
I'am trying to set up a Roon Bridge which is a server streaming endpoint I'am walking against some problems though.. I tried everything but it does not seem to get working. First are some tests, and ...
0
votes
1
answer
200
views
Removing glibc dependency when compiling with gcc
Is it possible to compile a program using gcc without depending on glibc?
void main(){}
./libtest: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not
found (required by ./libtest)
0
votes
0
answers
21
views
Most efficient way to save and later send output from many child processes
I want to do the following on linux:
Spawn a child process, run it to completion, save it's stdout
and then later write that saved stdout to a file.
The issue is that I want to do step 1 a few ...
0
votes
2
answers
101
views
How to extract and compare the libc versions at runtime?
How to extract and compare the libc versions at runtime with the following restrictions?
stable solution (commands output parsing is discarded as this may vary)
should not rely on executing external ...
3
votes
2
answers
1k
views
GLIBC_2.33 not found in raspberry pi python
Error Trace:
ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/pi/.local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-...
1
vote
1
answer
41
views
How does strncmp using SSE 4.2 avoid reading beyond the page boundaries when loading 16 bytes?
glibc now uses SSE 4.2 to optimize strncmp:
https://github.com/lattera/glibc/blob/master/sysdeps/x86_64/multiarch/strcmp-sse42.S
https://www.strchr.com/strcmp_and_strlen_using_sse_4.2
This can be ...
0
votes
0
answers
98
views
Problem with functions iopl and ioperm in xorg server
folks.
I am trying to solve a problem regarding the video resolution of a VM generated using yocto.
Before, when the build system was set to sumo branch and x64 architecture, the resolution was ...
2
votes
0
answers
49
views
LightGBM python package - version `GLIBCXX_3.4.18' not found
I'm trying to install and use lightgbm package in python, but it seems like there is a version conflict related to gcc.
After installing the package, using pip install lightgbm, when trying to import ...
0
votes
2
answers
62
views
How to include libgmp to xeus-cling?
I am trying to run the following code:
#pragma cling add_library_path("/usr/lib/x86_64-linux-gnu")
#pragma cling add_include_path("/usr/include")
#pragma cling add_include_path(&...
0
votes
1
answer
59
views
What's asm labels in C language?
When browsing glibc code, I found some code beyong my understanding of C language, it's introduced in this commit. Code is simplified as below.
#include <stdio.h>
int foo(void) {
printf("%...
0
votes
1
answer
86
views
OpemBMC/Yocto Glibc do_package fails
I am new to OpenBMC/Yocto.
For glibc target, the previous tasks such as do_compile() etc work fine, but fail at do_package() task:
bruin@cl2100 /ssd/devkit/build (master) $ bitbake glibc -c package
...
1
vote
1
answer
321
views
glibc versioned symbol and undefined reference to memcpy@GLIBC_2.14
Today, when I use conda zlib to compile a binary, I encountered the error Undefined reference to memcpy@GLIBC_2.14.
.../x86_64-conda-linux-gne/bin/ld: ...envs/myenv/lib/libz.so: undefined reference to ...