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,278
questions
0
votes
0
answers
28
views
Need help to fix the Pro*C code compilation issue/warning while migrating the Pro*C code in Oracle Linux Server 8.8
ProC code migration from HP-UX to Oracle Linux Server 8.8:
while compiling ProC code in Oracle Linux Server 8.8, I am getting below warning messages.
"/usr/bin/ld: warning: libnsl.so.1, needed by ...
0
votes
0
answers
10
views
Where does the aio_threads defined in glibc?
// file: glibc/rt/aio_misc.c
/* User optimization. */
void
__aio_init (const struct aioinit *init)
{
/* Get the mutex. */
__pthread_mutex_lock (&__aio_requests_mutex);
/* Only allow ...
-2
votes
0
answers
50
views
need help about "__stack_chk_guard"
I have encountered a tricky problem in the current development process. I need to compile a dynamic library, but I don't want to use symbols with '@GLIBC' in the dynamic library because it needs to be ...
0
votes
0
answers
25
views
EC2 Instance Unresponsive After GLIBC Library Update
When I tried to install erlang for rabbitMQ, it reported an error:
error: Failed dependencies:
libcrypto.so.1.1()(64bit) is needed by erlang-26.1-1.el8.x86_64
libcrypto.so.1.1(OPENSSL_1_1_0)(...
0
votes
0
answers
3
views
PubSub Python Library version 2.18.4 on Raspberry Pi creates error GLIBCXX_3.4.29 not found
When trying to run/install Google Python PubSub client on Raspberry Pi Debian Bullseye (version 11) released 2023-05-03, on trying to import the library I get a runtime error saying GLIBCXX_3.4.29 not ...
0
votes
1
answer
51
views
Can you asymptotically analyze C libraries?
For example, I have two C libraries: musl and glibc. For my situation, I need speed, thus I want to use the library that would "run the fastest". Would this involve cataloging the time and ...
-1
votes
0
answers
28
views
bare minimum docker image from scratch with glibc and all it dependencies
is there a way to extend a bare minimum docker image(scratch) with glibc and openjdk and all their dependencies?
currently there are alot of information about building an image from a go or c program ...
2
votes
1
answer
69
views
gdb - Can you find the thread holding an internal glibc lock?
I think that my question is not a duplicate of this question, which describes how to find which thread owns a pthread_mutex_t. I want to know how to find the owner of an internal glibc lock, which I ...
0
votes
0
answers
13
views
libc dependency while uplifting redis library from 6.2.12 to 6.2.13
I am using Oracle Linux 7, which is similar to redhat 7. In this, the default supported libc version is libc-2.17.so.
With the above setup, when we install Redis 6.2.12 version, everything seems to be ...
-2
votes
0
answers
21
views
geth not working in RHEL 8.8 - glibc_2.29 not found
I am trying to use the Quorum geth 22.7.6 version in RHEL 8.8. However, it failed with the issue of 'glibc_2.29 not found'.
The THEL machine is of client and do not have internet connectivity. So I am ...
28
votes
2
answers
2k
views
Linux memcpy restrict keyword syntax
I know that the restrict qualifier in C specifies that the memory region pointed by two pointers should not overlap. It was my understanding that the Linux (not SUS) prototype for memcpy looks like -
...
0
votes
1
answer
64
views
PyTorch/Libtorch: can't find GLIBC on Fedora when making project
I'm trying to build a C++ project that uses Libtorch on a new laptop and am keep getting the following error when I run Make:
/home/labuser/anaconda3/envs/Research/bin/../lib/gcc/x86_64-conda-linux-...
7
votes
2
answers
97
views
global variable y0 conflicts with mathlib, cannot compile minimal C code
When compiling this code
#include <math.h>
double *y0;
int main()
{
return 0;
}
with gcc 13.2.0 from latest debian-sid, I get the following error:
gcc -o a.out proof.c -Wall -lm
proof.c:3:...
0
votes
1
answer
302
views
GLIBC_2.35' not found (required by /tmp/_MEIqx6YRS/libpython3.10.so.1.0)
my command ./orthofinder -f /folder
Full error: [28887] Error loading Python lib '/tmp/_MEIqx6YRS/libpython3.10.so.1.0': dlopen: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.35' not found (...
0
votes
1
answer
78
views
libc.so.6 error while compiling C++ program
I am a complete beginner in C++ and trying to run my first program.
#include <iostream>
int main()
{
std::cout << "Hello world!";
return 0;
}
Then I run, in the ...
0
votes
0
answers
19
views
SegmentFault After upgrade glibc2.29 in CentOS7 [ec2] [duplicate]
after make & install : /opt/glibc2.29
$ export LD_PRELOAD=/opt/glibc2.29/lib/libc-2.29.so
$ export LD_LIBRARY_PATH=/opt/glibc2.29/lib
Segment Fault occurs when a command is executed within the /...
0
votes
1
answer
38
views
How can I build a program to run on a system with older libc?
I build the simplest program on current newest Fedora distribution (35):
$ cat test.c
int main(int argc, char **argv)
{
}
$ cc test.c
The resulting a.out can't be run on an older system, because the ...
0
votes
0
answers
30
views
LD_PRELOAD'd jemalloc causes GLIB_2.32 not found
Problem
I'm trying to profile a Java program which uses JNI. I'm using this as a guide.
I've downloaded version 5.3.0 of jemalloc.
I've done configure and make to build it (in the rockylinux:8.8 ...
-1
votes
1
answer
57
views
Code command: ld.so: object '/usr/local/lib/x86_64-linux-gnu/libinput-config.so' from /etc/ld.so.preload cannot be preloaded
A few days ago I dualbooted my laptop. I can't use the code command because I keep getting the following error:
ERROR: ld.so: object '/usr/local/lib/x86_64-linux-gnu/libinput-config.so' from /etc/ld....
0
votes
1
answer
221
views
Alternatives to Quarkus base images for native-micro
I am building the binary in a GitHub Action pipeline using mvnw -Pnative. The runner machine uses the latest Ubuntu OS where the glibc version is 2.3x. Whereas, the base Quarkus micro image uses an ...
1
vote
2
answers
110
views
Can we add attributes to standard function declarations without breaking standard?
I wonder if adding attributes to a C method will break standard compliance or not.
Because in glibc 2.38, a nonnull attribute is added to fclose() and freopen() like this:
extern int fclose (FILE *...
0
votes
1
answer
38
views
How to handle a shared lib calling exit() and unexpectedly destroying global objects?
An application uses librpm.so, which handles some errors by calling exit(), for example when it receives a SIGPIPE. This results in glibc destroying local static objects while other threads are ...
0
votes
1
answer
63
views
Grpc requiring glibc 2.33 debian buster on arm cpu [duplicate]
Traceback (most recent call last):
File "/home/steven/GassistPi/src/main.py", line 25, in <module>
from google.cloud import speech
File "/home/steven/env/lib/python3.7/...
0
votes
0
answers
22
views
Are there any kernel or libc headers that deal with detecting the boot type?
I am currently reading /proc/cmdline to determine a device's boot reason. Currently, I am using Android's Canonical Boot Reason from the bootloader to determine why the device booted. I just read the ...
0
votes
1
answer
20
views
Will the Memory Allocator's Delayed Release Strategy Impair System Performance?
I recently read some documentation about memory allocators like ptmalloc, tcmalloc, and others. They mentioned that it is a common practice for memory allocators to delay releasing memory back to the ...
3
votes
1
answer
130
views
Why does Make hang when compiling glibc?
I'm trying to build an aarch64 cross compiler to build stuff for my Raspberry Pi 3B. I've been using a helpful script to build gcc for me (original script, mine filled in - note this contains the ...
1
vote
1
answer
92
views
How to dump a variable's bits in C? [duplicate]
I'm trying to code the function :
void memdump(void *p, size_t nmemb, size_t size);
Whose purpose is to display in the correct order the bits contained in the variable pointed to by p. Not checking ...
0
votes
0
answers
50
views
glibc-locale error in yocto project with openstlinux distribution
I am working yocto project. I started with a custom board based on stm32mp157. You can find the board description in this link custom board. Vendor has a board support package in dunfell version. But ...
0
votes
0
answers
11
views
Multiple GLIBC versions in shared library [duplicate]
On Oracle Linux 8.6 I have linkage runtime issue with library called rocksaw, despite I built it on the same machine
[root@localhost lib]# ldd librocksaw.so
./librocksaw.so: /lib64/libc.so.6: version `...
0
votes
1
answer
96
views
Wrong version of GLIBC on Oracle Linux 8
I need to rebuild patched version of rocksaw library. Here is the source code on Github.
On Ubuntu 22 both build process and test program run as expected.
The problem occurs on Oracle Linux 8, I got ...
0
votes
0
answers
29
views
Alternative to '/etc/group' through NSS
I would have said that libc should have a function (maybe something like getGroupsByUsername) that would return a list of all groups a user should be a member of, and that this function would be ...
0
votes
1
answer
422
views
installing libc6 version 2.35 on ubuntu 18.04 [duplicate]
I have slurm 23.11.0-0rc1 installed (from source) on an Ubuntu 18.04 machine. Unfortunately, this node is part of a cluster whose other nodes have Ubuntu 22.04. Things were going well until one time ...
1
vote
2
answers
99
views
Do rand and random function the same in glibc?
I'm currenlty studying PRNG, and I found that there are two function, rand() and random(), in GNU/Linux. According to the GNU C Library section 19.8.2, this function, random(), is just for supporting ...
0
votes
2
answers
1k
views
`GLIBC_2.34' not found
I'm trying to use the Heroku command line on Ubuntu, but coming up with an error, which I don't think is related to Heroku specifically.
When I run heroku login I get
/snap/heroku/current/bin/node: /...
0
votes
2
answers
18
views
How to find which symbols are available/removed in which version of the glic and link to them specifically?
I have an executable compiled on a latest operating system. The executable is just a few lines of math code.
Problem is, it's crashing when it's running on a different system.
ImportError: /lib64/libm....
0
votes
1
answer
41
views
Why does dynamic linking work when I use -lc with my.s?
If I compile the below with gcc -g a.c -lz -o normal and execute it on my debian server, it complains with
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./normal)
...
0
votes
0
answers
30
views
how to build a 32-bit application on a powerpc64 (target: power8) system
To build a 32-bit application on a powerpc64le system(target:power8), you need the 32-bit development libraries, such as glibc, which are not available as precompiled packages for powerpc64le. ...
1
vote
1
answer
68
views
nvcc (cuda8, gcc 5.3) no longer compiles with -O1 on Ubuntu 22.04
I have a CUDA-8 program which compiled (nvcc) well 7 months ago on Ubuntu 22.04, following this procedure, the underlying compiler being gcc (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413.
After (not sure ...
1
vote
1
answer
67
views
Error: operand size mismatch for `movq' in libc-start.c
I'm encountering an issue while compiling a glibc-2.19 with gcc-12.1.0.
The error I'm facing is an "operand size mismatch for `movq'" in the "libc-start.c" file at line 200.
Here ...
0
votes
0
answers
19
views
How does the glibc implementation of POSIX-AIO implement its thread pool?
I am having trouble finding an explanation of POSIX-AIO's thread pool implementation in glibc -- all references to POSIX-AIO (in places such as the man page, keynotes, etc) all mention the thread pool ...
0
votes
0
answers
93
views
problem running impalad: libc.so.6 Working in Centos 7 but not in RHEL 7
As per my understanding Centos 7 and RHEL 7 are similar in terms of version of library in linux. I have development servers running in RHEL7 which has no internet access. That server don't have ...
-1
votes
1
answer
89
views
What techniques can I use to determine the number generated by srand() in C?
How to know the secret number from srand((uint32_t)timer) where time_t timer = time(NULL)
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
void ...
2
votes
1
answer
230
views
fmin and fmax are much slower than simple conditional operator
I was working on some C++ code to process video frame, and found std::fmin and std::fmax is much slower than simply conditional operator. I've simplify my code as following (modify my code more C++ ...
1
vote
3
answers
120
views
Call libmvec functions manually on __m128 vectors?
According to this page https://sourceware.org/glibc/wiki/libmvec, I should be able to manually vectorize a few complicated instructions like cosine by using the libmvec functions. However, I don't ...
1
vote
0
answers
3k
views
Getting `GLIBC_2.34` not found error while running go-geos package on Ubuntu 20.04
I am using github.com/twpayne/go-geos package in my program to handle geometries. I developed on my a machine which runs Ubuntu 22.04 and everything works as expected. I built a binary using
go build -...
4
votes
1
answer
71
views
Does Uclibc fastbin behaving like Glibc fastbin?
In Glibc there are 7 bins in fastbin from 0x20 to 0xb0 each bin hold only their size. and it's a one-way linked list.
Does the fastbin in Uclibc(0.9.33.2) is the same ? is there any difference ?
0
votes
0
answers
292
views
`GLIBC_2.34' not found in chromebook
I've installed megacc on my chromebook, however when I try to run the application this error comes up:
megacc: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.34' not found (required by megacc)
I ...
0
votes
1
answer
97
views
Why do glibc's `system()` and `posix_spawn()` deal with signals?
The current POSIX-wide implementation of system() in glibc for the parent process:
1.a sets the process-wide signal handlers for SIGINT and SIGQUIT to ignore
1.b and blocks SIGCHLD.
The current Linux-...
13
votes
0
answers
181
views
Where does `__assert` come from?
When reading glibc sources I stumbled upon this comment in assert.h:
/* The following is not at all used here but needed for standard
compliance. */
extern void __assert (const char *__assertion, ...
1
vote
1
answer
109
views
Retrieve load address of unloaded shared library from linux core dump
A linux process appears to unload a shared library using dlclose while still having its functions registered as callbacks. It crashes later when the callback is called which is now invalid memory, and ...