2022 Developer Survey is open! Take survey.

Questions tagged [glibc]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 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 ...
user avatar
  • 321
0 votes
1 answer
47 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 ...
user avatar
0 votes
1 answer
24 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?
user avatar
-3 votes
1 answer
88 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 ...
user avatar
  • 107
0 votes
1 answer
16 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 ...
user avatar
  • 21
1 vote
0 answers
72 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" ...
user avatar
12 votes
1 answer
6k views

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

How do you deal with a missing libcrypt.so.1 on ArchLinux? Trying to run openoffic4 (the LibreOffice binary) results in: /opt/openoffice4/program/javaldx: error while loading shared libraries: ...
user avatar
1 vote
0 answers
23 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 ...
user avatar
  • 111
0 votes
0 answers
100 views

Specific behavior of timers with sigev_notify = SIGSTOP signal

Timer doesn't send signal when the time period between timer expiration and SIGCONT delivering is at least two times longer than value in itimerspec. I noticed that it also happens with other "...
user avatar
  • 1
1 vote
0 answers
15 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 ...
user avatar
  • 111
1 vote
1 answer
108 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 ...
user avatar
  • 7,249
0 votes
0 answers
240 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 -...
user avatar
  • 101
0 votes
0 answers
95 views

Gentoo: Error Involving Glibc When Running Genkernel Cannot Find -lcrypt when Compiling Busybox

Trying to build a kernel using genkernel however the following error keeps recurring */usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcrypt *collect2: ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
0 votes
1 answer
106 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 ...
user avatar
  • 103
1 vote
0 answers
2k 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 ...
user avatar
0 votes
0 answers
70 views

Rstudio GLIBCXX_3.4.26 dependency

I have installed the R package metaboliteIDmapping using: if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("...
user avatar
0 votes
0 answers
43 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 '...
user avatar
  • 105
0 votes
2 answers
82 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 ...
user avatar
  • 103
1 vote
2 answers
329 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 ...
user avatar
0 votes
0 answers
107 views

/lib64/libstdc++.so.6: version 'GLIBCXX_3.4.26' not found - CentOS 7

I am trying to run a binary application but it fails to run with 'GLIBCXX_3.4.26' not found error. uname-a: Linux myDesktop 5.13.8-1.el7.elrepo.x86_64 #1 SMP Tue Aug 3 12:51:23 EDT 2021 x86_64 x86_64 ...
user avatar
0 votes
1 answer
36 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 ...
user avatar
  • 3
1 vote
0 answers
770 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 ...
user avatar
  • 35
1 vote
1 answer
1k 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....
user avatar
0 votes
1 answer
316 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 ...
user avatar
  • 45
0 votes
0 answers
18 views

Copy content of .got section

I have built a custom glibc library in order to extract some data and add custom functions to be used later. Since my work has to do with dynamic linking (lazy binding) I am searching for a way to ...
user avatar
0 votes
0 answers
221 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 ...
user avatar
0 votes
0 answers
182 views

Why libc should be re-installed when to transmission package?

The package libc can't be installed directly with opkg install. root@OpenWrt:~# opkg update root@OpenWrt:~# opkg install libc Unknown package 'libc'. Collected errors: * opkg_install_cmd: Cannot ...
user avatar
  • 35
0 votes
1 answer
2k 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 ...
user avatar
  • 1
0 votes
0 answers
137 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 ...
user avatar
0 votes
0 answers
368 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 ...
user avatar
0 votes
1 answer
27 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 ...
user avatar
  • 653
0 votes
1 answer
134 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. ...
user avatar
  • 1
2 votes
1 answer
10k views

GLIBC_2.32 not found

I've been trying to get one of my python programs to run, however, every time I attempt to execute the file through terminal, I get the following error. [12432] Error loading Python lib '/tmp/...
user avatar
-2 votes
1 answer
403 views

what is __gmon start_?

I'm trying to reverse engineering a loading file, with winhex I found the binary strings by looking on the loading file by using WinHex: Are those some commands for bash Linux? it is loading .so ...
user avatar
2 votes
1 answer
651 views

libc-bin half-configured, can't run apt -f install to fix/install packages, can't configure libc-bin because it depends on libc-bin

I have a Netgear ReadyNAS machine which internally runs a modified version of Debian Jessie. I mainly use it as a server and have a few Docker containers which I run on it. I can't upgrade past Jessie ...
user avatar
  • 51
1 vote
0 answers
4k views

/lib64/libc.so.6: version 'GLIBC_2.14' not found in Redhat 6.5, for running a software in non-desktop version of Linux

Whenever I try to run a software, my red hat 6.5 Linux server displays grok :/lib64/libc.so.6: version 'GLIBC_2.14' not found (required by grok) (grok is a file which I use need to run my simulation ...
user avatar
2 votes
0 answers
132 views

Dynamic Linking when Migrating C++ Program from Solaris to Linux

The Problem I'm attempting to migrate a legacy application's build process from an older Solaris machine to Linux, specifically, RHEL 7.7. The application was originally built using Solaris Studio (...
user avatar
0 votes
1 answer
695 views

Emulating an AARCH64 Binary calling libgps on x86_64 Ubuntu using QEMU gives "Error relocating: symbol not found" Errors

This is similar to the issue posted here and here. I want to reverse engineer a binary called gpslogger but before debugging it using GDB, I wish to simply emulate it using QEMU (qemu-aarch64) since ...
user avatar
  • 135
0 votes
0 answers
59 views

Error on building gcc cross compiler toolchain

I'm following this guide to build a linux system for learning experience On the the guide at the section titled GCC (Static), I'm having an error, on running the command ` $ ln -vs libgcc.a `${...
user avatar
1 vote
1 answer
1k views

`aarch64-linux-musl-cross` has a broken link for `ld-musl-aarch64.so.1`

The goal I want to run an ARM64 Go binary on x86_64 Kali Linux using QEMU user mode. The problem I got aarch64-linux-musl-cross. ~$ wget https://musl.cc/aarch64-linux-musl-cross.tgz ~$ tar -xvf ...
user avatar
0 votes
2 answers
4k views

installed wrong libc6 package and broke system

Background I was attempting to upgrade my libc6 version in a "not" nice way. It all started with me trying to update my MariaDB from 10.1 to 10.2. I somehow then managed to find out that ...
user avatar
  • 115
1 vote
2 answers
72 views

What if I wanted /etc to be called something else?

Aside from the kernel itself, the Filesystem Hierarchy Standard is perhaps the only major feature common to all linux systems. Some obscure distributions modify it only slightly: stali, for example, ...
user avatar
0 votes
1 answer
2k views

-lcrypt error cross compiling 64 to 32

I am trying to compile dirtycow exploit file which can be found in here. gcc -pthread dirty.c -o dirty -m32 -lcrypt Because my target is 32 bit I compile it with -m32 and -lycrypt to make sure it ...
user avatar
  • 93
0 votes
1 answer
571 views

Why ltrace doesn't show a call to glibc __nss_configure_lookup()

I'm trying to understand how ltrace command works. So I've been poking around in /etc/nsswitch.conf. I have a "hosts: resolve" line in there - it tells glibc to dynamically load nss-resolve ...
user avatar
  • 1
4 votes
3 answers
1k views

Can a process background itself?

Can a process background itself? What would be a Perl and/or C implementation of this?
user avatar
1 vote
1 answer
2k views

Snaps failing when trying to run alacritty

I'm trying to run alacritty on a near-fresh install of Ubuntu. As far as I can tell I followed the guide, and running infocmp alacritty doesn't return an error, though the response is unintelligible ...
user avatar
2 votes
1 answer
183 views

What would be an effect on the system when we try to forcefully delete /etc/ld.so.preload file?

I have been doing my research around this command. rm -f /etc/ld.so.preload The script which currently I am analyzing, starts with above command. Note: I tried doing my research around "ld.so....
user avatar
  • 23
0 votes
1 answer
1k views

"Segmentation fault (core dumped)" is given back when launching most apps on archlinux after upgrade

Noob here ! I have archlabs which runs on archlinux. After normal upgrade, most apps do not run (texmaker, qt5ct ...), when running them from terminal they give the error : "Segmentation fault (...
user avatar
  • 1
2 votes
0 answers
59 views

Same locale, different distrib, inconsistent behavior

I migrate a system from a CentOS 6.9 VM to a Debian 10 Docker container, and I can't explain why thousands separator differs. Same locale (fr_FR.UTF-8), same version of the locale yet different ...
user avatar

1
2 3 4 5 6