As part of this asterisk dynamic lib build, it's trying. The -fPIC flag means Position Independent Code, the code is made to be independent of load location - loaded anywhere. Since this dynamic lib can be loaded at any memory location, everything needs to be relocatable. ![]() This site is protected by reCAPTCHA (for which the Google Privacy Policy and Terms of Service apply). rodata.str1. At this point in asterisk, you're trying to build a dynamic lib. These HTML tags are permitted:, ,, , and. I updated the Gentoo Linux link on this post, which has disappeared and must be retrieved from the Internet Archive.Īll comments are moderated before publication. Well, they might wonder why people spend so much time when they never even have to bother. Im trying to configure the ffmpeg source package to build. Well, they might hope someone would leave something in your open ffmpeg - What to do with 'recompile with -fPIC' message - Ask Ubuntu. If people saw how software was actual "made" they would insist on giving the people who make it "tips". ![]() So until the next time I try to install something, I can return my ego to its upright position. Otherwise, PHP tries to use the copy of Zlib included with MySQL.Įverything now compiles and runs successfully. This didn't work until I figured out one last obstacle - the Zlib option must be placed before the -with-mysql option. Next, I added the option -with-zlib-dir=/usr/zlib when running configure to prepare PHP for installation. I am now back to compiling the git snapshot./waf configure appears to succeed./waf -v fails with the error. Through trial and error (and error and error), I finally solved the problem by compiling a new copy of Zlib and specifying that it create a Unix shared library using the -s option: I am using cmake to build my project in linux. Compile fails, says recompile with -fPIC. Unfortunately, none of Gentoo's tips worked for me. The best explanation I found was a Gentoo Linux page on how to fix -fPIC errors. A Google search for the error message uncovered a bunch of people suffering the same problem I encountered when compiling programs on Linux. The file libz.a is part of the Zlib compression library, which apparently is included in MySQL 5.0. Naturally, I had absolutely no idea what this meant. usr/mysql/lib/mysql/libz.a: could not read symbols: Bad value usr/bin/ld: /usr/mysql/lib/mysql/libz.a(compress.o): relocation R_X86_64_32 against 'a local symbol' can not be used when making a shared object recompile with -fPIC ![]() While compiling the new release PHP 5.2.8 this weekend, the make process failed with this error: I run my web servers by compiling the most important components from source code, which makes it possible for me to add security fixes more quickly and fine-tune my installations of Apache, MySQL and PHP. data/program/conda3/bin/./lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/./././.Fixing a 'Recompile with -fPIC' Error in MySQL recompile with -fPIC with -fPIC /usr/lib/gcc/x8664-pc-linux-gnu/4.1 not read value collect2: ld returned 1 exit status 2. lib64/libmolgrid.a(transform.cu.o): relocation R_X86_64_32 against symbol `_ZN10libmolgrid26transform_translate_kernelIfEEvj6float3NS_4GridIT_Lm2ELb1EEES4_' can not be used when making a PIE object recompile with -fPIC lib64/libmolgrid.a(coordinateset.cu.o): relocation R_X86_64_32 against symbol `_ZN10libmolgrid20sum_vector_types_gpuENS_4GridIfLm2ELb1EEENS0_IfLm1ELb1EEE' can not be used when making a PIE object recompile with -fPIC lib64/libmolgrid.a(grid_maker.cu.o): relocation R_X86_64_32S against symbol `_ZTVN6thrust6system12system_errorE' can not be used when making a PIE object recompile with -fPIC Current visitors New profile posts Search profile posts. a with -fPIC By recompiling libperl.a with, the GOT size for the linked executable exceeds a machine-specific maximum size, you get an error message, from the. New posts New profile posts Latest activity. recompile with -fPIC Signed-off-by: Khem Raj <>.data/program/conda3/bin/./lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/././././x86_64-conda_cos6-linux-gnu/bin/ld: CMakeFiles/test_gridmaker_cu.dir/test_gridmaker.cu.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object recompile with -fPIC Hachem Asks: GCC recompile with -fPIE when linking assembly I was trying to write an OpenGL/GLFW application with nasm assembly, and I decided to link. meta-oePATCH 1/2 krb5: Add -fPIC to compile flags 17:33 Khem Raj. data/program/conda3/bin/./lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/././././x86_64-conda_cos6-linux-gnu/bin/ld: warning: libz.so.1, needed by /lib64/libopenbabel.so, not found (try using -rpath or -rpath-link)
0 Comments
Leave a Reply. |