Questions tagged [glibc]
glibc is GNU's implementation of the Standard C library.
292
questions
-1
votes
1
answer
13
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-...
0
votes
1
answer
42
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-...
0
votes
0
answers
26
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
...
0
votes
0
answers
52
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 ...
1
vote
1
answer
40
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 ...
3
votes
1
answer
232
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" ...
0
votes
1
answer
221
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.
...
0
votes
1
answer
80
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/]...
0
votes
1
answer
32
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....
0
votes
1
answer
2k
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....
1
vote
0
answers
265
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-...
0
votes
0
answers
46
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, ...
1
vote
1
answer
5k
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”
...
0
votes
0
answers
604
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 ...
0
votes
1
answer
86
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 ...
2
votes
1
answer
46
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 ...
9
votes
1
answer
493
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
...
-1
votes
1
answer
684
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 ...
1
vote
1
answer
466
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 ...
0
votes
1
answer
415
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 ...
2
votes
1
answer
602
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 ...
0
votes
0
answers
17
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 ...
2
votes
1
answer
6k
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:...
0
votes
0
answers
68
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 ...
0
votes
1
answer
646
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 ...
0
votes
2
answers
296
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?
-3
votes
1
answer
3k
views
How to uninstall glibc [closed]
I was trying to install and launch a Mathematica on a sever, but it couldn't find glibc:
/lib64/libc.so.6: version `GLIBC_2.14' not found
So I installed a glibc-2.0 in my account. But I didn't ...
0
votes
1
answer
179
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 ...
2
votes
1
answer
489
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"
...
29
votes
3
answers
26k
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: ...
1
vote
0
answers
219
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 ...
1
vote
0
answers
48
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 ...
2
votes
2
answers
2k
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 ...
0
votes
0
answers
839
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 -...
1
vote
2
answers
3k
views
Install kernel 5.15.0 on Ubuntu 18.04
I installed the newer 5.15.0 kernel onto my Linux Mint 19.3 (Ubuntu 18.04) by https://github.com/pimlie/ubuntu-mainline-kernel.sh .
All worked fine, but not for kernel headers which gave me an ...
1
vote
1
answer
330
views
Linker error by g++ when compiling to stdout
Let's say I have a C++ file called dummy.cpp, and I need to compile it with g++ in such a way that it's being from stdin and g++ spits the compiled binary out to stdout.
If only the stdin part is ...
1
vote
0
answers
5k
views
how to install libc6 2.34 from sources?
I'm running Linux Mint 20.2 Uma and I'm trying to upgrade the linux kernel version. I want to install the kernel version 5.15rc3 but the problem is that after I download the .deb packages from the ...
0
votes
0
answers
222
views
Centos / almalinux how to rebuild glibc and gcc (DNF broken) and "no acceptable C compiler found in $PATH"
My dnf / yum is broken
yum update -y
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
ModuleNotFoundError: No module named '...
0
votes
2
answers
211
views
auCDtect: Fatal error: glibc detected an invalid stdio handle
I'm trying to use auCDtect to check the authenticity of my audio files. I can run the linux binary successfully on my Synology NAS (DS918+) with the addition of libstdc++-libc6.2-2.so.3. I wanted to ...
1
vote
2
answers
2k
views
SSHD accepts connection but closes after method 'none'
I'm trying to ssh to my local sshd, but the connection is detected by sshd it closes before I get a password prompt.
The server is running buildroot and uses glibc.
I've compared the logs with working ...
0
votes
1
answer
90
views
Unable to find the libc6-dbg_2.19-18+deb8u6_i386.deb package
I needed this package in order to install valgrind and I am trying to install it manually as a proxy setting on my laptop doesn't allow me to do 'apt-get'. Thus I decided to download and install the ...
2
votes
0
answers
2k
views
Running x86_64 binaries on arm64
I have been searching for a simple way to run x86_64 binaries on arm64 GNU/Linux.
I've tried qemu-user:
qemu-x86-64 -L /usr/x86-64-linux-gnu /opt/x86_64program, but I'm getting
/lib/libc.so.6: version ...
1
vote
2
answers
13k
views
'GLIBC_2.32' not found when using apt and apt-get
I'm using Pop! OS. When running any simple apt or apt-get command in the terminal, even something as simple as apt --help, I get an error message
apt: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2....
0
votes
1
answer
855
views
When configuring Glibc prior to compiling it I recieve an error concerning kernel headers telling me to use "--with-headers"
I am using the latest stable Linux from Scratch book version. In Step 5.5.1, when configuring Glibc I run the provided script, and receive an error telling me to use the --with-headers configure ...
0
votes
0
answers
280
views
GLIBC 2.27 Ubuntu 20.04 LTS not working with ./configure
I have recently been trying to use GLIBC to create a Linux Distro I am using this guide: https://www.linuxjournal.com/content/diy-build-custom-minimal-linux-distribution-source
It says to run this ...
0
votes
1
answer
5k
views
How to install GLIBC-2.28 on Linux Mint 19.3 Cinnamon
I am new to Linux and find it difficult to update apps and software.
Today I needed to install atom. This is very easy but it turns out that it requires GLIBC 2.28.
When I proceeded to change the ...
0
votes
0
answers
256
views
glibc-debuginfo ubuntu
I am unable to find the compatible version of glibc-debuginfo-2.17-222.el7.ppc64le.rpm and glibc-debuginfo-common-2.17-222.el7.ppc64le.rpm for my ubuntu version 20.04 x86_64 architecture.
please guide ...
0
votes
0
answers
876
views
GLIBC_2.14 and C compiler missing from Centos 6.7
I have came across a situation today on my CentOS 6.7 VM, where I'm trying install any package via yum I'm getting the below given error:
yum install gcc
There was a problem importing one of the ...
0
votes
1
answer
44
views
C-std headers containing helper functions for system, user and kernel times?
Basically, I am working with Nvidia's new github repos and trying to compile them in a cross-platform setup. Specifically, I am trying to compile them on Fedora 33.
I have run into an issue:
In file ...
0
votes
1
answer
342
views
How to compile static binary for i386?
I'm trying to compile some code statically (dosfstools) with GCC for i386, using -static and -march=i386, but the libraries, for example /usr/lib/i386-linux-gnu/libc.a, are not i386 despite the name. ...