Skip to main content

Questions tagged [glibc]

glibc is GNU's implementation of the Standard C library.

Filter by
Sorted by
Tagged with
0 votes
1 answer
34 views

How to specify which glibc and libstdc++ to run the program, without sudo

I want to run a program on CentOS, but I met problem with the libstdc++ and glibc. I can't update both because I have no root privileges, and I would like the solution to only affect this particular ...
House Peace's user avatar
0 votes
0 answers
20 views

Mamba broken after updating ssl. ImportError: cannot dynamically load position-independent executable

I work on a linux server that is running Ubuntu. I have been using miniforge to manage environments with packages for specific tasks. Previously, I was using a global install of anaconda in but ...
Weston Elison's user avatar
1 vote
1 answer
94 views

musl ld maps libc.so.6 to ld-musl-x86_64.so.1

/lib # ./ld-musl-x86_64.so.1 --list /usr/lib/libEGL.so.1 ./ld-musl-x86_64.so.1 (0x7f2b06797000) libdl.so.2 => ./ld-musl-x86_64.so.1 (0x7f2b06797000) libm.so.6 => ./ld-...
Szymon Marczak's user avatar
0 votes
1 answer
23 views

How to validate self-build GNU toolchain and newlib?

I am working on an embedded system, where there is ARM SOC and RTOS. I have built GNU toolchain with newlib for this embedded system, and did very basic testing. Now before I can be sure to use the ...
wangt13's user avatar
  • 443
8 votes
1 answer
1k views

Does mtrace() still work in modern distros?

tldr: Does mtrace still work or am I just doing it wrong? I was attempting to use mtrace and have been unable to get it to write data to a file. I followed the instructions in man 3 mtrace: t_mtrace.c:...
TopherIsSwell's user avatar
29 votes
2 answers
3k views

What does "6" mean in glibc.so.6?

When exploring the C++ binary, I find that libstdc++.so.6 is dyn-linked into libm.so.6 and libc.so.6: $ ldd /lib/x86_64-linux-gnu/libstdc++.so.6 linux-vdso.so.1 (0x00007ffcb737b000) ...
syheliel syheliel's user avatar
2 votes
1 answer
45 views

Mismatch of size of /var/run/utmp and `struct utmp` in Linux built with GLIBC 2.38 (Y2k38 fix)

I am working on an embedded Linux system (kernel-5.10.24), which is a 32bit system, and it is using GLibc-2.38 to fix Y2k38. The rootfs is built from buildroot rel.2023-aug with Y2k38 fix. (built with ...
wangt13's user avatar
  • 443
3 votes
1 answer
178 views

getaddrinfo doesn't return IPv6 on Linux, but does on Macbook

I have a simple setup. I added 1.2.3.4 yahoo.com to my /etc/hosts file. I didn't add any entry for google.com to the /etc/hosts file. On Macbook, I get 1.2.3.4 and yahoo.com's original IPv6 address as ...
anc's user avatar
  • 31
0 votes
1 answer
43 views

Create rpm for self-compiled glibc

I have successfully compiled glibc-2.28 and want to know how to package it into an rpm that is identical(except code) to a centos package as created for centos 7 distro. If I had a template for how ...
Steve H's user avatar
  • 15
2 votes
0 answers
1k views

Apt Stuck On Setting Up libc6

I have picked up bad habits from using other Debian distros. So I thought I'll install Debian WSL2 in my new computer. Someone told me Debian Stable is too old, so they use Debian testing for newer ...
GNUES's user avatar
  • 21
0 votes
1 answer
148 views

Changing the path opened by openat of a program using LD_PRELOAD

I want to change a path that a program actually opens on filesystem for some paths. The reason is that I want to run a program in parallel, but that program uses /tmp/somedir/ as its temporary ...
Tomáš Zato's user avatar
  • 1,776
0 votes
1 answer
60 views

Unable to install any overlay packages on FS39 with glibc depsolve errors

Fedora Silverblue 39 Trying to install and upgrade packages in rpm-ostree results in dependency errors with unresolvable glibc version conflicts. I don't know if it may be related to this issue. My ...
tsilvs's user avatar
  • 99
0 votes
0 answers
169 views

python: relocation error - GLIBC/libc; hardware issue?

Python suddenly does not start anymore: python: relocation error: python: symbol nl_l`nginfo, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference OS is CentOS7, Python3.10 in ...
user236012's user avatar
  • 2,245
0 votes
0 answers
146 views

I can't boot after upgrading glibc... how can I rebuild my ld.so cache?

Hello Unix StackExchange! I unfortunately made a huge mistake. I needed a newer version of glibc on my system for a screensharing application, so I ran the following commands to download and build ...
Anish G.'s user avatar
0 votes
1 answer
109 views

Why is MB_CUR_MAX 6 instead of 4 for UTF-8? (Linux, glibc)

MB_CUR_MAX is defined by glibc as 'a positive integer expression that is the maximum number of bytes in a multibyte character in the current locale.' If I print the value I get 1. I assume that this ...
Sebastian Carlos's user avatar
-1 votes
2 answers
517 views

glibc preconfiguration error: libc shouldn't be installed in /usr/local

. . . checking for kernel header at least 3.2.0... ok *** On GNU/Linux systems the GNU C Library should not be installed into *** /usr/local since this might make your system totally unusable. *** We ...
Anubhav's user avatar
  • 173
-1 votes
1 answer
256 views

libc-bin post install script failing with error code 135

I am running ParrotOS on a bootable USB drive. I ran apt update and it failed with the output: $sudo apt upgrade APT on Parrot behaves differently than Debian. apt upgrade is equivalent to apt full-...
Benedict Orlich's user avatar
0 votes
1 answer
724 views

LFS Chapter 5.5 - Installing Glibc - cannot find /lib64/ld-linux-x86-64.so.2 inside /mnt/lfs

For some background, everything related to LFS has worked so far. After make-installing glibc, I ran these commands to sanity check: echo 'int main(){}' | $LFS_TGT-gcc -xc - readelf -l a.out | grep ld-...
lfsthrowaway's user avatar
0 votes
0 answers
66 views

Linking problem in assembly code

Here is my assembly code: .section .data mystring: .asciz "Hello world\n" .section .text .globl _start _start: pushl $0 pushl $mystring call printf pushl $0 call exit ...
Swapnil's user avatar
  • 47
0 votes
0 answers
191 views

How to recover data off of a broken linux system with full-disk encryption

I am running Manjaro. I have it set up with full-disk encryption through LUKS. Booting up my computer I noticed some things were weird, like some of my settings had reverted to their default. I tried ...
Medynsky's user avatar
1 vote
1 answer
98 views

Do you have to install newer Debian versions to use newer software?

I am still on Debian Buster, which has old libraries in its repository. I am unable to use newer software, because for example, they require a libc.so.6 library with version GLIBC_2.30, which doesn't ...
reign's user avatar
  • 113
3 votes
1 answer
496 views

Man pages, syscalls, and libc

Why is epoll_create not listed as a library function (man pages, section 3), but accept is? While both functions are provided by libc and both refers to kernel syscalls? I know that "why" ...
ABu's user avatar
  • 556
0 votes
1 answer
2k views

I messed up and forced an install of a different glibc version and now I can't remove it

I stupidly forced an install of glibc 2.28 on my CentOS 7 machine that I need to get rid of but it complains that there are many dependencies. I also have two versions of glibc 2.17 and only need one. ...
Brandon G's user avatar
0 votes
1 answer
200 views

Run firefox 109 on Centos 6.10 32bit

Goal: Get a recent version of firefox running on Centos 6.10 32bit Problem: When trying to download and run any version of firefox newer than 49.0.2 from [https://ftp.mozilla.org/pub/firefox/releases/]...
capberter's user avatar
0 votes
1 answer
40 views

What is "Ar.1" in glibc-2.17-324.el7_9.Ar.1.x86_64

For some reason my system has glibc-2.17-324.el7_9.Ar.1.x86_64 installed. Not sure what that Ar.1 is doing there. I need to install glibc-devel, which complains because it requires glibc-2.17-324....
Mo Fatty's user avatar
  • 143
0 votes
1 answer
6k views

Install libc-bin 2.36 on Debian 11

I need to upgrade libc-bin from the current stable version to 2.36 on Debian 11. I have tried to do so by downloading the .deb package from http://ftp.us.debian.org/debian/pool/main/g/glibc/libc-bin_2....
giovi321's user avatar
  • 907
1 vote
0 answers
583 views

how to fix /usr/bin/install: missing destination file operand after '$HOME/toolchain/glibc-build/cstdlibT'

I'm using cygwin building glibc-2.25. I've followed up to http://clfs.org/view/sysvinit/x86_64/cross-tools/glibc-64.html. I've compiled File-5.31 Linux-4.9.21 Headers M4-1.4.18 Ncurses-6.0 Pkg-config-...
7dog123's user avatar
  • 11
0 votes
0 answers
59 views

What is the bootstrapping technique in terms of building cross-gcc and cross-glibc?

Some tutorials for building linux from ground do in first step building the cross compiler toolchain. They do this by invoking so called bootstrapping technique. First they build cross-gcc statically, ...
ptiza_v_nebe's user avatar
1 vote
1 answer
7k views

`GLIBC_2.34' not found

I am trying to run an up in my raspberry pi (4b with latest bullsey) which I have cross-compiled. The error am encountering is: “/lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.34' not found” ...
Rizias's user avatar
  • 119
0 votes
0 answers
914 views

Performance issue with alpine musl library

In order to build a complex C++ software based on Qt framework, I have prepared an alpine toolchain (for x86_64). This toolchain chroot contains : the alpine base package 3.16 a list of installed ...
TLILI Nassim's user avatar
0 votes
1 answer
148 views

Unexpected behavior of linux specific getline() function in C

#include <stdio.h> #include <stdlib.h> #define MAXLEN 1024 void reverse(FILE *, FILE *); int main(int argc, char ** argv) { ... reverse(fptr, stdout); ... return 0; } void ...
arka's user avatar
  • 253
2 votes
1 answer
69 views

How do I insert my own lib to other binaries in Linux?

My goal is developing a tool for educational purposes which logs commands on a system. Until now have found primitive ways to do this but all these ways can be easily bypassed so I had this idea to ...
Jugert Mucoimaj's user avatar
9 votes
1 answer
532 views

What happened to llseek and e2fsck?

lseek man page: When users complained about data loss caused by a miscompilation of e2fsck(8), glibc 2.1.3 added the link-time warning "the llseek function may be dangerous; use `lseek64 ...
user3528438's user avatar
-1 votes
1 answer
1k views

How can I measure peak memory usage?

I have a C++ program. I want to know the peak memory usage of this program. I tried using memusage from the GNU C library, but the result is not the same as on Windows. Why is that? Here’s my test ...
wwb1's user avatar
  • 21
1 vote
1 answer
632 views

Kernel panic following GLIBC upgrade

I was trying to install software on Deepin Linux 20 that required an higher version of GLIBC. I found a Stack Overflow question about how to do that and followed the instructions on some of the ...
Anonymous's user avatar
  • 111
0 votes
1 answer
572 views

build binary on one distribution to run on other distribution

I want build a quite simple command line client application on a docker container to provide that application to customers. The application uses a CAN to USB adapter from PEAK (company building this ...
Torsten Robitzki's user avatar
2 votes
1 answer
1k views

Is it safe to snprintf with output to NULL and size 0?

Is it safe to call snprintf(NULL, 0, "…", …)? I can also ask in other way: Does snprintf write the NUL char if size is 0? The example in Linux man-pages manpage printf(3) provides an example ...
jiwopene's user avatar
  • 1,071
0 votes
0 answers
24 views

Upgrading libc from 2.19 to 2.28 causes X Window windows to not update properly when moved

I have an older xorg - kdrive X window environment that was working fine until updating the c library from 2.19 to 2.28 (needed because newer utilities and the 5.15 kernel needed a new gcc), however ...
user3161924's user avatar
5 votes
1 answer
8k views

Why do I have libc.so.6 under /usr/lib/x86_64-linux-gnu directory?

After I read this question difference between libc6-dev and libc6 , I started a fresh Ubuntu 20.04 LTS VPS and went checking what files are included in some Ubuntu packages. I checked libc6-dev (https:...
Rick's user avatar
  • 1,197
0 votes
0 answers
100 views

Why does glibc redefine structs already defined by the linux kernel?

The kernel defines struct statfs in statfs.h. glibc could simply include this file. Instead it redefines this struct under bits/statfs.h. I suppose glibc redefines many other things already defined by ...
zomega's user avatar
  • 972
0 votes
1 answer
824 views

Unlinked libc.so.6

I unlinked libc.so.6 by running $ sudo unlink /usr/lib/libc.so.6 To fix it, I booted ubuntu on an usb stick and tried to link it again. The problem is I don't know the version of libc and can't file ...
Jerónimo Mendes's user avatar
0 votes
2 answers
385 views

How to run sublime text in Musl LibC (Void Linux)

How i can run sublime text in Void Linux with musl LibC (not glibc) without using chroot or flatpak?
hsnfirdaus's user avatar
-3 votes
1 answer
4k views

How to uninstall glibc [closed]

I was trying to install and launch a Mathematica on a server, but it couldn't find glibc: /lib64/libc.so.6: version `GLIBC_2.14' not found I installed a glibc-2.0 in my account, but I didn't install ...
Wen Chern's user avatar
  • 107
0 votes
1 answer
313 views

Why posix_memalign function requires sizeof(void *) in alignment?

In the posix_memalign() man page, it is written that alignment argument should be power of two and a multiple of sizeof(void *). A similar program memalign() requires the alignment argument only to be ...
arka's user avatar
  • 253
2 votes
1 answer
856 views

Relationship between flags D_FILE_OFFSET_BITS and D_LARGEFILE64_SOURCE

I am using a 32 bit version of a Linux build in Yocto. I want to add support for timestamps after 2038, so in the local .conf file I added: TARGET_CPPFLAGS += "-D_FILE_OFFSET_BITS=64" ...
tom654321's user avatar
29 votes
3 answers
37k views

How to deal with missing libcrypt.so.1 on Arch Linux?

How do you deal with a missing libcrypt.so.1 on Arch Linux? Trying to run openoffice4 (the LibreOffice binary) results in: /opt/openoffice4/program/javaldx: error while loading shared libraries: ...
blazingchrome's user avatar
1 vote
0 answers
381 views

What must be added to nsswitch.conf to [Succes=return] for group database

Working on a CentOS machine, with GlibC 2.17 I am struggling to find a configuration which disables group lookup for local users on remote directories. I know that be design the group lookup searches ...
viral_mutant's user avatar
1 vote
0 answers
79 views

Installing different iconv in same RedHat box

I have new version of iconv installed in RedHat 8 (production). How can I downgrade without affecting existing iconv (as well as existing glibc) ? Currently I have this: iconv 2.28 RedHat 8.5 Need to ...
smilyface's user avatar
  • 111
3 votes
2 answers
3k views

How can I get glibc/libstdc++ sources and set them up for gdb to find?

I'm debugging this program which raises an exception. This makes my debugger look for some source code, e.g. ../sysdeps/unix/sysv/linux/raise.c - and fail to find it. Now, I realize it's not necessary ...
einpoklum's user avatar
  • 9,643
0 votes
0 answers
1k views

Glibc 2.34 cross-compiling issue for aarch64 on x86_64

aarch64-linux-gnueabihf-gcc ../sysdeps/gnu/getutmpx.c -c -std=gnu11 -fgnu89-inline -g -O2 -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -fno-common -...
James's user avatar
  • 101

1
2 3 4 5
7