libc

GLIBC_2.7 not found

一世执手 提交于 2019-12-04 00:14:23
I am getting the following error when trying to run several executables: /lib/libc.so.6: version `GLIBC_2.7' not found (required by .tools/bridge/bridge) I have recently upgraded from CentOS 5.3 to 5.7 (I am required to run these tools on CentOS 5, so I can't upgrade to 6). I recompiled the whole code but this error still appears. Has anyone encountered this type of error? Thanks, Claudiu Employed Russian The error means that you built .tools/bridge/bridge on a system with glibc-2.7 (or later), and are trying to run it on a system that has glibc-2.6 or earlier. Linux (and most UNIXes) does not

What's the difference between libc6:i386 and libc6-i386

风流意气都作罢 提交于 2019-12-03 20:51:59
问题 I'm using Ubuntu 14.04.2 LTS \n \l . Here are the libc s I installed. $ dpkg --list | grep libc6 ii libc6:amd64 2.19-0ubuntu6.7 amd64 Embedded GNU C Library: Shared libraries ii libc6-dbg:amd64 2.19-0ubuntu6.7 amd64 Embedded GNU C Library: detached debugging symbols ii libc6-dev:amd64 2.19-0ubuntu6.7 amd64 Embedded GNU C Library: Development Libraries and Header Files ii libc6-i386 2.19-0ubuntu6.7 amd64 Embedded GNU C Library: 32-bit shared libraries for AMD64 rc libc6-x32 2.19-0ubuntu6.7

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)

試著忘記壹切 提交于 2019-12-03 14:05:54
I am creating a 2D game on Android using OpenGL. Currently I am testing and debugging the game on several devices. The problem I am facing, is the terrible "signal 11" error. When I am playing on my Samsung Galaxy Nexus, everything runs smooth, and I can play it for hours without the game throwing any errors. My Nexus is running Android 4.0 Ice Cream Sandwich . Now, when I run it on other devices, I am getting this signal 11 error. This are the devices which throw the error: HTC Desire HD (Gingerbread) HTC Desire Z (Gingerbread) HTC Wildfire (Gingerbread) Advent Vega tablet (Vegacomb) Asus EE

version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2

会有一股神秘感。 提交于 2019-12-03 13:54:51
if anyone could give a beginner some help on gcc version issue? I met the issue on "version GLIBCXX_3.4.20' not found" . After I followed the link: How to Install gcc 5.3 with yum on CentOS 7.2? I met extra issues as below: scl enable devtoolset-7 bash git: relocation error: libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference if anyone could give a beginner some help on gcc version issue? Your problem has nothing to do with any GCC versions. git: relocation error: libc.so.6: symbol _dl_starting_up, ... This error most

Why is argv parameter to execvp not const?

a 夏天 提交于 2019-12-03 11:42:24
问题 execvp is defined thus: int execvp(const char *file, char *const argv[]); Which precludes code such as this from being used: const char* argv[] = {"/bin/my", "command", "here", NULL}; execvp(argv[0], argv); Was this an accidental omission? Is it safe to const_cast around this? Or do some execvp implementations actually scribble on that memory? 回答1: The POSIX spec says (http://pubs.opengroup.org/onlinepubs/009604499/functions/exec.html): The argv[] and envp[] arrays of pointers and the strings

Overlapping pages with mmap (MAP_FIXED)

匆匆过客 提交于 2019-12-03 09:10:37
问题 Due to some obscure reasons which are not relevant for this question, I need to resort to use MAP_FIXED in order to obtain a page close to where the text section of libc lives in memory. Before reading mmap(2) (which I should had done in the first place), I was expecting to get an error if I called mmap with MAP_FIXED and a base address overlapping an already-mapped area. However that is not the case. For instance, here is part of /proc/maps for certain process 7ffff7299000-7ffff744c000 r-xp

Where is ptrdiff_t defined in C?

邮差的信 提交于 2019-12-03 08:04:22
问题 Where is ptrdiff_t defined in C? If non-trivial, how can I make this type visible from GCC on Linux? 回答1: It's defined in stddef.h . That header defines the integral types size_t , ptrdiff_t , and wchar_t , the functional macro offsetof , and the constant macro NULL . 回答2: It is defined by the POSIX standard: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html Where the type is exactly may be implemetation-specific, but interface is stddef.h 回答3: Since @Good Person said

Undefined reference to `clock_gettime` although `-lrt` is given

烈酒焚心 提交于 2019-12-03 07:45:43
问题 I've give -lrt as the last linker flag to the compiler. But still getting this error. arif@khost:~/sak/sak.exosip$ gcc eXo_init.c -I/opt/osip2/include -I/opt/exosip/include -L/opt/osip2/lib -L/opt/exosip/lib -leXosip2 -losipparser2 -losip2 -lrt /opt/osip2/lib/libosip2.so: undefined reference to `clock_gettime' collect2: ld returned 1 exit status The man page says : NAME clock_getres, clock_gettime, clock_settime - clock and time functions SYNOPSIS #include <time.h> int clock_getres(clockid_t

How to build apple's opensource libc?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 07:19:21
I'm trying to build apple's opensource libc (from http://www.opensource.apple.com/source/Libc/Libc-763.11/ ) on my OS X 10.6.8 laptop. This is in an attempt to essentially get a locally generated replica of /usr/lib/libSystem.B.dylib, which I intend to experiment on further. I see a couple basic roadblocks though (unless, obviously, I'm missing something basic): No instructions on how to do the build. There are a couple of Makefiles in the URL I reference above, but they fail to build when I try to do straightforward makes: $make -f Makefile Makefile:14: *** missing separator. Stop. I suspect

What is “namespace cleanliness”, and how does glibc achieve it?

荒凉一梦 提交于 2019-12-03 06:43:44
I came across this paragraph from this answer by @zwol recently: The __libc_ prefix on read is because there are actually three different names for read in the C library: read , __read , and __libc_read . This is a hack to achieve "namespace cleanliness", which you only need to worry about if you ever set out to implement a full-fledged and fully standards compliant C library. The short version is that there are many functions in the C library that need to call read , but some of them cannot use the name read to call it, because a C program is technically allowed to define a function named