Undefined reference to mempcy @ GLIBC _2.14 when compiling on Linux

I am trying to transfer an application to a device drive that uses the ftdi2332h chip from windows on Linux. I installed the libftd2xx library on an ubuntu 10.04 system according to these instructions .

When I try to compile any of the sample programs, I get the following error:

/usr/local/lib/libftd2xx.so: undefined reference to `memcpy@GLIBC_2.14'
collect2: ld returned 1 exit status

Any recommendations to fix this?

+9
source share
7 answers

mempcy@GLIBC_2.14called a version symbol. Glibc uses them, while other runtime libraries, such as musl, do not .

mempcy@GLIBC_2.14 Linux , Glibc , memcpy 2012 . memcpy {begin → end} ( ). Glibc 2.13 memcpy, {end → begin} . , " " Intel SSE4.1. Glibc 2.14 memcpy, {begin → end}.

{begin → end}. , memcpy . memmove, - , { → }. . - mp3 flash (- Adobe Flash), Glibc, ( LWN), Memcpy vs memmove saga .

, , :

__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");

, - . .

$ cat version.c

__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
+5

readme Ubuntu 12.04, glibc 2.15. Ubuntu 10.04, glibc 2.11.1. , , (, , libftd2xx.so), glibc, , , .

libftd2xx.so glibc (, , ), . Ubuntu 10.04 .

( , , euhm, ), glibc - /opt.

+3

libc /opt/lib/libcX/libc.so.6. script:

LD_LIBRARY_PATH=/opt/lib/libcX:/lib/:/usr/lib:/usr/share/lib
./your_program
0

, curl, glibc 2.14, , , glibc 2.12. glib 2.14 2.12, , glib 2.14, -L

gcc source.c -L/opt/glibc-2.14/lib

/opt/glibc-2.14/lib path/to/glib2.14/library

(: , , /)

0
0

Ubuntu 12.04. Qt, , glibc . Google , glibc .

-1

, -, , , - ( /usr/include /usr/lib), , , , . , . ( , , , .)

-1

All Articles