Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi I'm running Debian squeeze with intel composer compiler for fortran and c. Now Im trying to install the zlib libray, but when Im configuring it , I got this:
Checking for shared library support...
Tested icc -w -c -O ztest31822.c
Tested cc -shared -O -o ztest31822.so ztest31822.o
/usr/bin/ld: ztest31822.o: relocation R_X86_64_PC32 against undefined symbol `getchar@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
No shared library support; try without defining CC and CFLAGS
Building static library libz.a version 1.2.5 with icc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
What is the real problem?, How could I follow the directions:
"recompile with -fPIC" and "try without defining CC and CFLAGS"?
Thanks in advance!
Last edited by malexrinco; 03-29-2012 at 12:13 PM.
` what language are you trying to do this in? If you notice this symbol may be your error ` Check the commands that you ran. Hopefully you can see the symol at beginning of my post or the 1 marked in red.